From ab14761205adb4ce2548f55c29f802e556ccffe0 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Fri, 26 Jul 2024 11:12:09 -0700 Subject: [PATCH 01/13] Initial Testing update for UAT Sanity tests --- .gitignore | 8 + go.sum | 12 - .../port-2-ibm2-connection/README.md | 349 ++++++++++++++++++ .../port-2-ibm2-connection/main.tf | 57 +++ .../port-2-ibm2-connection/outputs.tf | 6 + .../terraform.tfvars.example | 25 ++ .../port-2-ibm2-connection/variables.tf | 117 ++++++ .../port-2-ibm2-connection/versions.tf | 13 + tests/uat/fcr-2-aws-pfcr_test.go | 21 ++ tests/uat/fcr-2-azure-pfcr_test.go | 21 ++ ...2-port-with-routing-protocols-pfcr_test.go | 21 ++ tests/uat/fcr-2-sp-pfcr_test.go | 21 ++ tests/uat/fcr-2-wan-pfcr_test.go | 21 ++ tests/uat/port-2-alibaba-pnfv_test.go | 21 ++ tests/uat/port-2-aws-pfcr_test.go | 21 ++ tests/uat/port-2-azure-pfcr_test.go | 21 ++ tests/uat/port-2-ibm2-pfcr_test.go | 21 ++ tests/uat/port-2-port-pfcr_test.go | 21 ++ tests/uat/port-2-private-sp-pfcr_test.go | 21 ++ tests/uat/port-2-public-sp-pfcr_test.go | 21 ++ tests/uat/vd-2-azure-pnfv_test.go | 21 ++ tests/uat/vd-2-port-pnfv_test.go | 21 ++ 22 files changed, 869 insertions(+), 12 deletions(-) create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/README.md create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/main.tf create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/outputs.tf create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/variables.tf create mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/versions.tf create mode 100644 tests/uat/fcr-2-aws-pfcr_test.go create mode 100644 tests/uat/fcr-2-azure-pfcr_test.go create mode 100644 tests/uat/fcr-2-port-with-routing-protocols-pfcr_test.go create mode 100644 tests/uat/fcr-2-sp-pfcr_test.go create mode 100644 tests/uat/fcr-2-wan-pfcr_test.go create mode 100644 tests/uat/port-2-alibaba-pnfv_test.go create mode 100644 tests/uat/port-2-aws-pfcr_test.go create mode 100644 tests/uat/port-2-azure-pfcr_test.go create mode 100644 tests/uat/port-2-ibm2-pfcr_test.go create mode 100644 tests/uat/port-2-port-pfcr_test.go create mode 100644 tests/uat/port-2-private-sp-pfcr_test.go create mode 100644 tests/uat/port-2-public-sp-pfcr_test.go create mode 100644 tests/uat/vd-2-azure-pnfv_test.go create mode 100644 tests/uat/vd-2-port-pnfv_test.go diff --git a/.gitignore b/.gitignore index 112b0b2c..64228bfb 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,11 @@ terraform.rc # Ignore IDE Files .idea* + +# Ignore OSX Files +.DS_Store + +# Ignore log/xml/html files generated from test output +*.log +*.xml +*.html diff --git a/go.sum b/go.sum index 43fff35a..492d70d3 100644 --- a/go.sum +++ b/go.sum @@ -338,10 +338,6 @@ github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6c github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/gruntwork-io/terratest v0.43.0 h1:/ewxlYwd/HBralCt7P2bAhYM8hdkOiFJHrMz5XdlsSY= -github.com/gruntwork-io/terratest v0.43.0/go.mod h1:vZO4J6UW023NDvl1vI+twZk9r//+QEaNT6MfkheH7z0= -github.com/gruntwork-io/terratest v0.46.15 h1:qfqjTFveymaqe7aAWn3LjlK0SwVGpRfoOut5ggNyfQ8= -github.com/gruntwork-io/terratest v0.46.15/go.mod h1:9bd22zAojjBBiYdsp+AR1iyl2iB6bRUVm2Yf1AFhfrA= github.com/gruntwork-io/terratest v0.46.16 h1:l+HHuU7lNLwoAl2sP8zkYJy0uoE2Mwha2nw+rim+OhQ= github.com/gruntwork-io/terratest v0.46.16/go.mod h1:oywHw1cFKXSYvKPm27U7quZVzDUlA22H2xUrKCe26xM= github.com/gruntwork-io/terratest v0.47.0 h1:xIy1pT7NbGVlMLDZEHl3+3iSnvffh8tN2pL6idn448c= @@ -350,10 +346,6 @@ github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/U github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= -github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= -github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= -github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI= @@ -428,8 +420,6 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tmccombs/hcl2json v0.3.3 h1:+DLNYqpWE0CsOQiEZu+OZm5ZBImake3wtITYxQ8uLFQ= @@ -581,8 +571,6 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= -golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/README.md b/tests/examples-without-external-providers/port-2-ibm2-connection/README.md new file mode 100644 index 00000000..eaab4745 --- /dev/null +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/README.md @@ -0,0 +1,349 @@ +# Fabric Port to Fabric IBM 2.0 Service Profile Connection + +This example shows how to leverage the [Fabric Port Connection Module](../../modules/port-connection/README.md) +to create a Fabric Connection from a Fabric Port to Fabric IBM 2.0 Service Profile. + +It leverages the Equinix Terraform Provider, and the Fabric Port Connection +Module to setup the connection based on the parameters you have provided to this example; or based on the pattern +you see used in this example it will allow you to create a more specific use case for your own needs. + +See example usage below for details on how to use this example. + + +## Equinix Fabric Developer Documentation + +To see the documentation for the APIs that the Fabric Terraform Provider is built on +and to learn how to procure your own Client_Id and Client_Secret follow the link below: +[Equinix Fabric Developer Portal](https://developer.equinix.com/docs?page=/dev-docs/fabric/overview) + +## Usage of Example as Terraform Module + +To provision this example directly as a usable module please use the *Provision Instructions* provided by Hashicorp +in the upper right of this page and be sure to include at a minimum the required variables. + +## Usage of Example Locally or in Your Own Configuration + +*Note:* This example creates resources which cost money. Run 'terraform destroy' when you don't need these resources. + +To provision this example directly, +you should clone the github repository for this module and run terraform within this directory: + +```bash +git clone https://github.com/equinix/terraform-equinix-fabric.git +cd terraform-equinix-fabric/examples/port-2-ibm2-connection +terraform init +terraform apply +``` + +To use this example of the module in your own terraform configuration include the following: + +*NOTE: terraform.tfvars must be a separate file, but all other content can be placed together in main.tf if you prefer* + +terraform.tfvars (Replace these values with your own): +```hcl + +equinix_client_id = "MyEquinixClientId" +equinix_client_secret = "MyEquinixClientSecret" + +connection_name = "Port2IBM2" +connection_type = "EVPL_VC" +notifications_type = "ALL" +notifications_emails = ["example@equinix.com"] +bandwidth = 50 +purchase_order_number = "1-323292" +aside_port_name = "sit-001-200009-CX-TY4-NL-Qinq-STD-10G-PRI-JP-252" +aside_vlan_tag = "3202" +aside_vlan_inner_tag = "3195" +zside_ap_type = "SP" +zside_ap_authentication_key = "" +zside_ap_profile_type = "L2_PROFILE" +zside_location = "SV" +zside_sp_name = "IBM Cloud Direct Link 2" +zside_seller_region = "San Jose 2" +additional_info = [{ key = "ASN", value = "14353" }] + +ibm_cloud_api_key = " + +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 1.5.4 | +| [equinix](#requirement\_equinix) | >= 1.38.1 | +| [ibm](#requirement\_ibm) | >= 1.12.0 | + +## Providers + +| Name | Version | +|------|---------| +| [ibm](#provider\_ibm) | >= 1.12.0 | +| [time](#provider\_time) | n/a | + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [create\_port\_2\_ibm2\_connection](#module\_create\_port\_2\_ibm2\_connection) | ../../modules/port-connection | n/a | + +## Resources + +| Name | Type | +|------|------| +| [ibm_dl_gateway_action.test_dl_gateway_action](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/dl_gateway_action) | resource | +| [time_sleep.wait_dl_connection](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | +| [ibm_dl_gateway.test_ibm_dl_gateway](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/dl_gateway) | data source | +| [ibm_resource_group.rg](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/resource_group) | data source | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [aside\_port\_name](#input\_aside\_port\_name) | Equinix A-Side Port Name | `string` | n/a | yes | +| [aside\_vlan\_tag](#input\_aside\_vlan\_tag) | Vlan Tag information, outer vlanSTag for QINQ connections | `string` | n/a | yes | +| [bandwidth](#input\_bandwidth) | Connection bandwidth in Mbps | `number` | n/a | yes | +| [connection\_name](#input\_connection\_name) | Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores | `string` | n/a | yes | +| [connection\_type](#input\_connection\_type) | Defines the connection type like VG\_VC, EVPL\_VC, EPL\_VC, EC\_VC, IP\_VC, ACCESS\_EPL\_VC | `string` | n/a | yes | +| [equinix\_client\_id](#input\_equinix\_client\_id) | Equinix client ID (consumer key), obtained after registering app in the developer platform | `string` | n/a | yes | +| [equinix\_client\_secret](#input\_equinix\_client\_secret) | Equinix client secret ID (consumer secret), obtained after registering app in the developer platform | `string` | n/a | yes | +| [ibm\_classic\_api\_key](#input\_ibm\_classic\_api\_key) | The IBM Cloud Classic Infrastructure API key | `string` | n/a | yes | +| [ibm\_classic\_username](#input\_ibm\_classic\_username) | The IBM Cloud Classic Infrastructure user name | `string` | n/a | yes | +| [ibm\_cloud\_api\_key](#input\_ibm\_cloud\_api\_key) | The IBM Cloud platform API key | `string` | n/a | yes | +| [ibm\_gateway\_action](#input\_ibm\_gateway\_action) | IBM Approve/reject a pending change request | `string` | n/a | yes | +| [ibm\_resource\_group\_name](#input\_ibm\_resource\_group\_name) | The IBM Resource Group Name | `string` | n/a | yes | +| [notifications\_emails](#input\_notifications\_emails) | Array of contact emails | `list(string)` | n/a | yes | +| [zside\_ap\_authentication\_key](#input\_zside\_ap\_authentication\_key) | Authentication key for provider based connections | `string` | n/a | yes | +| [zside\_ap\_profile\_type](#input\_zside\_ap\_profile\_type) | Service profile type - L2\_PROFILE, L3\_PROFILE, ECIA\_PROFILE, ECMC\_PROFILE | `string` | n/a | yes | +| [zside\_ap\_type](#input\_zside\_ap\_type) | Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW | `string` | n/a | yes | +| [zside\_location](#input\_zside\_location) | Access point metro code | `string` | n/a | yes | +| [zside\_seller\_region](#input\_zside\_seller\_region) | Access point seller region | `string` | n/a | yes | +| [zside\_sp\_name](#input\_zside\_sp\_name) | Equinix Service Profile Name | `string` | n/a | yes | +| [additional\_info](#input\_additional\_info) | Additional info parameters. It's a list of maps containing 'key' and 'value' keys with their corresponding values. | `list(object({ key = string, value = string }))` | `[]` | no | +| [aside\_vlan\_inner\_tag](#input\_aside\_vlan\_inner\_tag) | Vlan Inner Tag information, inner vlanCTag for QINQ connections | `string` | `""` | no | +| [ibm\_gateway\_global](#input\_ibm\_gateway\_global) | Required-Gateway with global routing as true can connect networks outside your associated region | `bool` | `true` | no | +| [ibm\_gateway\_metered](#input\_ibm\_gateway\_metered) | Metered billing option. If set true gateway usage is billed per GB | `bool` | `true` | no | +| [notifications\_type](#input\_notifications\_type) | Notification Type - ALL is the only type currently supported | `string` | `"ALL"` | no | +| [project\_id](#input\_project\_id) | Subscriber-assigned project ID | `string` | `""` | no | +| [purchase\_order\_number](#input\_purchase\_order\_number) | Purchase order number | `string` | `""` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [IBM\_Gateway\_Action\_Id](#output\_IBM\_Gateway\_Action\_Id) | n/a | +| [ibm2\_connection\_id](#output\_ibm2\_connection\_id) | n/a | + diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf b/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf new file mode 100644 index 00000000..26396521 --- /dev/null +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf @@ -0,0 +1,57 @@ +provider "equinix" { + client_id = var.equinix_client_id + client_secret = var.equinix_client_secret +} + +provider "ibm" { + ibmcloud_api_key = var.ibm_cloud_api_key + iaas_classic_username = var.ibm_classic_username + iaas_classic_api_key = var.ibm_classic_api_key +} + +module "create_port_2_ibm2_connection" { + source = "../../modules/port-connection" + + connection_name = var.connection_name + connection_type = var.connection_type + notifications_type = var.notifications_type + notifications_emails = var.notifications_emails + project_id = var.project_id + bandwidth = var.bandwidth + purchase_order_number = var.purchase_order_number + + # A-side + aside_port_name = var.aside_port_name + aside_vlan_tag = var.aside_vlan_tag + aside_vlan_inner_tag = var.aside_vlan_inner_tag + + # Z-side + zside_ap_type = var.zside_ap_type + zside_ap_authentication_key = var.zside_ap_authentication_key + zside_ap_profile_type = var.zside_ap_profile_type + zside_location = var.zside_location + zside_seller_region = var.zside_seller_region + zside_sp_name = var.zside_sp_name + additional_info = var.additional_info +} + +resource "time_sleep" "wait_dl_connection" { + create_duration = "1m" +} + +data "ibm_dl_gateway" "test_ibm_dl_gateway" { + name = var.connection_name + depends_on = [time_sleep.wait_dl_connection] +} + +data "ibm_resource_group" "rg" { + name = var.ibm_resource_group_name +} + +resource "ibm_dl_gateway_action" "test_dl_gateway_action" { + gateway = data.ibm_dl_gateway.test_ibm_dl_gateway.id + action = var.ibm_gateway_action + global = var.ibm_gateway_global + metered = var.ibm_gateway_metered + resource_group = data.ibm_resource_group.rg.id +} diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/outputs.tf b/tests/examples-without-external-providers/port-2-ibm2-connection/outputs.tf new file mode 100644 index 00000000..a4aa011c --- /dev/null +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/outputs.tf @@ -0,0 +1,6 @@ +output "ibm2_connection_id" { + value = module.create_port_2_ibm2_connection.primary_connection_id +} +output "IBM_Gateway_Action_Id" { + value = ibm_dl_gateway_action.test_dl_gateway_action.id +} diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example b/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example new file mode 100644 index 00000000..1d270d5f --- /dev/null +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example @@ -0,0 +1,25 @@ +equinix_client_id = "MyEquinixClientId" +equinix_client_secret = "MyEquinixClientSecret" + +connection_name = "Port2IBM2" +connection_type = "EVPL_VC" +notifications_type = "ALL" +notifications_emails = ["example@equinix.com"] +bandwidth = 50 +purchase_order_number = "1-323292" +aside_port_name = "sit-001-200009-CX-TY4-NL-Qinq-STD-10G-PRI-JP-252" +aside_vlan_tag = "3202" +aside_vlan_inner_tag = "3195" +zside_ap_type = "SP" +zside_ap_authentication_key = "" +zside_ap_profile_type = "L2_PROFILE" +zside_location = "SV" +zside_sp_name = "IBM Cloud Direct Link 2" +zside_seller_region = "San Jose 2" +additional_info = [{ key = "ASN", value = "14353" }] + +ibm_cloud_api_key = " Date: Tue, 20 Aug 2024 15:55:00 -0700 Subject: [PATCH 02/13] update ibm uat test and add testing report code to github workflow --- .github/workflows/terratests-uat-suite.yaml | 25 ++++++++++++-- .../port-2-ibm2-connection/main.tf | 2 +- .../port-2-ibm2-connection/variables.tf | 33 ------------------- tests/uat/port-2-ibm2-pfcr_test.go | 2 +- 4 files changed, 25 insertions(+), 37 deletions(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 4b2410e7..3bc0f58e 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -28,9 +28,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -45,7 +52,7 @@ jobs: - name: Run Go Tests run: - go test ./tests/uat -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PNFV)" -timeout 180m + go test ./tests/uat -json -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PNFV)" -timeout 180m | tee pnfv_test_output.log - name: Upload test coverage to Codecov if: ${{ always() }} @@ -115,7 +122,7 @@ jobs: - name: Run Go Tests run: - go test ./tests/uat -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PFCR)" -timeout 180m + go test ./tests/uat -json -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PFCR)" -timeout 180m | tee pfcr_test_output.log - name: Upload test coverage to Codecov if: ${{ always() }} @@ -123,3 +130,17 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage_uat_modules.txt + + - name: Create HTML Testing Report + run: | + pip3 install junit2html + cat pfcr_test_output.log > uat_sanity_report.log && cat pnfv_test_output.log >> uat_sanity_report.log + go-junit-report -parser gojson -in uat_sanity_report.log > uat_sanity_report.xml && python3 -m junit2htmlreport uat_sanity_report.xml uat_sanity_report.html + + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 + with: + name: UAT Terraform Modules Testing Report + path: ./uat_sanity_report.html + + diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf b/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf index 26396521..932cccb1 100644 --- a/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/main.tf @@ -10,7 +10,7 @@ provider "ibm" { } module "create_port_2_ibm2_connection" { - source = "../../modules/port-connection" + source = "../../../modules/port-connection" connection_name = var.connection_name connection_type = var.connection_type diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/variables.tf b/tests/examples-without-external-providers/port-2-ibm2-connection/variables.tf index 0d1375e9..bc8f504a 100644 --- a/tests/examples-without-external-providers/port-2-ibm2-connection/variables.tf +++ b/tests/examples-without-external-providers/port-2-ibm2-connection/variables.tf @@ -82,36 +82,3 @@ variable "additional_info" { type = list(object({ key = string, value = string })) default = [] } -variable "ibm_cloud_api_key" { - description = "The IBM Cloud platform API key" - type = string - sensitive = true -} -variable "ibm_classic_username" { - description = "The IBM Cloud Classic Infrastructure user name" - type = string - sensitive = true -} -variable "ibm_classic_api_key" { - description = "The IBM Cloud Classic Infrastructure API key" - type = string - sensitive = true -} -variable "ibm_resource_group_name" { - description = "The IBM Resource Group Name" - type = string -} -variable "ibm_gateway_action" { - description = "IBM Approve/reject a pending change request" - type = string -} -variable "ibm_gateway_global" { - description = "Required-Gateway with global routing as true can connect networks outside your associated region" - type = bool - default = true -} -variable "ibm_gateway_metered" { - description = "Metered billing option. If set true gateway usage is billed per GB" - type = bool - default = true -} diff --git a/tests/uat/port-2-ibm2-pfcr_test.go b/tests/uat/port-2-ibm2-pfcr_test.go index 5d6439d1..6ef8a462 100644 --- a/tests/uat/port-2-ibm2-pfcr_test.go +++ b/tests/uat/port-2-ibm2-pfcr_test.go @@ -9,7 +9,7 @@ import ( func TestPort2Ibm2CreateConnection_PFCR(t *testing.T) { terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-ibm2-connection", + TerraformDir: "../examples-without-external-providers/port-2-ibm2-connection", }) defer terraform.Destroy(t, terraformOptions) From c405f74c0b78b2835c10d02dcac8b2e591193503 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Wed, 21 Aug 2024 13:12:46 -0700 Subject: [PATCH 03/13] Add 3rd job to uat suite to handle test report generation and attachment to output --- .github/workflows/terratests-uat-suite.yaml | 55 ++++++++++++++++----- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 3bc0f58e..8058048a 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -54,12 +54,11 @@ jobs: run: go test ./tests/uat -json -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PNFV)" -timeout 180m | tee pnfv_test_output.log - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload PNFV Testing Log + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_uat_modules.txt + name: pnfv_test_logs + path: pnfv_test_output.log test-PFCR: name: Setup UAT PFCR Tests @@ -124,17 +123,49 @@ jobs: run: go test ./tests/uat -json -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PFCR)" -timeout 180m | tee pfcr_test_output.log - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload PFCR Testing Log + uses: actions/upload-artifact@v4 + with: + name: pfcr_test_logs + path: pfcr_test_output.log + + upload-test-report: + name: Upload Testing Report + needs: [test-PNFV, test-PFCR] + runs-on: ubuntu-latest + + steps: + - name: Set up Go + uses: actions/setup-go@v5 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_uat_modules.txt + go-version-file: './go.mod' + id: go + + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Get dependencies + run: | + go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html + + - name: Download PNFV Test Logs + uses: actions/download-artifact@v4 + with: + name: pnfv_test_logs + + - name: Download PFCR Test Logs + uses: actions/download-artifact@v4 + with: + name: pfcr_test_logs - name: Create HTML Testing Report run: | pip3 install junit2html - cat pfcr_test_output.log > uat_sanity_report.log && cat pnfv_test_output.log >> uat_sanity_report.log + cat pfcr_test_output.log pnfv_test_output.log > uat_sanity_report.log go-junit-report -parser gojson -in uat_sanity_report.log > uat_sanity_report.xml && python3 -m junit2htmlreport uat_sanity_report.xml uat_sanity_report.html - name: Upload HTML Testing Report @@ -142,5 +173,3 @@ jobs: with: name: UAT Terraform Modules Testing Report path: ./uat_sanity_report.html - - From 459935e1fa48281b9153455d8df34f611995e336 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Wed, 21 Aug 2024 14:09:42 -0700 Subject: [PATCH 04/13] Update dependency management for each job --- .github/workflows/terratests-uat-suite.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 8058048a..7830f714 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -28,16 +28,9 @@ jobs: go-version-file: './go.mod' id: go - - name: Set up Python3 - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - name: Get dependencies run: | go mod download - go install github.com/thogarty/go-junit-report/v2@latest - pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -148,7 +141,6 @@ jobs: - name: Get dependencies run: | - go mod download go install github.com/thogarty/go-junit-report/v2@latest pip3 install junit2html From 395f2d3fd73eb05d77a2487c49789640a0fde9ab Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Wed, 21 Aug 2024 14:22:21 -0700 Subject: [PATCH 05/13] Remove incorrect reference to mod path in test report creation job --- .github/workflows/terratests-uat-suite.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 7830f714..7edcd1e6 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -130,8 +130,6 @@ jobs: steps: - name: Set up Go uses: actions/setup-go@v5 - with: - go-version-file: './go.mod' id: go - name: Set up Python3 From ace4381c623a8afb2c7907ff9a4e54e450b33c22 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Wed, 21 Aug 2024 14:38:40 -0700 Subject: [PATCH 06/13] Remove redundant dependency install and upload html file without compression for faster viewing --- .github/workflows/terratests-uat-suite.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 7edcd1e6..0098417e 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -154,7 +154,6 @@ jobs: - name: Create HTML Testing Report run: | - pip3 install junit2html cat pfcr_test_output.log pnfv_test_output.log > uat_sanity_report.log go-junit-report -parser gojson -in uat_sanity_report.log > uat_sanity_report.xml && python3 -m junit2htmlreport uat_sanity_report.xml uat_sanity_report.html @@ -162,4 +161,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: UAT Terraform Modules Testing Report + compression-level: 0 path: ./uat_sanity_report.html From 1fee521b429d959b9312906e8340c8501eee2516 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Thu, 22 Aug 2024 17:40:11 -0700 Subject: [PATCH 07/13] Add testing reporting capability to all workflows --- .../workflows/terratests-fcr-prod-suite.yaml | 25 +++++++++++++------ .../terratests-metal-nimf-suite.yaml | 23 ++++++++++++----- .../workflows/terratests-port-prod-suite.yaml | 25 +++++++++++++------ .../workflows/terratests-prod-suite-all.yaml | 23 ++++++++++++----- .github/workflows/terratests-uat-suite.yaml | 4 +-- .../terratests-virtualdevice-prod-suite.yaml | 25 +++++++++++++------ 6 files changed, 90 insertions(+), 35 deletions(-) diff --git a/.github/workflows/terratests-fcr-prod-suite.yaml b/.github/workflows/terratests-fcr-prod-suite.yaml index 5a8d3ee2..e001cd40 100644 --- a/.github/workflows/terratests-fcr-prod-suite.yaml +++ b/.github/workflows/terratests-fcr-prod-suite.yaml @@ -28,9 +28,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | - go mod download + go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -61,11 +68,15 @@ jobs: jq --arg timestamp "$TIMESTAMP" '.connection_name = ($timestamp + "_" + .connection_name)' ./examples/cloud-router-2-virtual-device-connection/terraform.tfvars.json > ./examples/cloud-router-2-virtual-device-connection/tmp.test.json && mv ./examples/cloud-router-2-virtual-device-connection/tmp.test.json ./examples/cloud-router-2-virtual-device-connection/terraform.tfvars.json - name: Run Go Tests run: - go test ./tests/prod/cloud-router -v -coverprofile coverage_prod_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(DIGP)" -timeout 180m + go test ./tests/prod/cloud-router -json -v -count 1 -parallel 8 -run "(DIGP)" -timeout 180m | tee fcr_prod_suite.log + + - name: Create HTML Testing Report + run: | + go-junit-report -parser gojson -in fcr_prod_suite.log > fcr_prod_suite.xml && python3 -m junit2htmlreport fcr_prod_suite.xml fcr_prod_suite.html - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_prod_modules.txt + name: FCR Prod Suite Terraform Modules Testing Report + path: fcr_prod_suite.html + compression-level: 0 diff --git a/.github/workflows/terratests-metal-nimf-suite.yaml b/.github/workflows/terratests-metal-nimf-suite.yaml index 043a6945..a1da6960 100644 --- a/.github/workflows/terratests-metal-nimf-suite.yaml +++ b/.github/workflows/terratests-metal-nimf-suite.yaml @@ -30,9 +30,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -68,11 +75,15 @@ jobs: - name: Run Go Tests run: - go test ./tests/prod/metal-nimf -v -coverprofile coverage_metal_nimf_modules.txt -covermode=atomic -count 1 -parallel 8 -timeout 180m + go test ./tests/prod/metal-nimf -v -json -count 1 -parallel 8 -timeout 180m | tee metal_prod_suite.log + + - name: Create HTML Testing Report + run: | + go-junit-report -parser gojson -in metal_prod_suite.log > metal_prod_suite.xml && python3 -m junit2htmlreport metal_prod_suite.xml metal_prod_suite.html - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_metal_nimf_modules.txt + name: Metal NIMF Prod Suite Terraform Modules Testing Report + path: metal_prod_suite.html + compression-level: 0 diff --git a/.github/workflows/terratests-port-prod-suite.yaml b/.github/workflows/terratests-port-prod-suite.yaml index ac995218..13dc79aa 100644 --- a/.github/workflows/terratests-port-prod-suite.yaml +++ b/.github/workflows/terratests-port-prod-suite.yaml @@ -30,9 +30,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | - go mod download + go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -67,11 +74,15 @@ jobs: - name: Run Go Tests run: - go test ./tests/prod/port -v -coverprofile coverage_prod_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(DIGP)" -timeout 180m + go test ./tests/prod/port -v -json -count 1 -parallel 8 -run "(DIGP)" -timeout 180m | tee port_prod_suite.log + + - name: Create HTML Testing Report + run: | + go-junit-report -parser gojson -in port_prod_suite.log > port_prod_suite.xml && python3 -m junit2htmlreport port_prod_suite.xml port_prod_suite.html - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_prod_modules.txt + name: Port Prod Suite Terraform Modules Testing Report + path: port_prod_suite.html + compression-level: 0 diff --git a/.github/workflows/terratests-prod-suite-all.yaml b/.github/workflows/terratests-prod-suite-all.yaml index 3aeb02ea..9fb07bac 100644 --- a/.github/workflows/terratests-prod-suite-all.yaml +++ b/.github/workflows/terratests-prod-suite-all.yaml @@ -42,9 +42,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -103,11 +110,15 @@ jobs: - name: Run Go Tests run: - go test ./tests/prod -v -coverprofile coverage_prod_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(DIGP)" -timeout 180m + go test ./tests/prod -json -v -count 1 -parallel 8 -run "(DIGP)" -timeout 180m | tee prod_suite_all.log + + - name: Create HTML Testing Report + run: | + go-junit-report -parser gojson -in prod_suite_all.log > prod_suite_all.xml && python3 -m junit2htmlreport prod_suite_all.xml prod_suite_all.html - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_prod_modules.txt + name: Prod Suite ALL Terraform Modules Testing Report + path: prod_suite_all.html + compression-level: 0 diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index 0098417e..a1f47218 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -114,7 +114,7 @@ jobs: - name: Run Go Tests run: - go test ./tests/uat -json -v -coverprofile coverage_uat_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(PFCR)" -timeout 180m | tee pfcr_test_output.log + go test ./tests/uat -json -v -count 1 -parallel 8 -run "(PFCR)" -timeout 180m | tee pfcr_test_output.log - name: Upload PFCR Testing Log uses: actions/upload-artifact@v4 @@ -161,5 +161,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: UAT Terraform Modules Testing Report + path: uat_sanity_report.html compression-level: 0 - path: ./uat_sanity_report.html diff --git a/.github/workflows/terratests-virtualdevice-prod-suite.yaml b/.github/workflows/terratests-virtualdevice-prod-suite.yaml index 9c8a0b9b..5652197d 100644 --- a/.github/workflows/terratests-virtualdevice-prod-suite.yaml +++ b/.github/workflows/terratests-virtualdevice-prod-suite.yaml @@ -25,9 +25,16 @@ jobs: go-version-file: './go.mod' id: go + - name: Set up Python3 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Get dependencies run: | - go mod download + go mod download + go install github.com/thogarty/go-junit-report/v2@latest + pip3 install junit2html - uses: hashicorp/setup-terraform@v3 with: @@ -53,11 +60,15 @@ jobs: - name: Run Go Tests run: - go test ./tests/prod/virtual-device -v -coverprofile coverage_prod_modules.txt -covermode=atomic -count 1 -parallel 8 -run "(DIGP)" -timeout 180m + go test ./tests/prod/virtual-device -json -v -count 1 -parallel 8 -run "(DIGP)" -timeout 180m | tee vd_prod_suite.log + + - name: Create HTML Testing Report + run: | + go-junit-report -parser gojson -in vd_prod_suite.log > vd_prod_suite.xml && python3 -m junit2htmlreport vd_prod_suite.xml vd_prod_suite.html - - name: Upload test coverage to Codecov - if: ${{ always() }} - uses: codecov/codecov-action@v4 + - name: Upload HTML Testing Report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage_prod_modules.txt + name: Virtual Device Prod Suite Terraform Modules Testing Report + path: vd_prod_suite.html + compression-level: 0 From 55b79464b2b4f8972b34f9a78a564cb0012c6436 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Thu, 22 Aug 2024 17:50:36 -0700 Subject: [PATCH 08/13] Move IBM2 UAT user data to example without provider --- .github/workflows/terratests-uat-suite.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terratests-uat-suite.yaml b/.github/workflows/terratests-uat-suite.yaml index a1f47218..b7e80acb 100644 --- a/.github/workflows/terratests-uat-suite.yaml +++ b/.github/workflows/terratests-uat-suite.yaml @@ -99,7 +99,7 @@ jobs: run: | echo $TEST_DATA_UAT_PORT_2_AWS_CONNECTION >> "./tests/examples-without-external-providers/port-2-aws-connection/terraform.tfvars.json" echo $TEST_DATA_UAT_PORT_2_AZURE_CONNECTION >> "./tests/examples-without-external-providers/port-2-azure-connection/terraform.tfvars.json" - echo $TEST_DATA_UAT_PORT_2_IBM2_CONNECTION >> "./examples/port-2-ibm2-connection/terraform.tfvars.json" + echo $TEST_DATA_UAT_PORT_2_IBM2_CONNECTION >> "./tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.json" echo $TEST_DATA_UAT_PORT_2_PORT_CONNECTION >> "./examples/port-2-port-connection/terraform.tfvars.json" echo $TEST_DATA_UAT_PORT_2_PRIVATE_SERVICE_PROFILE_CONNECTION >> "./examples/port-2-private-service-profile-connection/terraform.tfvars.json" echo $TEST_DATA_UAT_PORT_2_PUBLIC_SERVICE_PROFILE_CONNECTION >> "./examples/port-2-public-service-profile-connection/terraform.tfvars.json" From 97909ade0662c411a23b57793d9ea5bf47af3275 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 26 Aug 2024 17:03:16 -0700 Subject: [PATCH 09/13] revert back to single file for UAT sanity suite --- tests/uat/fcr-2-aws-pfcr_test.go | 21 ------------------- tests/uat/fcr-2-azure-pfcr_test.go | 21 ------------------- ...2-port-with-routing-protocols-pfcr_test.go | 21 ------------------- tests/uat/fcr-2-sp-pfcr_test.go | 21 ------------------- tests/uat/fcr-2-wan-pfcr_test.go | 21 ------------------- tests/uat/port-2-alibaba-pnfv_test.go | 21 ------------------- tests/uat/port-2-aws-pfcr_test.go | 21 ------------------- tests/uat/port-2-azure-pfcr_test.go | 21 ------------------- tests/uat/port-2-ibm2-pfcr_test.go | 21 ------------------- tests/uat/port-2-port-pfcr_test.go | 21 ------------------- tests/uat/port-2-private-sp-pfcr_test.go | 21 ------------------- tests/uat/port-2-public-sp-pfcr_test.go | 21 ------------------- tests/uat/vd-2-azure-pnfv_test.go | 21 ------------------- tests/uat/vd-2-port-pnfv_test.go | 21 ------------------- 14 files changed, 294 deletions(-) delete mode 100644 tests/uat/fcr-2-aws-pfcr_test.go delete mode 100644 tests/uat/fcr-2-azure-pfcr_test.go delete mode 100644 tests/uat/fcr-2-port-with-routing-protocols-pfcr_test.go delete mode 100644 tests/uat/fcr-2-sp-pfcr_test.go delete mode 100644 tests/uat/fcr-2-wan-pfcr_test.go delete mode 100644 tests/uat/port-2-alibaba-pnfv_test.go delete mode 100644 tests/uat/port-2-aws-pfcr_test.go delete mode 100644 tests/uat/port-2-azure-pfcr_test.go delete mode 100644 tests/uat/port-2-ibm2-pfcr_test.go delete mode 100644 tests/uat/port-2-port-pfcr_test.go delete mode 100644 tests/uat/port-2-private-sp-pfcr_test.go delete mode 100644 tests/uat/port-2-public-sp-pfcr_test.go delete mode 100644 tests/uat/vd-2-azure-pnfv_test.go delete mode 100644 tests/uat/vd-2-port-pnfv_test.go diff --git a/tests/uat/fcr-2-aws-pfcr_test.go b/tests/uat/fcr-2-aws-pfcr_test.go deleted file mode 100644 index 3ed9eaa8..00000000 --- a/tests/uat/fcr-2-aws-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestCloudRouter2AwsCreateConnection_PFCR(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) -} diff --git a/tests/uat/fcr-2-azure-pfcr_test.go b/tests/uat/fcr-2-azure-pfcr_test.go deleted file mode 100644 index adbddf54..00000000 --- a/tests/uat/fcr-2-azure-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestCloudRouter2AzureCreateConnection_PFCR(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) -} diff --git a/tests/uat/fcr-2-port-with-routing-protocols-pfcr_test.go b/tests/uat/fcr-2-port-with-routing-protocols-pfcr_test.go deleted file mode 100644 index d0b35e61..00000000 --- a/tests/uat/fcr-2-port-with-routing-protocols-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestCloudRouter2PortRoutingProtocolCreateConnection_PFCR(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) -} diff --git a/tests/uat/fcr-2-sp-pfcr_test.go b/tests/uat/fcr-2-sp-pfcr_test.go deleted file mode 100644 index 0dfa1eb8..00000000 --- a/tests/uat/fcr-2-sp-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestCloudRouter2ServiceProfileCreateConnection_PFCR(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) -} diff --git a/tests/uat/fcr-2-wan-pfcr_test.go b/tests/uat/fcr-2-wan-pfcr_test.go deleted file mode 100644 index 1b73ff64..00000000 --- a/tests/uat/fcr-2-wan-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestCloudRouter2WanCreateConnection_PFCR(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) -} diff --git a/tests/uat/port-2-alibaba-pnfv_test.go b/tests/uat/port-2-alibaba-pnfv_test.go deleted file mode 100644 index 5090ce0e..00000000 --- a/tests/uat/port-2-alibaba-pnfv_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2AlibabaCreateConnection_PNFV(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-alibaba-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "alibaba_connection_id") - assert.NotNil(t, output) -} diff --git a/tests/uat/port-2-aws-pfcr_test.go b/tests/uat/port-2-aws-pfcr_test.go deleted file mode 100644 index d942abf4..00000000 --- a/tests/uat/port-2-aws-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2AwsCreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../tests/examples-without-external-providers/port-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) -} diff --git a/tests/uat/port-2-azure-pfcr_test.go b/tests/uat/port-2-azure-pfcr_test.go deleted file mode 100644 index 4a73f957..00000000 --- a/tests/uat/port-2-azure-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2AzureCreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../tests/examples-without-external-providers/port-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) -} diff --git a/tests/uat/port-2-ibm2-pfcr_test.go b/tests/uat/port-2-ibm2-pfcr_test.go deleted file mode 100644 index 6ef8a462..00000000 --- a/tests/uat/port-2-ibm2-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2Ibm2CreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../examples-without-external-providers/port-2-ibm2-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "ibm2_connection_id") - assert.NotNil(t, output) -} diff --git a/tests/uat/port-2-port-pfcr_test.go b/tests/uat/port-2-port-pfcr_test.go deleted file mode 100644 index 6eecf64e..00000000 --- a/tests/uat/port-2-port-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2PortCreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-port-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "port_connection_id") - assert.NotNil(t, output) -} diff --git a/tests/uat/port-2-private-sp-pfcr_test.go b/tests/uat/port-2-private-sp-pfcr_test.go deleted file mode 100644 index 720187b5..00000000 --- a/tests/uat/port-2-private-sp-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2PrivateServiceProfileCreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-private-service-profile-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "private_sp_connection_id") - assert.NotNil(t, output) -} diff --git a/tests/uat/port-2-public-sp-pfcr_test.go b/tests/uat/port-2-public-sp-pfcr_test.go deleted file mode 100644 index 7561cae4..00000000 --- a/tests/uat/port-2-public-sp-pfcr_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestPort2PublicServiceProfileCreateConnection_PFCR(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-public-service-profile-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "public_sp_connection_id") - assert.NotNil(t, output) -} diff --git a/tests/uat/vd-2-azure-pnfv_test.go b/tests/uat/vd-2-azure-pnfv_test.go deleted file mode 100644 index c825b30d..00000000 --- a/tests/uat/vd-2-azure-pnfv_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestVirtualDevice2AzureCreateConnection_PNFV(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../tests/examples-without-external-providers/virtual-device-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) -} diff --git a/tests/uat/vd-2-port-pnfv_test.go b/tests/uat/vd-2-port-pnfv_test.go deleted file mode 100644 index cd5e7c92..00000000 --- a/tests/uat/vd-2-port-pnfv_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package uat_test - -import ( - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - "testing" -) - -func TestVirtualDevice2PortCreateConnection_PNFV(t *testing.T) { - - terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../tests/examples-without-external-providers/virtual-device-2-azure-connection", - }) - - defer terraform.Destroy(t, terraformOptions) - t.Parallel() - - terraform.InitAndApply(t, terraformOptions) - output := terraform.Output(t, terraformOptions, "port_connection_id") - assert.NotNil(t, output) -} From ecc5b3a97893b4c2f145102e1165835a7163c7bd Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 26 Aug 2024 17:04:33 -0700 Subject: [PATCH 10/13] Tidy Go module --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index 492d70d3..aa2cc903 100644 --- a/go.sum +++ b/go.sum @@ -338,8 +338,6 @@ github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6c github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/gruntwork-io/terratest v0.46.16 h1:l+HHuU7lNLwoAl2sP8zkYJy0uoE2Mwha2nw+rim+OhQ= -github.com/gruntwork-io/terratest v0.46.16/go.mod h1:oywHw1cFKXSYvKPm27U7quZVzDUlA22H2xUrKCe26xM= github.com/gruntwork-io/terratest v0.47.0 h1:xIy1pT7NbGVlMLDZEHl3+3iSnvffh8tN2pL6idn448c= github.com/gruntwork-io/terratest v0.47.0/go.mod h1:oywHw1cFKXSYvKPm27U7quZVzDUlA22H2xUrKCe26xM= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= From 82f41785630ba3253e1416ca239f9129fe258e21 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 26 Aug 2024 17:06:32 -0700 Subject: [PATCH 11/13] Point UAT IBM2 test to example without external providers --- tests/uat/uat_sanity_suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/uat/uat_sanity_suite_test.go b/tests/uat/uat_sanity_suite_test.go index 047aea0f..1e805606 100644 --- a/tests/uat/uat_sanity_suite_test.go +++ b/tests/uat/uat_sanity_suite_test.go @@ -51,7 +51,7 @@ func TestPort2AzureCreateConnection_PFCR(t *testing.T) { func TestPort2Ibm2CreateConnection_PFCR(t *testing.T) { terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ - TerraformDir: "../../examples/port-2-ibm2-connection", + TerraformDir: "../../tests/examples-without-external-providers/port-2-ibm2-connection", }) defer terraform.Destroy(t, terraformOptions) From d44fb42d5cda640b7985ea1ece5c2a33d0f7a841 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Tue, 27 Aug 2024 16:43:27 -0700 Subject: [PATCH 12/13] remove unnecessary file --- .../port-2-ibm2-connection/README.md | 349 ------------------ 1 file changed, 349 deletions(-) delete mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/README.md diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/README.md b/tests/examples-without-external-providers/port-2-ibm2-connection/README.md deleted file mode 100644 index eaab4745..00000000 --- a/tests/examples-without-external-providers/port-2-ibm2-connection/README.md +++ /dev/null @@ -1,349 +0,0 @@ -# Fabric Port to Fabric IBM 2.0 Service Profile Connection - -This example shows how to leverage the [Fabric Port Connection Module](../../modules/port-connection/README.md) -to create a Fabric Connection from a Fabric Port to Fabric IBM 2.0 Service Profile. - -It leverages the Equinix Terraform Provider, and the Fabric Port Connection -Module to setup the connection based on the parameters you have provided to this example; or based on the pattern -you see used in this example it will allow you to create a more specific use case for your own needs. - -See example usage below for details on how to use this example. - - -## Equinix Fabric Developer Documentation - -To see the documentation for the APIs that the Fabric Terraform Provider is built on -and to learn how to procure your own Client_Id and Client_Secret follow the link below: -[Equinix Fabric Developer Portal](https://developer.equinix.com/docs?page=/dev-docs/fabric/overview) - -## Usage of Example as Terraform Module - -To provision this example directly as a usable module please use the *Provision Instructions* provided by Hashicorp -in the upper right of this page and be sure to include at a minimum the required variables. - -## Usage of Example Locally or in Your Own Configuration - -*Note:* This example creates resources which cost money. Run 'terraform destroy' when you don't need these resources. - -To provision this example directly, -you should clone the github repository for this module and run terraform within this directory: - -```bash -git clone https://github.com/equinix/terraform-equinix-fabric.git -cd terraform-equinix-fabric/examples/port-2-ibm2-connection -terraform init -terraform apply -``` - -To use this example of the module in your own terraform configuration include the following: - -*NOTE: terraform.tfvars must be a separate file, but all other content can be placed together in main.tf if you prefer* - -terraform.tfvars (Replace these values with your own): -```hcl - -equinix_client_id = "MyEquinixClientId" -equinix_client_secret = "MyEquinixClientSecret" - -connection_name = "Port2IBM2" -connection_type = "EVPL_VC" -notifications_type = "ALL" -notifications_emails = ["example@equinix.com"] -bandwidth = 50 -purchase_order_number = "1-323292" -aside_port_name = "sit-001-200009-CX-TY4-NL-Qinq-STD-10G-PRI-JP-252" -aside_vlan_tag = "3202" -aside_vlan_inner_tag = "3195" -zside_ap_type = "SP" -zside_ap_authentication_key = "" -zside_ap_profile_type = "L2_PROFILE" -zside_location = "SV" -zside_sp_name = "IBM Cloud Direct Link 2" -zside_seller_region = "San Jose 2" -additional_info = [{ key = "ASN", value = "14353" }] - -ibm_cloud_api_key = " - -## Requirements - -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 1.5.4 | -| [equinix](#requirement\_equinix) | >= 1.38.1 | -| [ibm](#requirement\_ibm) | >= 1.12.0 | - -## Providers - -| Name | Version | -|------|---------| -| [ibm](#provider\_ibm) | >= 1.12.0 | -| [time](#provider\_time) | n/a | - -## Modules - -| Name | Source | Version | -|------|--------|---------| -| [create\_port\_2\_ibm2\_connection](#module\_create\_port\_2\_ibm2\_connection) | ../../modules/port-connection | n/a | - -## Resources - -| Name | Type | -|------|------| -| [ibm_dl_gateway_action.test_dl_gateway_action](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/dl_gateway_action) | resource | -| [time_sleep.wait_dl_connection](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | -| [ibm_dl_gateway.test_ibm_dl_gateway](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/dl_gateway) | data source | -| [ibm_resource_group.rg](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/resource_group) | data source | - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [aside\_port\_name](#input\_aside\_port\_name) | Equinix A-Side Port Name | `string` | n/a | yes | -| [aside\_vlan\_tag](#input\_aside\_vlan\_tag) | Vlan Tag information, outer vlanSTag for QINQ connections | `string` | n/a | yes | -| [bandwidth](#input\_bandwidth) | Connection bandwidth in Mbps | `number` | n/a | yes | -| [connection\_name](#input\_connection\_name) | Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores | `string` | n/a | yes | -| [connection\_type](#input\_connection\_type) | Defines the connection type like VG\_VC, EVPL\_VC, EPL\_VC, EC\_VC, IP\_VC, ACCESS\_EPL\_VC | `string` | n/a | yes | -| [equinix\_client\_id](#input\_equinix\_client\_id) | Equinix client ID (consumer key), obtained after registering app in the developer platform | `string` | n/a | yes | -| [equinix\_client\_secret](#input\_equinix\_client\_secret) | Equinix client secret ID (consumer secret), obtained after registering app in the developer platform | `string` | n/a | yes | -| [ibm\_classic\_api\_key](#input\_ibm\_classic\_api\_key) | The IBM Cloud Classic Infrastructure API key | `string` | n/a | yes | -| [ibm\_classic\_username](#input\_ibm\_classic\_username) | The IBM Cloud Classic Infrastructure user name | `string` | n/a | yes | -| [ibm\_cloud\_api\_key](#input\_ibm\_cloud\_api\_key) | The IBM Cloud platform API key | `string` | n/a | yes | -| [ibm\_gateway\_action](#input\_ibm\_gateway\_action) | IBM Approve/reject a pending change request | `string` | n/a | yes | -| [ibm\_resource\_group\_name](#input\_ibm\_resource\_group\_name) | The IBM Resource Group Name | `string` | n/a | yes | -| [notifications\_emails](#input\_notifications\_emails) | Array of contact emails | `list(string)` | n/a | yes | -| [zside\_ap\_authentication\_key](#input\_zside\_ap\_authentication\_key) | Authentication key for provider based connections | `string` | n/a | yes | -| [zside\_ap\_profile\_type](#input\_zside\_ap\_profile\_type) | Service profile type - L2\_PROFILE, L3\_PROFILE, ECIA\_PROFILE, ECMC\_PROFILE | `string` | n/a | yes | -| [zside\_ap\_type](#input\_zside\_ap\_type) | Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW | `string` | n/a | yes | -| [zside\_location](#input\_zside\_location) | Access point metro code | `string` | n/a | yes | -| [zside\_seller\_region](#input\_zside\_seller\_region) | Access point seller region | `string` | n/a | yes | -| [zside\_sp\_name](#input\_zside\_sp\_name) | Equinix Service Profile Name | `string` | n/a | yes | -| [additional\_info](#input\_additional\_info) | Additional info parameters. It's a list of maps containing 'key' and 'value' keys with their corresponding values. | `list(object({ key = string, value = string }))` | `[]` | no | -| [aside\_vlan\_inner\_tag](#input\_aside\_vlan\_inner\_tag) | Vlan Inner Tag information, inner vlanCTag for QINQ connections | `string` | `""` | no | -| [ibm\_gateway\_global](#input\_ibm\_gateway\_global) | Required-Gateway with global routing as true can connect networks outside your associated region | `bool` | `true` | no | -| [ibm\_gateway\_metered](#input\_ibm\_gateway\_metered) | Metered billing option. If set true gateway usage is billed per GB | `bool` | `true` | no | -| [notifications\_type](#input\_notifications\_type) | Notification Type - ALL is the only type currently supported | `string` | `"ALL"` | no | -| [project\_id](#input\_project\_id) | Subscriber-assigned project ID | `string` | `""` | no | -| [purchase\_order\_number](#input\_purchase\_order\_number) | Purchase order number | `string` | `""` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| [IBM\_Gateway\_Action\_Id](#output\_IBM\_Gateway\_Action\_Id) | n/a | -| [ibm2\_connection\_id](#output\_ibm2\_connection\_id) | n/a | - From a884c8d59e5a5d342767e7e16aebb7f005e62d5e Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Tue, 27 Aug 2024 16:44:40 -0700 Subject: [PATCH 13/13] remove unnecessary .tfvars.example file --- .../terraform.tfvars.example | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example diff --git a/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example b/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example deleted file mode 100644 index 1d270d5f..00000000 --- a/tests/examples-without-external-providers/port-2-ibm2-connection/terraform.tfvars.example +++ /dev/null @@ -1,25 +0,0 @@ -equinix_client_id = "MyEquinixClientId" -equinix_client_secret = "MyEquinixClientSecret" - -connection_name = "Port2IBM2" -connection_type = "EVPL_VC" -notifications_type = "ALL" -notifications_emails = ["example@equinix.com"] -bandwidth = 50 -purchase_order_number = "1-323292" -aside_port_name = "sit-001-200009-CX-TY4-NL-Qinq-STD-10G-PRI-JP-252" -aside_vlan_tag = "3202" -aside_vlan_inner_tag = "3195" -zside_ap_type = "SP" -zside_ap_authentication_key = "" -zside_ap_profile_type = "L2_PROFILE" -zside_location = "SV" -zside_sp_name = "IBM Cloud Direct Link 2" -zside_seller_region = "San Jose 2" -additional_info = [{ key = "ASN", value = "14353" }] - -ibm_cloud_api_key = "