Skip to content

Commit

Permalink
tests passes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed May 6, 2022
1 parent 7c20209 commit 43fe5b8
Show file tree
Hide file tree
Showing 6 changed files with 455 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

<h3 align="center">

![Build Status](https://github.com/Terradue/DotNetStac/actions/workflows/build.yaml/badge.svg?branch=release/1.3.0)
![Build Status](https://github.com/Terradue/DotNetStac/actions/workflows/build.yaml/badge.svg?branch=develop)
[![NuGet](https://img.shields.io/nuget/vpre/DotNetStac)](https://www.nuget.org/packages/DotNetStac/)
[![codecov](https://codecov.io/gh/Terradue/DotNetStac/branch/release/1.3.0/graph/badge.svg)](https://codecov.io/gh/Terradue/DotNetStac)
[![codecov](https://codecov.io/gh/Terradue/DotNetStac/branch/develop/graph/badge.svg)](https://codecov.io/gh/Terradue/DotNetStac)
[![Gitter](https://img.shields.io/gitter/room/SpatioTemporal-Asset-Catalog/Lobby?color=yellow)](https://gitter.im/SpatioTemporal-Asset-Catalog/Lobby)
[![License](https://img.shields.io/badge/license-AGPL3-blue.svg)](LICENSE)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Terradue/DotNetStac/master?filepath=example.ipynb)
Expand Down
1 change: 0 additions & 1 deletion src/DotNetStac.Test/DotNetStac.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<!-- <CodeAnalysisRuleSet>$(SolutionDir)StyleCop.ruleset</CodeAnalysisRuleSet> -->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
Expand Down
11 changes: 11 additions & 0 deletions src/DotNetStac.Test/Extensions/AlternateExtensionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,16 @@ public async System.Threading.Tasks.Task SetAlternateAsset()
Assert.Equal("s3://bucket/key/srid.csv", simpleitem.Assets["srid"].AlternateExtension().AlternateAssets["s3"].Uri.ToString());
}

[Fact]
public async System.Threading.Tasks.Task LS9Alternates()
{
var simpleJson = GetJson("Extensions", "LS9Sample");
ValidateJson(simpleJson);

StacItem ls9item = StacConvert.Deserialize<StacItem>(simpleJson);

Assert.Equal("s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2022/088/084/LC09_L2SP_088084_20220405_20220407_02_T2/LC09_L2SP_088084_20220405_20220407_02_T2_thumb_small.jpeg", ls9item.Assets["thumbnail"].AlternateExtension().AlternateAssets["s3"].Uri.ToString());
}

}
}
Loading

0 comments on commit 43fe5b8

Please sign in to comment.