-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into CXF-90011-Metal-NIMF-Update
- Loading branch information
Showing
13 changed files
with
179 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ func TestAccDataSourceFabricCloudRouter_PFCR(t *testing.T) { | |
resource.TestCheckResourceAttr("data.equinix_fabric_cloud_router.example", "notifications.0.emails.0", "[email protected]"), | ||
resource.TestCheckResourceAttr("data.equinix_fabric_cloud_router.example", "order.0.purchase_order_number", "1-323292"), | ||
resource.TestCheckResourceAttr("data.equinix_fabric_cloud_router.example", "location.0.metro_code", "SV"), | ||
resource.TestCheckResourceAttr("data.equinix_fabric_cloud_router.example", "package.0.code", "LAB"), | ||
resource.TestCheckResourceAttr("data.equinix_fabric_cloud_router.example", "package.0.code", "STANDARD"), | ||
resource.TestCheckResourceAttrSet("data.equinix_fabric_cloud_router.example", "project.0.project_id"), | ||
resource.TestCheckResourceAttrSet("data.equinix_fabric_cloud_router.example", "account.0.account_number"), | ||
resource.TestCheckResourceAttrSet("data.equinix_fabric_cloud_router.example", "href"), | ||
|
@@ -62,7 +62,7 @@ func ConfigCreateCloudRouterResource_PFCR() string { | |
metro_code= "SV" | ||
} | ||
package { | ||
code="LAB" | ||
code="STANDARD" | ||
} | ||
project { | ||
project_id = "291639000636552" | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ import ( | |
"context" | ||
"fmt" | ||
"testing" | ||
"time" | ||
|
||
v4 "github.com/equinix-labs/fabric-go/fabric/v4" | ||
|
||
|
@@ -41,7 +42,7 @@ func TestAccCloudRouterCreateOnlyRequiredParameters_PFCR(t *testing.T) { | |
resource.TestCheckResourceAttr("equinix_fabric_cloud_router.test", "notifications.0.emails.0", "[email protected]"), | ||
resource.TestCheckResourceAttr("equinix_fabric_cloud_router.test", "order.0.purchase_order_number", "1-234567"), | ||
resource.TestCheckResourceAttr("equinix_fabric_cloud_router.test", "location.0.metro_code", "SV"), | ||
resource.TestCheckResourceAttr("equinix_fabric_cloud_router.test", "package.0.code", "LAB"), | ||
resource.TestCheckResourceAttr("equinix_fabric_cloud_router.test", "package.0.code", "STANDARD"), | ||
resource.TestCheckResourceAttrSet("equinix_fabric_cloud_router.test", "project.0.project_id"), | ||
resource.TestCheckResourceAttrSet("equinix_fabric_cloud_router.test", "account.0.account_number"), | ||
resource.TestCheckResourceAttrSet("equinix_fabric_cloud_router.test", "href"), | ||
|
@@ -79,7 +80,7 @@ func testAccCloudRouterCreateOnlyRequiredParameterConfig_PFCR(name string) strin | |
metro_code = "SV" | ||
} | ||
package{ | ||
code = "LAB" | ||
code = "STANDARD" | ||
} | ||
order{ | ||
purchase_order_number = "1-234567" | ||
|
@@ -176,7 +177,7 @@ func checkCloudRouterDelete(s *terraform.State) error { | |
if rs.Type != "equinix_fabric_cloud_router" { | ||
continue | ||
} | ||
err := equinix.WaitUntilCloudRouterDeprovisioned(rs.Primary.ID, acceptance.TestAccProvider.Meta(), ctx) | ||
err := equinix.WaitUntilCloudRouterDeprovisioned(rs.Primary.ID, acceptance.TestAccProvider.Meta(), ctx, 10*time.Minute) | ||
if err != nil { | ||
return fmt.Errorf("API call failed while waiting for resource deletion") | ||
} | ||
|
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.