From c09174054bd44c4456debedf61d4fcad0a526798 Mon Sep 17 00:00:00 2001 From: Pushpalatha555 Date: Thu, 22 Sep 2022 19:30:33 +0530 Subject: [PATCH] fixed the acceptance test for LB and its configuration --- acc-testcases/data-sources/load_balancer.yaml | 4 ++-- .../data-sources/load_balancer_monitor.yaml | 6 +++--- .../data-sources/load_balancer_pool.yaml | 6 +++--- .../data-sources/load_balancer_profile.yaml | 18 +++++++++--------- .../load_balancer_monitor-monitor_err.yaml | 2 +- .../resources/load_balancer_monitor.yaml | 12 ++++++------ .../resources/load_balancer_pool-pool_err.yaml | 6 +++--- .../resources/load_balancer_pool.yaml | 6 +++--- .../load_balancer_profile-profile_err.yaml | 2 +- .../resources/load_balancer_profile.yaml | 16 ++++++++-------- .../load_balancer_virtual_server.yaml | 12 ++++++------ 11 files changed, 45 insertions(+), 45 deletions(-) diff --git a/acc-testcases/data-sources/load_balancer.yaml b/acc-testcases/data-sources/load_balancer.yaml index 2e84e7d9..72a977cb 100644 --- a/acc-testcases/data-sources/load_balancer.yaml +++ b/acc-testcases/data-sources/load_balancer.yaml @@ -1,5 +1,5 @@ acc: - config: | - name = "tf_loadbalancer" + name = "tf_loadbalancer_DO_NOT_DELETE" validations: - json.loadBalancer.id: 262 \ No newline at end of file + json.loadBalancer.id: 306 \ No newline at end of file diff --git a/acc-testcases/data-sources/load_balancer_monitor.yaml b/acc-testcases/data-sources/load_balancer_monitor.yaml index f2ed2040..5dd72176 100644 --- a/acc-testcases/data-sources/load_balancer_monitor.yaml +++ b/acc-testcases/data-sources/load_balancer_monitor.yaml @@ -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 \ No newline at end of file + json.loadBalancerMonitor.id: 6959 \ No newline at end of file diff --git a/acc-testcases/data-sources/load_balancer_pool.yaml b/acc-testcases/data-sources/load_balancer_pool.yaml index 8507b2bf..df961c94 100644 --- a/acc-testcases/data-sources/load_balancer_pool.yaml +++ b/acc-testcases/data-sources/load_balancer_pool.yaml @@ -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 diff --git a/acc-testcases/data-sources/load_balancer_profile.yaml b/acc-testcases/data-sources/load_balancer_profile.yaml index d1115bf3..9eced791 100644 --- a/acc-testcases/data-sources/load_balancer_profile.yaml +++ b/acc-testcases/data-sources/load_balancer_profile.yaml @@ -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 diff --git a/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml b/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml index 9b6a0e7e..919ff1c5 100644 --- a/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml +++ b/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml @@ -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" diff --git a/acc-testcases/resources/load_balancer_monitor.yaml b/acc-testcases/resources/load_balancer_monitor.yaml index 2af4944f..30deb038 100644 --- a/acc-testcases/resources/load_balancer_monitor.yaml +++ b/acc-testcases/resources/load_balancer_monitor.yaml @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" diff --git a/acc-testcases/resources/load_balancer_pool-pool_err.yaml b/acc-testcases/resources/load_balancer_pool-pool_err.yaml index 42a88723..bfbc165c 100644 --- a/acc-testcases/resources/load_balancer_pool-pool_err.yaml +++ b/acc-testcases/resources/load_balancer_pool-pool_err.yaml @@ -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 { diff --git a/acc-testcases/resources/load_balancer_pool.yaml b/acc-testcases/resources/load_balancer_pool.yaml index 46265425..76e257cb 100644 --- a/acc-testcases/resources/load_balancer_pool.yaml +++ b/acc-testcases/resources/load_balancer_pool.yaml @@ -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 { diff --git a/acc-testcases/resources/load_balancer_profile-profile_err.yaml b/acc-testcases/resources/load_balancer_profile-profile_err.yaml index 8107d674..cfe17fe9 100644 --- a/acc-testcases/resources/load_balancer_profile-profile_err.yaml +++ b/acc-testcases/resources/load_balancer_profile-profile_err.yaml @@ -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" diff --git a/acc-testcases/resources/load_balancer_profile.yaml b/acc-testcases/resources/load_balancer_profile.yaml index 8836ff58..ac934963 100644 --- a/acc-testcases/resources/load_balancer_profile.yaml +++ b/acc-testcases/resources/load_balancer_profile.yaml @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" diff --git a/acc-testcases/resources/load_balancer_virtual_server.yaml b/acc-testcases/resources/load_balancer_virtual_server.yaml index a0209a02..7b0a0387 100644 --- a/acc-testcases/resources/load_balancer_virtual_server.yaml +++ b/acc-testcases/resources/load_balancer_virtual_server.yaml @@ -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"