Skip to content

Commit

Permalink
🔖 version 3.11.0 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianardee authored Mar 26, 2024
1 parent 2360c0f commit bc064bc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
dotnet-version: "8.0.x"

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
6.0.x
8.0.x
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
dotnet-version: "8.0.x"

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
with:
dotnet-version: "8.0.x"

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## v3.11.0 - 2024-03-26
### Changes
* :white_check_mark: compatibility with .NET 8.0
* :sparkles: update Invoice to v4.5
* :sparkles: add support for generated documents


## v3.10.0 - 2024-03-06
### Changes
* :sparkles: add support for error in job processing
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>3.10.0</VersionPrefix>
<VersionPrefix>3.11.0</VersionPrefix>
<Authors>Mindee</Authors>
<PackageProjectUrl>https://github.com/mindee/mindee-api-dotnet</PackageProjectUrl>
<RepositoryUrl>https://github.com/mindee/mindee-api-dotnet</RepositoryUrl>
Expand Down
14 changes: 12 additions & 2 deletions tests/Mindee.IntegrationTests/MindeeClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ public async Task EnqueueAndParse_File_Standard_AsyncOnly_Async_MustSucceed()
[Fact]
public async Task ParseQueued_Standard_InvalidJob_MustFail()
{
var jobId = RandomString(15);
await Assert.ThrowsAsync<Mindee404Exception>(
() => _mindeeClient.ParseQueuedAsync<InvoiceSplitterV1>("bad-job-id"));
() => _mindeeClient.ParseQueuedAsync<InvoiceSplitterV1>(jobId));
}

[Fact]
Expand Down Expand Up @@ -223,9 +224,18 @@ public async Task EnqueueAndParse_File_Generated_AsyncOnly_Async_MustSucceed()
[Fact]
public async Task ParseQueued_Generated_InvalidJob_MustFail()
{
var jobId = RandomString(15);
var endpoint = new CustomEndpoint("international_id", "mindee", "2");
await Assert.ThrowsAsync<Mindee404Exception>(
() => _mindeeClient.ParseQueuedAsync<GeneratedV1>(endpoint, "bad-job-id"));
() => _mindeeClient.ParseQueuedAsync<GeneratedV1>(endpoint, jobId));
}

private static string RandomString(int length)
{
Random random = new Random();
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
return new string(Enumerable.Repeat(chars, length)
.Select(s => s[random.Next(s.Length)]).ToArray());
}
}
}

0 comments on commit bc064bc

Please sign in to comment.