Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test cases #222

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions acc-dev-testcases/data-sources/load_balancer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
acc:
- config: |
name = "tf_lb_DND"
name = "tf_lb_DO_NOT_DELETE"
validations:
json.loadBalancer.id: 26
json.loadBalancer.id: 19
4 changes: 2 additions & 2 deletions acc-dev-testcases/data-sources/load_balancer_monitor.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
acc:
- config: |
name = "default-http-lb-monitor"
lb_id = 26
lb_id = 19
validations:
json.loadBalancerMonitor.id: 156
json.loadBalancerMonitor.id: 152
6 changes: 3 additions & 3 deletions acc-dev-testcases/data-sources/load_balancer_pool.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
acc:
- config: |
name = "PCE-testLB-Pool"
lb_id = 26
name = "tf_pool_DO_NOT_DELETE"
lb_id = 19
validations:
json.loadBalancerPool.id: 86
json.loadBalancerPool.id: 108
16 changes: 8 additions & 8 deletions acc-dev-testcases/data-sources/load_balancer_profile.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
acc:
- config: |
name = "default-http-lb-app-profile"
lb_id = 26
lb_id = 19
validations:
json.loadBalancerProfile.id: 379
json.loadBalancerProfile.id: 504
- config: |
name = "default-cookie-lb-persistence-profile"
lb_id = 26
lb_id = 19
validations:
json.loadBalancerProfile.id: 385
json.loadBalancerProfile.id: 527
- config: |
name = "default-balanced-server-ssl-profile"
lb_id = 26
lb_id = 19
validations:
json.loadBalancerProfile.id: 398
json.loadBalancerProfile.id: 571
- config: |
name = "default-balanced-client-ssl-profile"
lb_id = 26
lb_id = 19
validations:
json.loadBalancerProfile.id: 393
json.loadBalancerProfile.id: 552
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
acc:
- config: |
name = "test-cert"
name = "Test SSL Cert"
validations:
json.certificates.id: 9
json.certificates.id: 8
5 changes: 2 additions & 3 deletions acc-dev-testcases/resources/instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ acc:
plan_id = 216
instance_type_code = "vmware"
network {
id = 84
id = 137
}
volume {
name = "root_vol"
Expand All @@ -19,8 +19,7 @@ acc:
}
config {
resource_pool_id = 5
no_agent = true
template_id = 752
template_id = 1044
folder_code = "group-v1042"
}
scale = 1
Expand Down
4 changes: 2 additions & 2 deletions acc-dev-testcases/resources/instance_clone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ vars:
instance_name: tf_acc_clone_%rand_int
acc:
- config: |
source_instance_id = 2
source_instance_id = 11
name = "$(instance_name)"
network {
id = 84
id = 137
}
14 changes: 7 additions & 7 deletions acc-dev-testcases/resources/load_balancer_monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ vars:
udp_name: tf_UDP-MONITOR_%rand_int
acc:
- config: |
lb_id = 26
lb_id = 19
name = "$(http_name)"
description = "HTTP_MONITOR creating using tf"
type = "LBHttpMonitorProfile"
Expand All @@ -27,7 +27,7 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBHttpMonitorProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(https_name)"
description = "HTTPS_MONITOR creating using tf"
type = "LBHttpsMonitorProfile"
Expand All @@ -47,22 +47,22 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBHttpsMonitorProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(icmp_name)"
description = "ICMP_MONITOR update using tf"
type = "LBIcmpMonitorProfile"
icmp_monitor {
fall_count = 30
interval = 50
monitor_port = 8
monitor_port = 80
rise_count = 3
timeout = 15
data_length = 32
}
validations:
json.loadBalancerMonitor.monitorType: "LBIcmpMonitorProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(passive_name)"
description = "PASSIVE_MONITOR create using tf"
type = "LBPassiveMonitorProfile"
Expand All @@ -73,7 +73,7 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBPassiveMonitorProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(tcp_name)"
description = "TCP_MONITOR create using tf"
type = "LBTcpMonitorProfile"
Expand All @@ -89,7 +89,7 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBTcpMonitorProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(udp_name)"
description = "UDP_MONITOR create using tf"
type = "LBUdpMonitorProfile"
Expand Down
2 changes: 1 addition & 1 deletion acc-dev-testcases/resources/load_balancer_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vars:
pool_name: tf_POOL_%rand_int
acc:
- config: |
lb_id = 26
lb_id = 19
name = "$(pool_name)"
description = "POOL creating using tf"
min_active_members = 1
Expand Down
16 changes: 8 additions & 8 deletions acc-dev-testcases/resources/load_balancer_profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vars:
server_name: tf_SERVER-PROFILE_%rand_int
acc:
- config: |
lb_id = 26
lb_id = 19
name = "$(http_name)"
description = "HTTP_PROFILE creating using tf"
profile_type = "application-profile"
Expand All @@ -33,7 +33,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBHttpProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(tcp_name)"
description = "TCP_PROFILE creating using tf"
profile_type = "application-profile"
Expand All @@ -52,7 +52,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBFastTcpProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(udp_name)"
description = "UDP_PROFILE creating using tf"
profile_type = "application-profile"
Expand All @@ -70,7 +70,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBFastUdpProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(cookie_name)"
description = "COOKIE_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -94,7 +94,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBCookiePersistenceProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(generic_name)"
description = "GENERIC_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -113,7 +113,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBGenericPersistenceProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(source_name)"
description = "SOURCE_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -133,7 +133,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBSourceIpPersistenceProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(client_name)"
description = "CLIENT_PROFILE creating using tf"
profile_type = "ssl-profile"
Expand All @@ -153,7 +153,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBClientSslProfile"
- config: |
lb_id = 26
lb_id = 19
name = "$(server_name)"
description = "SERVER_PROFILE creating using tf"
profile_type = "ssl-profile"
Expand Down
14 changes: 7 additions & 7 deletions acc-dev-testcases/resources/load_balancer_virtual_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vars:
vs_name: tf_VS_%rand_int
acc:
- config: |
lb_id = 26
lb_id = 19
name = "$(vs_name)"
description = "tf_virtual-server created by tf"
vip_address = "11.10.52.14"
Expand All @@ -11,22 +11,22 @@ acc:

type = "http"
http_application_profile {
application_profile = 379
application_profile = 504
}

persistence = "COOKIE"
cookie_persistence_profile {
persistence_profile = 385
persistence_profile = 527
}

ssl_server_cert = 9
ssl_server_cert = 8
ssl_server_config {
ssl_server_profile = 398
ssl_server_profile = 571
}

ssl_client_cert = 9
ssl_client_cert = 8
ssl_client_config {
ssl_client_profile = 393
ssl_client_profile = 552
}
validations:
json.loadBalancerInstance.vipProtocol: "http"
Expand Down
4 changes: 2 additions & 2 deletions acc-dev-testcases/resources/router_bgp_neighbor.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
acc:
- config: |
router_id = 3
ip_address = "10.201.227.84"
ip_address = "10.201.227.87"
remote_as = 65000
keepalive = 60
holddown = 180
Expand All @@ -13,5 +13,5 @@ acc:
hop_limit = 1
restart_mode = "HELPER_ONLY"
validations:
json.networkRouterBgpNeighbor.ipAddress="10.201.227.84"
json.networkRouterBgpNeighbor.ipAddress="10.201.227.87"
json.networkRouterBgpNeighbor.remoteAs=65000
4 changes: 2 additions & 2 deletions acc-dev-testcases/resources/router_nat_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vars:
nat_name: tf_router_nat_%rand_int
acc:
- config: |
router_id = 4
router_id = 3
name = "$(nat_name)"
enabled = true
description = "NAT rule created via terraform"
Expand All @@ -19,7 +19,7 @@ acc:
validations:
json.networkRouterNAT.sourceNetwork : "1.1.3.0/24"
- config: |
router_id = 4
router_id = 3
name = "$(nat_name)"
enabled = true
description = "NAT rule created via terraform"
Expand Down
2 changes: 1 addition & 1 deletion acc-dev-testcases/resources/router_route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vars:
acc:
- config: |
name = "$(route_name)"
router_id = 4
router_id = 3
description = "router route created using terraform"
enabled = true
default_route = false
Expand Down
1 change: 0 additions & 1 deletion acc-testcases/resources/instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ acc:
}
config {
resource_pool_id = 4
no_agent = true
template_id = 1696
folder_code = "group-v1036"
}
Expand Down
Loading