-
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.
CXF 88608: UAT Terratest workflow for Cloud Router Connectivity (#44)
* feat: Adding GHA workflow for Terra tests * feat: Adding new terratests for port-2port connection and updating variables * misc: removing cloud router changes from the PR * misc: fixing UAT terra-tests workflow * misc: Adding versions file to uat/tests examples * fix: Updating UAT tests workflow and moving terra tests under one file * fix: Appending Secret values directly to the file in UAT workflow * fix: fixing setup variables files job in UAT workflow * fix: deleting old terra tests files * nit: fixing indentation * misc:Updating workflow file * misc:reverting the latest change in UAT workflow * misc:Updating UAT workflow file and variable files * feat: Adding UAT workflow & terratests for cloud router and routing protocol connectivity * feat: Adding UAT workflow for cloud router and routing protocol * fix: Changing variable name for vlan_tag in FCR 2 Port connectivity * fix: Updating vlan_c_tag logical condition in virtual-device module * fix: fixing additional_info variable name in ibm1 example * fix:updating uat terra tests workflow with env client_id & client_secret * fix:updating terra tests functions with postfix PNFV & PFCR * fix:Updating worklfow name and removing extra files from uat folder
- Loading branch information
1 parent
6c2d64e
commit e4c7777
Showing
25 changed files
with
560 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "module_output" { | ||
output "wan_connection_id" { | ||
value = module.cloud_router_wan_connection.primary_connection_id | ||
} |
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
28 changes: 28 additions & 0 deletions
28
tests/examples-without-external-providers/cloud-router-2-aws-connection/main.tf
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,28 @@ | ||
provider "equinix" { | ||
client_id = var.equinix_client_id | ||
client_secret = var.equinix_client_secret | ||
} | ||
|
||
module "cloud_router_aws_connection" { | ||
source = "equinix/fabric/equinix//modules/cloud-router-connection" | ||
|
||
connection_name = var.connection_name | ||
connection_type = var.connection_type | ||
notifications_type = var.notifications_type | ||
notifications_emails = var.notifications_emails | ||
additional_info = var.additional_info | ||
bandwidth = var.bandwidth | ||
purchase_order_number = var.purchase_order_number | ||
|
||
#Aside | ||
aside_fcr_uuid = var.aside_fcr_uuid | ||
aside_ap_type = var.aside_ap_type | ||
|
||
#Zside | ||
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_fabric_sp_name = var.zside_fabric_sp_name | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/examples-without-external-providers/cloud-router-2-aws-connection/outputs.tf
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,3 @@ | ||
output "aws_connection_id" { | ||
value = module.cloud_router_aws_connection.primary_connection_id | ||
} |
81 changes: 81 additions & 0 deletions
81
tests/examples-without-external-providers/cloud-router-2-aws-connection/variables.tf
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,81 @@ | ||
variable "equinix_client_id" { | ||
description = "Equinix client ID (consumer key), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "equinix_client_secret" { | ||
description = "Equinix client secret ID (consumer secret), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "connection_name" { | ||
description = "Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores" | ||
type = string | ||
} | ||
variable "connection_type" { | ||
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC" | ||
default = "" | ||
type = string | ||
} | ||
variable "notifications_type" { | ||
description = "Notification Type - ALL is the only type currently supported" | ||
type = string | ||
default = "ALL" | ||
} | ||
variable "notifications_emails" { | ||
description = "Array of contact emails" | ||
type = list(string) | ||
} | ||
variable "bandwidth" { | ||
description = "Connection bandwidth in Mbps" | ||
type = number | ||
} | ||
variable "purchase_order_number" { | ||
description = "Purchase order number" | ||
type = string | ||
default = "" | ||
} | ||
variable "aside_ap_type" { | ||
description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" | ||
type = string | ||
} | ||
variable "aside_fcr_uuid" { | ||
description = "Equinix-assigned Fabric Cloud Router identifier" | ||
type = string | ||
} | ||
variable "zside_ap_authentication_key" { | ||
description = "Authentication key for provider based connections" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "zside_ap_type" { | ||
description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" | ||
type = string | ||
default = "SP" | ||
} | ||
variable "zside_ap_profile_type" { | ||
description = "Service profile type - L2_PROFILE, L3_PROFILE, ECIA_PROFILE, ECMC_PROFILE" | ||
type = string | ||
default = "L2_PROFILE" | ||
} | ||
variable "zside_location" { | ||
description = "Access point metro code" | ||
type = string | ||
default = "SP" | ||
} | ||
variable "zside_fabric_sp_name" { | ||
description = "Equinix Service Profile Name" | ||
type = string | ||
default = "" | ||
} | ||
variable "zside_seller_region" { | ||
description = "Access point seller region" | ||
type = string | ||
default = "" | ||
} | ||
variable "additional_info" { | ||
description = "Additional parameters required for some service profiles. It should be a list of maps containing 'key' and 'value e.g. `[{ key='asn' value = '65000'}, { key='ip' value = '192.168.0.1'}]`" | ||
type = list(object({ key = string, value = string })) | ||
default = [] | ||
sensitive = true | ||
} |
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
tests/examples-without-external-providers/cloud-router-2-azure-connection/main.tf
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,27 @@ | ||
provider "equinix" { | ||
client_id = var.equinix_client_id | ||
client_secret = var.equinix_client_secret | ||
} | ||
|
||
module "cloud_router_azure_connection" { | ||
source = "equinix/fabric/equinix//modules/cloud-router-connection" | ||
|
||
connection_name = var.connection_name | ||
connection_type = var.connection_type | ||
notifications_type = var.notifications_type | ||
notifications_emails = var.notifications_emails | ||
bandwidth = var.bandwidth | ||
purchase_order_number = var.purchase_order_number | ||
|
||
#Aside | ||
aside_ap_type = var.aside_ap_type | ||
aside_fcr_uuid = var.aside_fcr_uuid | ||
|
||
#Zside | ||
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_peering_type = var.zside_peering_type | ||
zside_fabric_sp_name = var.zside_fabric_sp_name | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/examples-without-external-providers/cloud-router-2-azure-connection/outputs.tf
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,3 @@ | ||
output "azure_connection_id" { | ||
value = module.cloud_router_azure_connection.primary_connection_id | ||
} |
75 changes: 75 additions & 0 deletions
75
tests/examples-without-external-providers/cloud-router-2-azure-connection/variables.tf
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,75 @@ | ||
variable "equinix_client_id" { | ||
description = "Equinix client ID (consumer key), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "equinix_client_secret" { | ||
description = "Equinix client secret ID (consumer secret), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "connection_name" { | ||
description = "Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores" | ||
type = string | ||
} | ||
variable "connection_type" { | ||
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC" | ||
type = string | ||
default = "" | ||
} | ||
variable "bandwidth" { | ||
description = "Connection bandwidth in Mbps" | ||
type = number | ||
} | ||
variable "notifications_type" { | ||
description = "Notification Type - ALL is the only type currently supported" | ||
type = string | ||
default = "ALL" | ||
} | ||
variable "notifications_emails" { | ||
description = "Array of contact emails" | ||
type = list(string) | ||
} | ||
variable "purchase_order_number" { | ||
description = "Purchase order number" | ||
type = string | ||
default = "" | ||
} | ||
variable "aside_ap_type" { | ||
description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" | ||
type = string | ||
} | ||
variable "aside_fcr_uuid" { | ||
description = "Equinix-assigned Fabric Cloud Router identifier" | ||
type = string | ||
} | ||
variable "zside_ap_type" { | ||
description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" | ||
type = string | ||
default = "SP" | ||
} | ||
variable "zside_ap_profile_type" { | ||
description = "Service profile type - L2_PROFILE, L3_PROFILE, ECIA_PROFILE, ECMC_PROFILE" | ||
type = string | ||
default = "L2_PROFILE" | ||
} | ||
variable "zside_location" { | ||
description = "Access point metro code" | ||
type = string | ||
default = "SP" | ||
} | ||
variable "zside_peering_type" { | ||
description = "Access point peering type - PRIVATE, MICROSOFT, PUBLIC, MANUAL" | ||
default = "PRIVATE" | ||
} | ||
|
||
variable "zside_fabric_sp_name" { | ||
description = "Equinix Service Profile Name" | ||
type = string | ||
default = "" | ||
} | ||
variable "zside_ap_authentication_key" { | ||
description = "Authentication key for provider based connections" | ||
type = string | ||
sensitive = true | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/examples-without-external-providers/cloud-router-2-azure-connection/versions.tf
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,9 @@ | ||
terraform { | ||
required_version = ">= 1.5.4" | ||
required_providers { | ||
equinix = { | ||
source = "equinix/equinix" | ||
version = ">= 1.25.1" | ||
} | ||
} | ||
} |
Oops, something went wrong.