Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 32b9c95

Browse files
committed
Fixed app Gateway tests
1 parent 03ed0ce commit 32b9c95

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Patterns used leverage Microsoft Projects, for detailed design principals, opera
1414
Please be aware that branching strategies are aligned with OSDU and the master branch is intended to be used as a [Current Delivery](https://docs.microsoft.com/en-us/azure/devops/learn/what-is-continuous-delivery) mechanism that aligns with master branches for the [OSDU Platform]((https://community.opengroup.org/osdu/platform))
1515

1616
## Architecture Solutions
17+
This project is an active project and the master branch is constantly changing to support OSDU features. Rhe master branch is intended to be in sync with the master branches of the OSDU Service branches.
18+
1719
This project holds 2 different Solution Architectures for OSDU on Azure.
18-
> IMPORTANT: R3 is currently a work in progress.
1920

2021
- [R3 - Azure OSDU AKS Architecture Solution with Elastic Cloud SaaS](infra/templates/osdu-r3-resources)
2122

infra/modules/providers/azure/aks-appgw/tests/integration/appgateway.go

-10
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,11 @@ func checkAvailablePorts(t *testing.T, appGatewayProperties *network.Application
4949
require.True(t, foundPort, "Failed to find a frontendPort with port 443")
5050
}
5151

52-
func checkSSLCertificates(t *testing.T, appGatewayProperties *network.ApplicationGatewayPropertiesFormat, keyvaultSecretID string) {
53-
certs := appGatewayProperties.SslCertificates
54-
require.Equal(t, 1, len(*certs))
55-
cert := (*certs)[0]
56-
require.Equal(t, "Succeeded", *cert.ProvisioningState)
57-
require.Equal(t, keyvaultSecretID, *cert.KeyVaultSecretID)
58-
}
59-
6052
// InspectAppGateway - Runs a suite of test assertions to validate properties for an application gateway
6153
func InspectAppGateway(resourceGroupNameOutput string, appGatewayNameOutput string, keyvaultIDOutput string) func(t *testing.T, output infratests.TerraformOutput) {
6254
return func(t *testing.T, output infratests.TerraformOutput) {
6355
appGatewayName := output[appGatewayNameOutput].(string)
6456
resourceGroupName := output[resourceGroupNameOutput].(string)
65-
keyvaultSecretID := output[keyvaultIDOutput].(string)
6657

6758
appGateway, err := azure.GetAppGatewayProperties(subscription, resourceGroupName, appGatewayName)
6859
if err != nil {
@@ -73,6 +64,5 @@ func InspectAppGateway(resourceGroupNameOutput string, appGatewayNameOutput stri
7364

7465
checkMinCapactiy(t, appGatewayProperties)
7566
checkOWASPRuleset(t, appGatewayProperties)
76-
checkSSLCertificates(t, appGatewayProperties, keyvaultSecretID)
7767
}
7868
}

0 commit comments

Comments
 (0)