Skip to content

Commit

Permalink
chore: 🐝 Update SDK - 1 - Generate 1.3.6 (#71)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.390.7

* Update project file to version 1.3.6

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent 65781dd commit 9da96ed
Show file tree
Hide file tree
Showing 10 changed files with 1,030 additions and 1,020 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a
management:
docChecksum: 54d33facef3aa19f358d15ab44e34141
docVersion: 0.2.0
speakeasyVersion: 1.390.1
generationVersion: 2.409.0
releaseVersion: 1.3.5
configChecksum: b92bf2ecb6758e2136783f47b7716616
speakeasyVersion: 1.390.7
generationVersion: 2.409.8
releaseVersion: 1.3.6
configChecksum: c9d3e694b16f805c25c1ce062ec9f62f
repoURL: https://github.com/StyraInc/opa-csharp.git
repoSubDirectory: Styra/Opa/OpenApi/
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
csharp:
version: 1.3.5
version: 1.3.6
additionalDependencies: []
author: Styra
clientServerStatusCodesAsErrors: true
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.390.1
speakeasyVersion: 1.390.7
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c
sourceRevisionDigest: sha256:9eaf842c0774fbf6d90f0022dee2795b9f0897771384d139d544ae9323f91ea7
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
tags:
- latest
Expand All @@ -11,7 +11,7 @@ targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c
sourceRevisionDigest: sha256:9eaf842c0774fbf6d90f0022dee2795b9f0897771384d139d544ae9323f91ea7
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
outLocation: /github/workspace/repo
workflow:
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,14 @@ Based on:
### Generated
- [csharp v1.3.5] .
### Releases
- [NuGet v1.3.5] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.5 - .
- [NuGet v1.3.5] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.5 - .

## 2024-09-05 20:05:55
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.390.7 (2.409.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v1.3.6] .
### Releases
- [NuGet v1.3.6] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.6 - .
6 changes: 3 additions & 3 deletions Styra/Opa/OpenApi/OpaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ public class OpaApiClient: IOpaApiClient
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "1.3.5";
private const string _sdkGenVersion = "2.409.0";
private const string _sdkVersion = "1.3.6";
private const string _sdkGenVersion = "2.409.8";
private const string _openapiDocVersion = "0.2.0";
private const string _userAgent = "speakeasy-sdk/csharp 1.3.5 2.409.0 0.2.0 Styra.Opa.OpenApi";
private const string _userAgent = "speakeasy-sdk/csharp 1.3.6 2.409.8 0.2.0 Styra.Opa.OpenApi";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _client;
Expand Down
2 changes: 1 addition & 1 deletion Styra/Opa/Styra.Opa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Styra.Opa</PackageId>
<Version>1.3.5</Version>
<Version>1.3.6</Version>
<Authors>Styra</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
76 changes: 38 additions & 38 deletions test/SmokeTest.Tests/EOPAContainerFixture.cs
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
namespace SmokeTest.Tests;
public class EOPAContainerFixture : IAsyncLifetime
{
// Note: We disable this warning because we control when/how the constructor
// will be invoked for this class.
// Note: We disable this warning because we control when/how the constructor
// will be invoked for this class.
#pragma warning disable CS8618
private IContainer _container;
private IContainer _container;
#pragma warning restore CS8618

public async Task InitializeAsync()
{
string[] startupFiles = {
public async Task InitializeAsync()
{
string[] startupFiles = {
"testdata/policy.rego",
"testdata/weird_name.rego",
"testdata/simple/system.rego",
"testdata/condfail.rego",
"testdata/data.json"
};
string[] opaCmd = { "run", "--server", "--addr=0.0.0.0:8181", "--disable-telemetry" };
var startupCommand = new List<string>().Concat(opaCmd).Concat(startupFiles).ToArray();
string[] opaCmd = { "run", "--server", "--addr=0.0.0.0:8181", "--disable-telemetry" };
var startupCommand = new List<string>().Concat(opaCmd).Concat(startupFiles).ToArray();

// Create a new instance of a container.
var container = new ContainerBuilder()
.WithImage("ghcr.io/styrainc/enterprise-opa:1.23.0")
.WithEnvironment("EOPA_LICENSE_TOKEN", Environment.GetEnvironmentVariable("EOPA_LICENSE_TOKEN"))
.WithEnvironment("EOPA_LICENSE_KEY", Environment.GetEnvironmentVariable("EOPA_LICENSE_KEY"))
// Bind port 8181 of the container to a random port on the host.
.WithPortBinding(8181, true)
.WithCommand(startupCommand)
// Map our policy and data files into the container instance.
.WithResourceMapping(new DirectoryInfo("testdata"), "/testdata/")
// Wait until the HTTP endpoint of the container is available.
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(r => r.ForPort(8181).ForPath("/health")))
//.WithOutputConsumer(Consume.RedirectStdoutAndStderrToConsole()) // DEBUG
// Build the container configuration.
.Build();
// Create a new instance of a container.
var container = new ContainerBuilder()
.WithImage("ghcr.io/styrainc/enterprise-opa:1.23.0")
.WithEnvironment("EOPA_LICENSE_TOKEN", Environment.GetEnvironmentVariable("EOPA_LICENSE_TOKEN"))
.WithEnvironment("EOPA_LICENSE_KEY", Environment.GetEnvironmentVariable("EOPA_LICENSE_KEY"))
// Bind port 8181 of the container to a random port on the host.
.WithPortBinding(8181, true)
.WithCommand(startupCommand)
// Map our policy and data files into the container instance.
.WithResourceMapping(new DirectoryInfo("testdata"), "/testdata/")
// Wait until the HTTP endpoint of the container is available.
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(r => r.ForPort(8181).ForPath("/health")))
//.WithOutputConsumer(Consume.RedirectStdoutAndStderrToConsole()) // DEBUG
// Build the container configuration.
.Build();

// Start the container.
await container.StartAsync()
.ConfigureAwait(false);
// DEBUG:
// var (stderr, stdout) = await container.GetLogsAsync(default);
// Console.WriteLine("STDERR: {0}", stderr);
// Console.WriteLine("STDOUT: {0}", stdout);
// Start the container.
await container.StartAsync()
.ConfigureAwait(false);
// DEBUG:
// var (stderr, stdout) = await container.GetLogsAsync(default);
// Console.WriteLine("STDERR: {0}", stderr);
// Console.WriteLine("STDOUT: {0}", stdout);

_container = container;
}
public async Task DisposeAsync()
{
await _container.DisposeAsync();
}
_container = container;
}
public async Task DisposeAsync()
{
await _container.DisposeAsync();
}

// Expose the container for tests
public IContainer GetContainer() => _container;
// Expose the container for tests
public IContainer GetContainer() => _container;
}
Loading

0 comments on commit 9da96ed

Please sign in to comment.