-
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.
* Initial Testing update for UAT Sanity tests * update ibm uat test and add testing report code to github workflow * Add 3rd job to uat suite to handle test report generation and attachment to output * Update dependency management for each job * Remove incorrect reference to mod path in test report creation job * Remove redundant dependency install and upload html file without compression for faster viewing * Add testing reporting capability to all workflows * Move IBM2 UAT user data to example without provider * revert back to single file for UAT sanity suite * Tidy Go module * Point UAT IBM2 test to example without external providers * remove unnecessary file * remove unnecessary .tfvars.example file
- Loading branch information
Showing
13 changed files
with
310 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
57 changes: 57 additions & 0 deletions
57
tests/examples-without-external-providers/port-2-ibm2-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,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 | ||
} |
Oops, something went wrong.