-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha_fix:Update the GHA Path to fix Run Tests Separately (#113)
* Update the GHA Path to fix Run Tests Separately * Update the GHA Path to fix Run Tests Separately * fixed GHA path for test file pick in GO. * Removed IBM relates Tests from GHA due to Test Failures from IBM end * Removed IBM relates Tests from GHA due to Test Failures from IBM end * fix: changing status of Metal 2 Azure connection * fix: Updating Terra test for port 2 WAN connection --------- Co-authored-by: srushti-patl <[email protected]>
- Loading branch information
1 parent
60c8a6e
commit e13b8d0
Showing
10 changed files
with
334 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
package prod | ||
|
||
import ( | ||
"github.com/gruntwork-io/terratest/modules/terraform" | ||
"github.com/stretchr/testify/assert" | ||
"testing" | ||
) | ||
|
||
func TestCloudRouterCreate_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "cloud_router_id") | ||
assert.NotNil(t, output) | ||
|
||
terraformOptions = terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
Vars: map[string]interface{}{ | ||
"fcr_name": "FCR_Name_Update", | ||
}, | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router", | ||
}) | ||
terraform.Apply(t, terraformOptions) | ||
} | ||
|
||
func TestCloudRouter2AwsCreateConnection_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-aws-connection", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "aws_connection_id") | ||
assert.NotNil(t, output) | ||
} | ||
|
||
func TestCloudRouter2AzureCreateConnection_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-azure-connection", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "azure_connection_id") | ||
assert.NotNil(t, output) | ||
} | ||
|
||
func TestCloudRouter2PortRoutingProtocolCreateConnection_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-port-routing-protocol-connection", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "port_connection_id") | ||
assert.NotNil(t, output) | ||
|
||
terraformOptions = terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
Vars: map[string]interface{}{ | ||
"connection_name": "FCR2Port_Name_Update", | ||
"bandwidth": 100, | ||
}, | ||
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-port-routing-protocol-connection", | ||
}) | ||
terraform.Apply(t, terraformOptions) | ||
} | ||
|
||
func TestCloudRouter2ServiceProfileCreateConnection_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../examples/cloud-router-2-service-profile-connection", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "service_profile_connection_id") | ||
assert.NotNil(t, output) | ||
} | ||
|
||
func TestCloudRouter2WanCreateConnection_DIGP(t *testing.T) { | ||
|
||
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
TerraformDir: "../../../examples/cloud-router-2-wan-connection", | ||
}) | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
t.Parallel() | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
output := terraform.Output(t, terraformOptions, "wan_connection_id") | ||
assert.NotNil(t, output) | ||
|
||
terraformOptions = terraform.WithDefaultRetryableErrors(t, &terraform.Options{ | ||
Vars: map[string]interface{}{ | ||
"connection_name": "FCR2WAN_Name_Update", | ||
"bandwidth": 50, | ||
}, | ||
TerraformDir: "../../../examples/cloud-router-2-wan-connection", | ||
}) | ||
terraform.Apply(t, terraformOptions) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.