Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Application Gateway Orchestrator extension v3.0.0 #18

Merged
merged 11 commits into from
May 6, 2024
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@

namespace AzureAppGatewayOrchestrator.Tests;

public class AzureAppGatewayOrchestrator_AzureAppGw
public class AzureAppGw
{
ILogger _logger { get; set;}

public AzureAppGatewayOrchestrator_AzureAppGw()
public AzureAppGw()
{
ConfigureLogging();

_logger = LogHandler.GetClassLogger<AzureAppGatewayOrchestrator_AzureAppGw>();
_logger = LogHandler.GetClassLogger<AzureAppGw>();
}

[IntegrationTestingFact]
Expand Down Expand Up @@ -103,7 +103,7 @@
JobResult result = inventory.ProcessJob(config, (inventoryItems) =>
{
// Assert
Assert.Equal(1, inventoryItems.Count());

Check warning on line 106 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / Build and Test dotnet project

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 106 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / Build and Test dotnet project

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 106 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 106 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 106 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)
Assert.Equal("test", inventoryItems.First().Alias);

_logger.LogInformation("AzureAppGw_Inventory_ProcessJob_ValidClient_ReturnSuccess - Success");
Expand Down Expand Up @@ -223,7 +223,7 @@
JobResult result = discovery.ProcessJob(config, (discoveredAppGateways) =>
{
// Assert
Assert.Equal(1, discoveredAppGateways.Count());

Check warning on line 226 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / Build and Test dotnet project

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 226 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / Build and Test dotnet project

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 226 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 226 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)

Check warning on line 226 in AzureAppGatewayOrchestrator.Tests/AzureAppGW.cs

View workflow job for this annotation

GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Do not use Assert.Equal() to check for collection size. (https://xunit.github.io/xunit.analyzers/rules/xUnit2013)
Assert.Equal("test", discoveredAppGateways.First());

_logger.LogInformation("Discovery_ProcessJob_ValidClient_ReturnSuccess - Success");
Expand Down Expand Up @@ -544,7 +544,7 @@
string certName = "GatewayTest" + Guid.NewGuid().ToString()[..6];
string password = "password";

X509Certificate2 ssCert = AzureAppGatewayOrchestrator_Client.GetSelfSignedCert(testHostname);
X509Certificate2 ssCert = Client.GetSelfSignedCert(testHostname);

string b64PfxSslCert = Convert.ToBase64String(ssCert.Export(X509ContentType.Pfx, password));

Expand Down Expand Up @@ -577,7 +577,7 @@

// Arrange

ssCert = AzureAppGatewayOrchestrator_Client.GetSelfSignedCert(testHostname);
ssCert = Client.GetSelfSignedCert(testHostname);

b64PfxSslCert = Convert.ToBase64String(ssCert.Export(X509ContentType.Pfx, password));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down

This file was deleted.

Loading
Loading