Skip to content

Commit

Permalink
Merge pull request #173 from HewlettPackard/DE14339
Browse files Browse the repository at this point in the history
DE14339 : Fixed the acceptance test for LB and its configuration
  • Loading branch information
manjunath-batakurki authored Sep 28, 2022
2 parents ce9028c + c091740 commit e148d4b
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions acc-testcases/data-sources/load_balancer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
acc:
- config: |
name = "tf_loadbalancer"
name = "tf_loadbalancer_DO_NOT_DELETE"
validations:
json.loadBalancer.id: 262
json.loadBalancer.id: 306
6 changes: 3 additions & 3 deletions acc-testcases/data-sources/load_balancer_monitor.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
acc:
- config: |
name = "tf_lb_monitor"
lb_id = 262
name = "tf_lb_monitor_DO_NOT_DELETE"
lb_id = 306
validations:
json.loadBalancerMonitor.id: 6668
json.loadBalancerMonitor.id: 6959
6 changes: 3 additions & 3 deletions acc-testcases/data-sources/load_balancer_pool.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
acc:
- config: |
name = "tf_POOL"
lb_id = 262
name = "tf_POOL_DO_NOT_DELETE"
lb_id = 306
validations:
json.loadBalancerPool.id: 849
json.loadBalancerPool.id: 994
18 changes: 9 additions & 9 deletions acc-testcases/data-sources/load_balancer_profile.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
acc:
- config: |
name = "app-http"
lb_id = 262
name = "Application_Profile"
lb_id = 306
validations:
json.loadBalancerProfile.id: 9927
json.loadBalancerProfile.id: 10493
- config: |
name = "default-cookie-lb-persistence-profile"
lb_id = 262
lb_id = 306
validations:
json.loadBalancerProfile.id: 9979
json.loadBalancerProfile.id: 10499
- config: |
name = "default-balanced-server-ssl-profile"
lb_id = 262
lb_id = 306
validations:
json.loadBalancerProfile.id: 10001
json.loadBalancerProfile.id: 10507
- config: |
name = "default-balanced-client-ssl-profile"
lb_id = 262
lb_id = 306
validations:
json.loadBalancerProfile.id: 9994
json.loadBalancerProfile.id: 10503
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vars:
http_name: tf_HTTP_MONITOR_%rand_int
acc:
- config: |
lb_id = 262
lb_id = 306
name = "$(http_name)"
description = "HTTP_MONITOR creating using tf"
type = "LBIcmpMonitorProfile"
Expand Down
12 changes: 6 additions & 6 deletions acc-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 = 262
lb_id = 306
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 = 262
lb_id = 306
name = "$(https_name)"
description = "HTTPS_MONITOR creating using tf"
type = "LBHttpsMonitorProfile"
Expand All @@ -47,7 +47,7 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBHttpsMonitorProfile"
- config: |
lb_id = 262
lb_id = 306
name = "$(icmp_name)"
description = "ICMP_MONITOR update using tf"
type = "LBIcmpMonitorProfile"
Expand All @@ -62,7 +62,7 @@ acc:
validations:
json.loadBalancerMonitor.monitorType: "LBIcmpMonitorProfile"
- config: |
lb_id = 262
lb_id = 306
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 = 262
lb_id = 306
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 = 262
lb_id = 306
name = "$(udp_name)"
description = "UDP_MONITOR create using tf"
type = "LBUdpMonitorProfile"
Expand Down
6 changes: 3 additions & 3 deletions acc-testcases/resources/load_balancer_pool-pool_err.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ vars:
pool_name: tf_POOL_%rand_int
acc:
- config: |
lb_id = 262
lb_id = 306
name = "$(pool_name)"
description = "POOL creating using tf"
min_active_members = 1
algorithm = "WEIGHTED_ROUND_ROBIN"
config {
snat_translation_type = "LBSnatAutoMap"
active_monitor_paths = 6664
passive_monitor_path = 6662
active_monitor_paths = 6954
passive_monitor_path = 6957
tcp_multiplexing = false
tcp_multiplexing_number = 6
member_group {
Expand Down
6 changes: 3 additions & 3 deletions acc-testcases/resources/load_balancer_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ vars:
pool_name: tf_POOL_%rand_int
acc:
- config: |
lb_id = 262
lb_id = 306
name = "$(pool_name)"
description = "POOL creating using tf"
min_active_members = 1
algorithm = "WEIGHTED_ROUND_ROBIN"
config {
snat_translation_type = "LBSnatAutoMap"
active_monitor_paths = 6664
passive_monitor_path = 6662
active_monitor_paths = 6954
passive_monitor_path = 6957
tcp_multiplexing = false
tcp_multiplexing_number = 6
member_group {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vars:
http_name: tf_HTTP_PROFILE_%rand_int
acc:
- config: |
lb_id = 262
lb_id = 306
name = "$(http_name)"
description = "HTTP_PROFILE creating using tf"
profile_type = "application-profile"
Expand Down
16 changes: 8 additions & 8 deletions acc-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 = 262
lb_id = 306
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 = 262
lb_id = 306
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 = 262
lb_id = 306
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 = 262
lb_id = 306
name = "$(cookie_name)"
description = "COOKIE_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -95,7 +95,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBCookiePersistenceProfile"
- config: |
lb_id = 262
lb_id = 306
name = "$(generic_name)"
description = "GENERIC_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -114,7 +114,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBGenericPersistenceProfile"
- config: |
lb_id = 262
lb_id = 306
name = "$(source_name)"
description = "SOURCE_PROFILE creating using tf"
profile_type = "persistence-profile"
Expand All @@ -134,7 +134,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBSourceIpPersistenceProfile"
- config: |
lb_id = 262
lb_id = 306
name = "$(client_name)"
description = "CLIENT_PROFILE creating using tf"
profile_type = "ssl-profile"
Expand All @@ -154,7 +154,7 @@ acc:
validations:
json.loadBalancerProfile.serviceType: "LBClientSslProfile"
- config: |
lb_id = 262
lb_id = 306
name = "$(server_name)"
description = "SERVER_PROFILE creating using tf"
profile_type = "ssl-profile"
Expand Down
12 changes: 6 additions & 6 deletions acc-testcases/resources/load_balancer_virtual_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ vars:
vs_name: tf_VS_%rand_int
acc:
- config: |
lb_id = 262
lb_id = 306
name = "$(vs_name)"
description = "tf_virtual-server created by tf"
vip_address = "10.11.12.13"
vip_port = "8080"
vip_host_name = "host VS"
pool = 849
pool = 994
type = "http"
http_application_profile {
application_profile = 9927
application_profile = 10493
}
persistence = "COOKIE"
cookie_persistence_profile {
persistence_profile = 9979
persistence_profile = 10499
}
ssl_server_cert = 22
ssl_server_config {
ssl_server_profile = 10001
ssl_server_profile = 10507
}
ssl_client_cert = 22
ssl_client_config {
ssl_client_profile = 9994
ssl_client_profile = 10503
}
validations:
json.loadBalancerInstance.vipProtocol: "http"
Expand Down

0 comments on commit e148d4b

Please sign in to comment.