Skip to content

Commit

Permalink
fixed GHA path for test file pick in GO.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkallem-equinix committed Aug 9, 2024
1 parent 5c0f0d4 commit 477861d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions tests/prod/cloud-router/prod_sanity_fcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func TestCloudRouterCreate_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/cloud-router",
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -23,15 +23,15 @@ func TestCloudRouterCreate_DIGP(t *testing.T) {
Vars: map[string]interface{}{
"fcr_name": "FCR_Name_Update",
},
TerraformDir: "../../tests/examples-without-external-providers/cloud-router",
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",
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-aws-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -45,7 +45,7 @@ func TestCloudRouter2AwsCreateConnection_DIGP(t *testing.T) {
func TestCloudRouter2AzureCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/cloud-router-2-azure-connection",
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-azure-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -59,7 +59,7 @@ func TestCloudRouter2AzureCreateConnection_DIGP(t *testing.T) {
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",
TerraformDir: "../../../tests/examples-without-external-providers/cloud-router-2-port-routing-protocol-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -74,15 +74,15 @@ func TestCloudRouter2PortRoutingProtocolCreateConnection_DIGP(t *testing.T) {
"connection_name": "FCR2Port_Name_Update",
"bandwidth": 100,
},
TerraformDir: "../../tests/examples-without-external-providers/cloud-router-2-port-routing-protocol-connection",
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",
TerraformDir: "../../../examples/cloud-router-2-service-profile-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -96,7 +96,7 @@ func TestCloudRouter2ServiceProfileCreateConnection_DIGP(t *testing.T) {
func TestCloudRouter2WanCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/cloud-router-2-wan-connection",
TerraformDir: "../../../examples/cloud-router-2-wan-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -111,7 +111,7 @@ func TestCloudRouter2WanCreateConnection_DIGP(t *testing.T) {
"connection_name": "FCR2WAN_Name_Update",
"bandwidth": 50,
},
TerraformDir: "../../examples/cloud-router-2-wan-connection",
TerraformDir: "../../../examples/cloud-router-2-wan-connection",
})
terraform.Apply(t, terraformOptions)
}
24 changes: 12 additions & 12 deletions tests/prod/port/prod_sanity_port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func TestPort2AlibabaCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-alibaba-connection",
TerraformDir: "../../../examples/port-2-alibaba-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -23,7 +23,7 @@ func TestPort2AlibabaCreateConnection_DIGP(t *testing.T) {
func TestPort2AwsCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/port-2-aws-connection",
TerraformDir: "../../../tests/examples-without-external-providers/port-2-aws-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -37,7 +37,7 @@ func TestPort2AwsCreateConnection_DIGP(t *testing.T) {
func TestPort2AzureCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/port-2-azure-connection",
TerraformDir: "../../../tests/examples-without-external-providers/port-2-azure-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -51,15 +51,15 @@ func TestPort2AzureCreateConnection_DIGP(t *testing.T) {
Vars: map[string]interface{}{
"connection_name": "P2Azure_Name_Update",
},
TerraformDir: "../../tests/examples-without-external-providers/port-2-azure-connection",
TerraformDir: "../../../tests/examples-without-external-providers/port-2-azure-connection",
})
terraform.Apply(t, terraformOptions)
}

func TestPort2GoogleCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-google-connection",
TerraformDir: "../../../examples/port-2-google-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -73,15 +73,15 @@ func TestPort2GoogleCreateConnection_DIGP(t *testing.T) {
Vars: map[string]interface{}{
"bandwidth": 100,
},
TerraformDir: "../../examples/port-2-google-connection",
TerraformDir: "../../../examples/port-2-google-connection",
})
terraform.Apply(t, terraformOptions)
}

func TestPort2Ibm2CreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-ibm2-connection",
TerraformDir: "../../../examples/port-2-ibm2-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -95,7 +95,7 @@ func TestPort2Ibm2CreateConnection_DIGP(t *testing.T) {
func TestPort2OracleCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-oracle-connection",
TerraformDir: "../../../examples/port-2-oracle-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -109,7 +109,7 @@ func TestPort2OracleCreateConnection_DIGP(t *testing.T) {
func TestPort2PortCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-port-connection",
TerraformDir: "../../../examples/port-2-port-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -124,15 +124,15 @@ func TestPort2PortCreateConnection_DIGP(t *testing.T) {
"connection_name": "P2Port_Name_Update",
"bandwidth": 100,
},
TerraformDir: "../../examples/port-2-port-connection",
TerraformDir: "../../../examples/port-2-port-connection",
})
terraform.Apply(t, terraformOptions)
}

func TestPort2PrivateServiceProfileCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../examples/port-2-private-service-profile-connection",
TerraformDir: "../../../examples/port-2-private-service-profile-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -146,7 +146,7 @@ func TestPort2PrivateServiceProfileCreateConnection_DIGP(t *testing.T) {
func TestPort2WanCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/port-2-wan-connection",
TerraformDir: "../../../tests/examples-without-external-providers/port-2-wan-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand Down
8 changes: 4 additions & 4 deletions tests/prod/virtual-device/prod_sanity_vd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func TestVirtualDevice2WanCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/virtual-device-2-wan-connection",
TerraformDir: "../../../tests/examples-without-external-providers/virtual-device-2-wan-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -23,7 +23,7 @@ func TestVirtualDevice2WanCreateConnection_DIGP(t *testing.T) {
func TestVirtualDevice2AzureCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/virtual-device-2-azure-connection",
TerraformDir: "../../../tests/examples-without-external-providers/virtual-device-2-azure-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -37,7 +37,7 @@ func TestVirtualDevice2AzureCreateConnection_DIGP(t *testing.T) {
func TestVirtualDevice2PortCreateConnection_DIGP(t *testing.T) {

terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../../tests/examples-without-external-providers/virtual-device-2-port-connection",
TerraformDir: "../../../tests/examples-without-external-providers/virtual-device-2-port-connection",
})

defer terraform.Destroy(t, terraformOptions)
Expand All @@ -52,7 +52,7 @@ func TestVirtualDevice2PortCreateConnection_DIGP(t *testing.T) {
"connection_name": "VD2Port_Name_Update",
"bandwidth": 10,
},
TerraformDir: "../../tests/examples-without-external-providers/virtual-device-2-port-connection",
TerraformDir: "../../../tests/examples-without-external-providers/virtual-device-2-port-connection",
})
terraform.Apply(t, terraformOptions)
}

0 comments on commit 477861d

Please sign in to comment.