-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
806facb
commit e463160
Showing
45 changed files
with
786 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
acc: | ||
- config: | | ||
name = "External-Cloud" | ||
validations: | ||
json.zone.id: 2 | ||
tf.id: 2 |
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,6 @@ | ||
acc: | ||
- config: | | ||
name = "ExternalVMFolder" | ||
cloud_id = 2 | ||
validations: | ||
json.folder.id: 11 |
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,4 @@ | ||
acc: | ||
- config: | | ||
name = "glcicd-G2i-1-Bs-1" | ||
cloud_id = 2 |
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 @@ | ||
acc: | ||
- config: | | ||
name = "edge_cluster" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "dev" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "External-group2" |
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,4 @@ | ||
acc: | ||
- config: | | ||
name = "Vmware VM" | ||
instance_type_code = "vmware" |
5 changes: 5 additions & 0 deletions
5
acc-external-testcases/data-sources/lb_pool_member_group.yaml
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,5 @@ | ||
acc: | ||
- config: | | ||
name = "Application-Group" | ||
validations: | ||
json.groups.externalId: "/infra/domains/default/groups/Application-Group" |
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,5 @@ | ||
acc: | ||
- config: | | ||
name = "tf_lb_DO_NOT_DELETE" | ||
validations: | ||
json.loadBalancer.id: 19 |
6 changes: 6 additions & 0 deletions
6
acc-external-testcases/data-sources/load_balancer_monitor.yaml
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,6 @@ | ||
acc: | ||
- config: | | ||
name = "default-http-lb-monitor" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerMonitor.id: 152 |
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,6 @@ | ||
acc: | ||
- config: | | ||
name = "tf_pool_DO_NOT_DELETE" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerPool.id: 108 |
21 changes: 21 additions & 0 deletions
21
acc-external-testcases/data-sources/load_balancer_profile.yaml
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,21 @@ | ||
acc: | ||
- config: | | ||
name = "default-http-lb-app-profile" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerProfile.id: 504 | ||
- config: | | ||
name = "default-cookie-lb-persistence-profile" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerProfile.id: 527 | ||
- config: | | ||
name = "default-balanced-server-ssl-profile" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerProfile.id: 571 | ||
- config: | | ||
name = "default-balanced-client-ssl-profile" | ||
lb_id = 19 | ||
validations: | ||
json.loadBalancerProfile.id: 552 |
5 changes: 5 additions & 0 deletions
5
acc-external-testcases/data-sources/load_balancer_ssl_ca_certs.yaml
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,5 @@ | ||
acc: | ||
- config: | | ||
name = "Test SSL Cert" | ||
validations: | ||
json.certificates.id: 8 |
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 @@ | ||
acc: | ||
- config: | | ||
name = "Dhcp-net1" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "localdomain" |
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,6 @@ | ||
acc: | ||
- config: | | ||
name = "VMXNET 3" | ||
cloud_id = 2 | ||
validations: | ||
tf.id: 10 |
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 @@ | ||
acc: | ||
- config: | | ||
name = "Post-pool" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "test-proxy" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "NSX Segment" |
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,5 @@ | ||
acc: | ||
- config: | | ||
name = "tf-dont-delete" | ||
validations: | ||
json.networkRouter.providerId: "/infra/tier-1s/9c995f68-f873-42f0-bb1b-8c5021c8f64a" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "G2i-small" |
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 @@ | ||
acc: | ||
- config: | | ||
name = "power-schedule" |
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,4 @@ | ||
acc: | ||
- config: | | ||
name = "ExternalResourcePool" | ||
cloud_id = 2 |
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 @@ | ||
acc: | ||
- config: | | ||
name = "External-Centos" |
28 changes: 28 additions & 0 deletions
28
acc-external-testcases/resources/instance-template_err.yaml
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 @@ | ||
vars: | ||
rand_name_1: tf_acc_%rand_int | ||
rand_storage_1: "%rand_int{5,8}" | ||
acc: | ||
- config: | | ||
name = "$(rand_name_1)" | ||
cloud_id = 1 | ||
group_id = 2 | ||
layout_id = 113 | ||
plan_id = 407 | ||
instance_type_code = "vmware" | ||
network { | ||
id = 3 | ||
} | ||
volume { | ||
name = "root_vol" | ||
datastore_id = "auto" | ||
size = $(rand_storage_1) | ||
} | ||
config { | ||
resource_pool_id = 2 | ||
no_agent = true | ||
folder_code = "group-v284" | ||
} | ||
scale = 1 | ||
validations: | ||
tf.status: "running" | ||
expect_error: ".*template.*" |
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 @@ | ||
vars: | ||
instance_name: tf_external_acc_%rand_int | ||
rand_storage_1: "%rand_int{5,8}" | ||
acc: | ||
- config: | | ||
name = "$(instance_name)" | ||
cloud_id = 2 | ||
group_id = 29 | ||
layout_id = 415 | ||
plan_id = 877 | ||
instance_type_code = "vmware" | ||
network { | ||
id = 119 | ||
} | ||
volume { | ||
name = "root_vol" | ||
datastore_id = "auto" | ||
size = $(rand_storage_1) | ||
} | ||
config { | ||
resource_pool_id = 14 | ||
template_id = 5069 | ||
folder_code = "group-v7199" | ||
} | ||
scale = 1 | ||
validations: | ||
tf.status: "running" |
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 @@ | ||
vars: | ||
instance_name: tf_external_acc_clone_%rand_int | ||
acc: | ||
- config: | | ||
source_instance_id = 476 | ||
name = "$(instance_name)" | ||
network { | ||
id = 119 | ||
} |
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,18 @@ | ||
vars: | ||
name: "tf_loadbalancer_%rand_int" | ||
acc: | ||
- config: | | ||
name = "$(name)" | ||
description = "Loadbalancer created using tf" | ||
enabled = true | ||
group_access { | ||
all = true | ||
} | ||
config { | ||
admin_state = true | ||
size = "SMALL" | ||
log_level = "INFO" | ||
tier1_gateways = "/infra/tier-1s/b918abfd-d84b-46be-a0ac-4a64c04a5703" | ||
} | ||
validations: | ||
json.loadBalancer.config.tier1: "/infra/tier-1s/b918abfd-d84b-46be-a0ac-4a64c04a5703" |
24 changes: 24 additions & 0 deletions
24
acc-external-testcases/resources/load_balancer_monitor-monitor_err.yaml
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,24 @@ | ||
vars: | ||
http_name: tf_HTTP_MONITOR_%rand_int | ||
acc: | ||
- config: | | ||
lb_id = 26 | ||
name = "$(http_name)" | ||
description = "HTTP_MONITOR creating using tf" | ||
type = "LBIcmpMonitorProfile" | ||
http_monitor { | ||
fall_count = 8 | ||
interval = 10 | ||
monitor_port = 50 | ||
rise_count = 5 | ||
timeout = 30 | ||
request_body = "request input body data" | ||
request_method = "GET" | ||
request_url = "https://request.com" | ||
request_version = "HTTP_VERSION_1_0" | ||
response_data = "Failed" | ||
response_status_codes = "500" | ||
} | ||
validations: | ||
json.loadBalancerMonitor.monitorType: "LBHttpMonitorProfile" | ||
expect_error: ".*monitor.*" |
Oops, something went wrong.