From ab1ae5a0f5b4bdf521405aad93c7a618f69cb929 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Wed, 22 Nov 2023 22:53:33 +0530 Subject: [PATCH 1/9] initial commit --- Makefile | 2 +- acc-dev-testcases/README.md | 178 +++++++++ acc-dev-testcases/data-sources/cloud.yaml | 6 + .../data-sources/cloud_folder.yaml | 6 + acc-dev-testcases/data-sources/datastore.yaml | 4 + .../data-sources/edge_cluster.yaml | 3 + .../data-sources/environment.yaml | 3 + acc-dev-testcases/data-sources/group.yaml | 3 + acc-dev-testcases/data-sources/layout.yaml | 4 + .../data-sources/lb_pool_member_group.yaml | 0 .../data-sources/load_balancer.yaml | 5 + .../data-sources/load_balancer_monitor.yaml | 6 + .../data-sources/load_balancer_pool.yaml | 6 + .../data-sources/load_balancer_profile.yaml | 18 +- .../load_balancer_ssl_ca_certs.yaml | 5 + acc-dev-testcases/data-sources/network.yaml | 3 + .../data-sources/network_domain.yaml | 3 + .../data-sources/network_interface.yaml | 6 + .../data-sources/network_pool.yaml | 3 + .../data-sources/network_proxy.yaml | 3 + .../data-sources/network_type.yaml | 3 + acc-dev-testcases/data-sources/nsx-tier1.yaml | 5 + acc-dev-testcases/data-sources/plan.yaml | 3 + .../data-sources/power_schedule.yaml | 3 + .../data-sources/resource_pool.yaml | 4 + acc-dev-testcases/data-sources/template.yaml | 3 + .../resources/instance-template_err.yaml | 28 ++ acc-dev-testcases/resources/instance.yaml | 28 ++ .../resources/instance_clone.yaml | 9 + .../resources/load_balancer.yaml | 4 +- .../load_balancer_monitor-monitor_err.yaml | 2 +- .../resources/load_balancer_monitor.yaml | 12 +- .../load_balancer_pool-pool_err.yaml | 2 +- .../resources/load_balancer_pool.yaml | 2 +- .../load_balancer_profile-profile_err.yaml | 2 +- .../resources/load_balancer_profile.yaml | 17 +- .../load_balancer_virtual_server.yaml | 16 +- acc-dev-testcases/resources/network.yaml | 22 ++ .../resources/router-tier0.yaml | 2 +- .../resources/router-tier1.yaml | 2 +- .../resources/router_bgp_neighbor.yaml | 2 +- .../resources/router_nat_rule.yaml | 4 +- .../resources/router_route.yaml | 2 +- .../data-sources/cloud_folder.yaml | 6 +- .../data-sources/datastore.yaml | 4 +- .../data-sources/edge_cluster.yaml | 2 +- acc-prod_testcases/data-sources/network.yaml | 2 +- .../data-sources/network_domain.yaml | 2 +- .../data-sources/network_interface.yaml | 2 +- .../data-sources/network_pool.yaml | 2 +- .../data-sources/network_proxy.yaml | 2 +- acc-prod_testcases/data-sources/plan.yaml | 2 +- .../data-sources/power_schedule.yaml | 2 +- .../data-sources/resource_pool.yaml | 2 +- acc-prod_testcases/resources/instance.yaml | 22 +- .../resources/instance_clone.yaml | 6 +- acc-testcases/data-sources/cloud.yaml | 3 - acc-testcases/data-sources/cloud_folder.yaml | 3 +- acc-testcases/data-sources/datastore.yaml | 2 +- acc-testcases/data-sources/edge_cluster.yaml | 2 +- acc-testcases/data-sources/group.yaml | 2 +- acc-testcases/data-sources/load_balancer.yaml | 5 - .../data-sources/load_balancer_monitor.yaml | 6 - .../data-sources/load_balancer_pool.yaml | 6 - .../load_balancer_ssl_ca_certs.yaml | 5 - acc-testcases/data-sources/network.yaml | 2 +- .../data-sources/network_domain.yaml | 2 +- .../data-sources/network_interface.yaml | 2 - acc-testcases/data-sources/network_pool.yaml | 2 +- acc-testcases/data-sources/network_proxy.yaml | 2 +- acc-testcases/data-sources/nsx-tier1.yaml | 4 +- acc-testcases/data-sources/plan.yaml | 2 +- .../data-sources/power_schedule.yaml | 2 +- acc-testcases/data-sources/resource_pool.yaml | 2 +- acc-testcases/data-sources/template.yaml | 2 +- .../resources/instance-template_err.yaml | 25 +- acc-testcases/resources/instance.yaml | 22 +- acc-testcases/resources/instance_clone.yaml | 9 +- acc-testcases/resources/network.yaml | 14 +- .../data_source_edge_cluster_test.go | 2 +- internal/cmp/constants.go | 8 +- tf_log.txt | 351 ++++++++++++++++++ tf_log2.txt | 321 ++++++++++++++++ 83 files changed, 1155 insertions(+), 153 deletions(-) create mode 100644 acc-dev-testcases/README.md create mode 100644 acc-dev-testcases/data-sources/cloud.yaml create mode 100644 acc-dev-testcases/data-sources/cloud_folder.yaml create mode 100644 acc-dev-testcases/data-sources/datastore.yaml create mode 100644 acc-dev-testcases/data-sources/edge_cluster.yaml create mode 100644 acc-dev-testcases/data-sources/environment.yaml create mode 100644 acc-dev-testcases/data-sources/group.yaml create mode 100644 acc-dev-testcases/data-sources/layout.yaml rename {acc-testcases => acc-dev-testcases}/data-sources/lb_pool_member_group.yaml (100%) create mode 100644 acc-dev-testcases/data-sources/load_balancer.yaml create mode 100644 acc-dev-testcases/data-sources/load_balancer_monitor.yaml create mode 100644 acc-dev-testcases/data-sources/load_balancer_pool.yaml rename {acc-testcases => acc-dev-testcases}/data-sources/load_balancer_profile.yaml (50%) create mode 100644 acc-dev-testcases/data-sources/load_balancer_ssl_ca_certs.yaml create mode 100644 acc-dev-testcases/data-sources/network.yaml create mode 100644 acc-dev-testcases/data-sources/network_domain.yaml create mode 100644 acc-dev-testcases/data-sources/network_interface.yaml create mode 100644 acc-dev-testcases/data-sources/network_pool.yaml create mode 100644 acc-dev-testcases/data-sources/network_proxy.yaml create mode 100644 acc-dev-testcases/data-sources/network_type.yaml create mode 100644 acc-dev-testcases/data-sources/nsx-tier1.yaml create mode 100644 acc-dev-testcases/data-sources/plan.yaml create mode 100644 acc-dev-testcases/data-sources/power_schedule.yaml create mode 100644 acc-dev-testcases/data-sources/resource_pool.yaml create mode 100644 acc-dev-testcases/data-sources/template.yaml create mode 100644 acc-dev-testcases/resources/instance-template_err.yaml create mode 100644 acc-dev-testcases/resources/instance.yaml create mode 100644 acc-dev-testcases/resources/instance_clone.yaml rename {acc-testcases => acc-dev-testcases}/resources/load_balancer.yaml (64%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_monitor-monitor_err.yaml (97%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_monitor.yaml (96%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_pool-pool_err.yaml (98%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_pool.yaml (97%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_profile-profile_err.yaml (97%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_profile.yaml (96%) rename {acc-testcases => acc-dev-testcases}/resources/load_balancer_virtual_server.yaml (67%) create mode 100644 acc-dev-testcases/resources/network.yaml rename {acc-testcases => acc-dev-testcases}/resources/router-tier0.yaml (94%) rename {acc-testcases => acc-dev-testcases}/resources/router-tier1.yaml (88%) rename {acc-testcases => acc-dev-testcases}/resources/router_bgp_neighbor.yaml (95%) rename {acc-testcases => acc-dev-testcases}/resources/router_nat_rule.yaml (95%) rename {acc-testcases => acc-dev-testcases}/resources/router_route.yaml (93%) delete mode 100644 acc-testcases/data-sources/load_balancer.yaml delete mode 100644 acc-testcases/data-sources/load_balancer_monitor.yaml delete mode 100644 acc-testcases/data-sources/load_balancer_pool.yaml delete mode 100644 acc-testcases/data-sources/load_balancer_ssl_ca_certs.yaml create mode 100644 tf_log.txt create mode 100644 tf_log2.txt diff --git a/Makefile b/Makefile index 66bc022f..9c728d73 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ coverage: vendor ACC_TEST_FILE_LOCATION=github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test acceptance: @if [ "${case}" != "" ]; then \ - TF_ACC=true go test -run $(case) -v -timeout=2000s -cover $(ACC_TEST_FILE_LOCATION); \ + TF_ACC=true go test -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ else \ TF_ACC=true go test -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION) -parallel 1;\ fi diff --git a/acc-dev-testcases/README.md b/acc-dev-testcases/README.md new file mode 100644 index 00000000..80997987 --- /dev/null +++ b/acc-dev-testcases/README.md @@ -0,0 +1,178 @@ +# Running and Writing Acceptance Tests for VMaaS +- [Running an Acceptance Test](#running-an-acceptance-test) +- [Writing an Acceptance Test](#writing-an-acceptance-test) + - [Writing Acceptance Test for New Resource/Datasource](#writing-acceptance-test-for-new-resource-datasource) +- [Writing Acceptance Test Suite](#writing-acceptance-test-suite) + - [Acceptance Test Suite folder Structure](#acceptance-test-suite-folder-structure) + +## Running an Acceptance Test + +Acceptance tests can be run using the `acceptance` target in the Terraform +`Makefile`. Prior to running acceptance test you may need to set provider +IAM configuration as environment. + +```bash +export HPEGL_IAM_SERVICE_URL= +export HPEGL_TENANT_ID= +export HPEGL_USER_SECRET= +export HPEGL_USER_ID= +export HPEGL_VMAAS_LOCATION= +export HPEGL_VMAAS_SPACE_NAME= +``` + +By default the Terraform Provider will use the VMaaS production endpoint. To +use a non-production endpoint the `HPEGL_VMAAS_API_URL` must be set. For +example: +```bash +export HPEGL_VMAAS_API_URL="https://iac-vmaas.intg.hpedevops.net" +``` + +By Default acceptance test will run test cases from folder `acc-testcases`. +If you need to specify different test suite or folder, please set environment +`TF_ACC_TEST_PATH` + +For example: +```bash +export TF_ACC_TEST_PATH=$PWD/mytestcases +make acceptance +``` +above script will run acceptance test from specified folder and it is expected that +you will cover all the test cases there. + + +## Writing an Acceptance Test + +Acceptance test should be written using vmaas acceptance test framework or `atf`. This +framework supports writing test suites for both resources and data sources. + +### Writing Acceptance Test for New Resource/Datasource + +Create new test file wil the format `__test.go`. +Exmaple: +- `resource_instance_test.go` (for resource `hpegl_vmaas_instance`). +- `data_source_network_test.go` (for data source `hpegl_vmaas_network`) +You only need to create a new file if there is no test file exists. Otherwise you can use the existing file +and add your test suite there. + +If you need to create entire new test suite then create new Test function as well. +Please follow the naming convention for function name as `TestAcc`. + +General example to create acceptance test +```go +// This example is for acceptance test for plan data source +func TestAccResourceMyResourceCreate(t *testing.T) { + acc := &atf.Acc{ + PreCheck: testAccPreCheck, + Providers: testAccProviders, + ResourceName: "hpegl_vmaas_my_resource", + Version: "case_2", // Use version if you need to run multiple step cases, if not then skip this field + // Version field should also be unique + GetAPI: func(attr map[string]string) (interface{}, error) { + cl, cfg := getAPIClient() + iClient := api_client.PlansAPIService{ + Client: cl, + Cfg: cfg, + } + id := toInt(attr["id"]) + + return iClient.GetSpecificMyResource(getAccContext(), id) + }, + } + + acc.RunDataSourceTests(t) +} +``` + +`GetAPI` function should contains Get Specific API for the a resource/Data source. This is +used for validation of the specific resource/data source. + +## Writing Acceptance Test Suite + +Acceptance test suite should be written over default location `acc-testcases` if default acceptance +test suite is used, or else add test case in `TF_ACC_TEST_PATH` folder. + +### Acceptance Test Suite folder Structure + +TF_ACC_TEST_PATH folder structure as follows + + . + ├── resource + │ ├─ my_resource.yaml + │ ├─ my_resource-case_2.yaml + │ ├─ ... + │ └─ . + └── data-sources + ├─ my_datasource.yaml + ├─ ... + └─ . + +The filename of the test should be the resource/data_source name without "hpegl_vmaas_" string. +for example, resource `hpegl_vmaas_instance` filename will be `instance.yaml`. + +Also you may needto append `Version` (if you specified one in the test case on corresponding resource test go file) +prepended with `-`. +for example, resource `hpegl_vmaas_instance` with `Version: "case2"` will be `instance-case2.yaml`. + +### Creating new test suite + +To create entire new test suite, where you need to create a resource (or run new Plan for data source/Resource), +optionally apply updates on resource, create new file with appended `Version`(if a test suite already presented) +along with filename (In this case you also need to create new test function in corresponding go test file with `Version`), + +Structure of the test suite yaml file will be +```yml +acc: # this should be parent field for every test suite + - name: # you can specify name of the test suite here, Apart from the readability + # there are no real world use for the 'name' field + config: |- # Config holds the terraform actual configuration. + < + First configuration in test suite will create the resource and rest will update the resource. + If `expect_error` is specified in first config, then second configuration will be used to + create a new resource. + terraform configuration. Here you don't want to + specify resource name or local name, but only the fields under it. + for example: + ``` + resource "hpegl_vmaas_my_resource" "tf_resource" { + name = "resource_name" + tag { + tag_name = "test" + } + } + ``` + above configuration in test case should represent as follows + + config: + name = "resource_name" + tag { + tag_name = "test" + } + + Acceptance test framework will prepend the resource name and local name along + with this > + + validation: # validation can contains n number of child validations + json.instance.status: "running" # Currently json or tf validations are supported + # in json validation, atf framework will call get API for instance with ID of the created instance + # and get instance.status field from response json and check equality to "running" + tf.network.0.is_primary: true # in tf validation corresponding field in state field is compared to RHS + expect_error: + + - name: + config: |- + < this configuration will result into update operation. + Here you need to provide entire configuration with updated fields + For example, to change name of the resource from "resource_name" to "resource_name_2" + the config looks as follows + + config: + name = "resource_name_2" + tag { + tag_name = "test" + } + validation: # here you can validate updated fields as well as existing fields + ... + ... + +ignore: +``` diff --git a/acc-dev-testcases/data-sources/cloud.yaml b/acc-dev-testcases/data-sources/cloud.yaml new file mode 100644 index 00000000..38c95b95 --- /dev/null +++ b/acc-dev-testcases/data-sources/cloud.yaml @@ -0,0 +1,6 @@ +acc: +- config: | + name = "HPE GreenLake VMaaS Cloud" + validations: + json.zone.id: 1 + tf.id: 1 diff --git a/acc-dev-testcases/data-sources/cloud_folder.yaml b/acc-dev-testcases/data-sources/cloud_folder.yaml new file mode 100644 index 00000000..38e81f2d --- /dev/null +++ b/acc-dev-testcases/data-sources/cloud_folder.yaml @@ -0,0 +1,6 @@ +acc: +- config: | + name = "ComputeFolder" + cloud_id = 1 + validations: + json.folder.id: 2 diff --git a/acc-dev-testcases/data-sources/datastore.yaml b/acc-dev-testcases/data-sources/datastore.yaml new file mode 100644 index 00000000..c64ccde6 --- /dev/null +++ b/acc-dev-testcases/data-sources/datastore.yaml @@ -0,0 +1,4 @@ +acc: +- config: | + name = "glcicd-G2i-1-Bs-1" + cloud_id = 1 diff --git a/acc-dev-testcases/data-sources/edge_cluster.yaml b/acc-dev-testcases/data-sources/edge_cluster.yaml new file mode 100644 index 00000000..1219e169 --- /dev/null +++ b/acc-dev-testcases/data-sources/edge_cluster.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "edge_cluster" \ No newline at end of file diff --git a/acc-dev-testcases/data-sources/environment.yaml b/acc-dev-testcases/data-sources/environment.yaml new file mode 100644 index 00000000..bdbbe7dc --- /dev/null +++ b/acc-dev-testcases/data-sources/environment.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "dev" diff --git a/acc-dev-testcases/data-sources/group.yaml b/acc-dev-testcases/data-sources/group.yaml new file mode 100644 index 00000000..a665a999 --- /dev/null +++ b/acc-dev-testcases/data-sources/group.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "Default" diff --git a/acc-dev-testcases/data-sources/layout.yaml b/acc-dev-testcases/data-sources/layout.yaml new file mode 100644 index 00000000..ab1dce36 --- /dev/null +++ b/acc-dev-testcases/data-sources/layout.yaml @@ -0,0 +1,4 @@ +acc: +- config: | + name = "Vmware VM" + instance_type_code = "vmware" diff --git a/acc-testcases/data-sources/lb_pool_member_group.yaml b/acc-dev-testcases/data-sources/lb_pool_member_group.yaml similarity index 100% rename from acc-testcases/data-sources/lb_pool_member_group.yaml rename to acc-dev-testcases/data-sources/lb_pool_member_group.yaml diff --git a/acc-dev-testcases/data-sources/load_balancer.yaml b/acc-dev-testcases/data-sources/load_balancer.yaml new file mode 100644 index 00000000..5e6d3069 --- /dev/null +++ b/acc-dev-testcases/data-sources/load_balancer.yaml @@ -0,0 +1,5 @@ +acc: +- config: | + name = "tl_lb_dnd" + validations: + json.loadBalancer.id: 18 \ No newline at end of file diff --git a/acc-dev-testcases/data-sources/load_balancer_monitor.yaml b/acc-dev-testcases/data-sources/load_balancer_monitor.yaml new file mode 100644 index 00000000..5b01f02f --- /dev/null +++ b/acc-dev-testcases/data-sources/load_balancer_monitor.yaml @@ -0,0 +1,6 @@ +acc: +- config: | + name = "default-http-lb-monitor" + lb_id = 18 + validations: + json.loadBalancerMonitor.id: 98 \ No newline at end of file diff --git a/acc-dev-testcases/data-sources/load_balancer_pool.yaml b/acc-dev-testcases/data-sources/load_balancer_pool.yaml new file mode 100644 index 00000000..b11a0790 --- /dev/null +++ b/acc-dev-testcases/data-sources/load_balancer_pool.yaml @@ -0,0 +1,6 @@ +acc: +- config: | + name = "PCE-testLB-Pool" + lb_id = 18 + validations: + json.loadBalancerPool.id: 86 diff --git a/acc-testcases/data-sources/load_balancer_profile.yaml b/acc-dev-testcases/data-sources/load_balancer_profile.yaml similarity index 50% rename from acc-testcases/data-sources/load_balancer_profile.yaml rename to acc-dev-testcases/data-sources/load_balancer_profile.yaml index 9eced791..ec17d2a6 100644 --- a/acc-testcases/data-sources/load_balancer_profile.yaml +++ b/acc-dev-testcases/data-sources/load_balancer_profile.yaml @@ -1,21 +1,21 @@ acc: - config: | - name = "Application_Profile" - lb_id = 306 + name = "default-http-lb-app-profile" + lb_id = 18 validations: - json.loadBalancerProfile.id: 10493 + json.loadBalancerProfile.id: 215 - config: | name = "default-cookie-lb-persistence-profile" - lb_id = 306 + lb_id = 18 validations: - json.loadBalancerProfile.id: 10499 + json.loadBalancerProfile.id: 220 - config: | name = "default-balanced-server-ssl-profile" - lb_id = 306 + lb_id = 18 validations: - json.loadBalancerProfile.id: 10507 + json.loadBalancerProfile.id: 230 - config: | name = "default-balanced-client-ssl-profile" - lb_id = 306 + lb_id = 18 validations: - json.loadBalancerProfile.id: 10503 + json.loadBalancerProfile.id: 227 diff --git a/acc-dev-testcases/data-sources/load_balancer_ssl_ca_certs.yaml b/acc-dev-testcases/data-sources/load_balancer_ssl_ca_certs.yaml new file mode 100644 index 00000000..21a1558e --- /dev/null +++ b/acc-dev-testcases/data-sources/load_balancer_ssl_ca_certs.yaml @@ -0,0 +1,5 @@ +acc: +- config: | + name = "sample-cert" + validations: + json.certificates.id: 7 \ No newline at end of file diff --git a/acc-dev-testcases/data-sources/network.yaml b/acc-dev-testcases/data-sources/network.yaml new file mode 100644 index 00000000..2e650c4e --- /dev/null +++ b/acc-dev-testcases/data-sources/network.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "Test-DHCP_Network1" diff --git a/acc-dev-testcases/data-sources/network_domain.yaml b/acc-dev-testcases/data-sources/network_domain.yaml new file mode 100644 index 00000000..1172d2bc --- /dev/null +++ b/acc-dev-testcases/data-sources/network_domain.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "hpe-pce.com" diff --git a/acc-dev-testcases/data-sources/network_interface.yaml b/acc-dev-testcases/data-sources/network_interface.yaml new file mode 100644 index 00000000..681018d6 --- /dev/null +++ b/acc-dev-testcases/data-sources/network_interface.yaml @@ -0,0 +1,6 @@ +acc: +- config: | + name = "E1000" + cloud_id = 1 + validations: + tf.id: 2 diff --git a/acc-dev-testcases/data-sources/network_pool.yaml b/acc-dev-testcases/data-sources/network_pool.yaml new file mode 100644 index 00000000..40a12609 --- /dev/null +++ b/acc-dev-testcases/data-sources/network_pool.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "Post-Network1-Pool" diff --git a/acc-dev-testcases/data-sources/network_proxy.yaml b/acc-dev-testcases/data-sources/network_proxy.yaml new file mode 100644 index 00000000..f697817c --- /dev/null +++ b/acc-dev-testcases/data-sources/network_proxy.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "test-proxy" diff --git a/acc-dev-testcases/data-sources/network_type.yaml b/acc-dev-testcases/data-sources/network_type.yaml new file mode 100644 index 00000000..64e4dc66 --- /dev/null +++ b/acc-dev-testcases/data-sources/network_type.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "NSX" diff --git a/acc-dev-testcases/data-sources/nsx-tier1.yaml b/acc-dev-testcases/data-sources/nsx-tier1.yaml new file mode 100644 index 00000000..654e305a --- /dev/null +++ b/acc-dev-testcases/data-sources/nsx-tier1.yaml @@ -0,0 +1,5 @@ +acc: +- config: | + name = "tf-dont-delete" + validations: + json.networkRouter.providerId: "/infra/tier-1s/9c995f68-f873-42f0-bb1b-8c5021c8f64a" \ No newline at end of file diff --git a/acc-dev-testcases/data-sources/plan.yaml b/acc-dev-testcases/data-sources/plan.yaml new file mode 100644 index 00000000..b2bd28c9 --- /dev/null +++ b/acc-dev-testcases/data-sources/plan.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "M2ie-small" diff --git a/acc-dev-testcases/data-sources/power_schedule.yaml b/acc-dev-testcases/data-sources/power_schedule.yaml new file mode 100644 index 00000000..2528861a --- /dev/null +++ b/acc-dev-testcases/data-sources/power_schedule.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "Post-power-schedule" diff --git a/acc-dev-testcases/data-sources/resource_pool.yaml b/acc-dev-testcases/data-sources/resource_pool.yaml new file mode 100644 index 00000000..6a0b7995 --- /dev/null +++ b/acc-dev-testcases/data-sources/resource_pool.yaml @@ -0,0 +1,4 @@ +acc: +- config: | + name = "ComputeResourcePool" + cloud_id = 1 diff --git a/acc-dev-testcases/data-sources/template.yaml b/acc-dev-testcases/data-sources/template.yaml new file mode 100644 index 00000000..1be07181 --- /dev/null +++ b/acc-dev-testcases/data-sources/template.yaml @@ -0,0 +1,3 @@ +acc: +- config: | + name = "vanilla-centos7-x86_64-09072020" diff --git a/acc-dev-testcases/resources/instance-template_err.yaml b/acc-dev-testcases/resources/instance-template_err.yaml new file mode 100644 index 00000000..2a227cae --- /dev/null +++ b/acc-dev-testcases/resources/instance-template_err.yaml @@ -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.*" diff --git a/acc-dev-testcases/resources/instance.yaml b/acc-dev-testcases/resources/instance.yaml new file mode 100644 index 00000000..ab12810a --- /dev/null +++ b/acc-dev-testcases/resources/instance.yaml @@ -0,0 +1,28 @@ +vars: + instance_name: tf_acc_%rand_int + rand_storage_1: "%rand_int{5,8}" +acc: +- config: | + name = "$(instance_name)" + cloud_id = 1 + group_id = 2 + layout_id = 118 + plan_id = 216 + instance_type_code = "vmware" + network { + id = 84 + } + volume { + name = "root_vol" + datastore_id = "auto" + size = $(rand_storage_1) + } + config { + resource_pool_id = 5 + no_agent = true + template_id = 752 + folder_code = "group-v1042" + } + scale = 1 + validations: + tf.status: "running" diff --git a/acc-dev-testcases/resources/instance_clone.yaml b/acc-dev-testcases/resources/instance_clone.yaml new file mode 100644 index 00000000..47585250 --- /dev/null +++ b/acc-dev-testcases/resources/instance_clone.yaml @@ -0,0 +1,9 @@ +vars: + instance_name: tf_acc_clone_%rand_int +acc: +- config: | + source_instance_id = 1 + name = "$(instance_name)" + network { + id = 84 + } diff --git a/acc-testcases/resources/load_balancer.yaml b/acc-dev-testcases/resources/load_balancer.yaml similarity index 64% rename from acc-testcases/resources/load_balancer.yaml rename to acc-dev-testcases/resources/load_balancer.yaml index a4e12c1f..02143d89 100644 --- a/acc-testcases/resources/load_balancer.yaml +++ b/acc-dev-testcases/resources/load_balancer.yaml @@ -12,7 +12,7 @@ acc: admin_state = true size = "SMALL" log_level = "INFO" - tier1_gateways = "/infra/tier-1s/26cdb82e-0057-4461-ad4d-cddd61d77b1f" + tier1_gateways = "/infra/tier-1s/9c995f68-f873-42f0-bb1b-8c5021c8f64a" } validations: - json.loadBalancer.config.tier1: "/infra/tier-1s/26cdb82e-0057-4461-ad4d-cddd61d77b1f" + json.loadBalancer.config.tier1: "/infra/tier-1s/9c995f68-f873-42f0-bb1b-8c5021c8f64a" diff --git a/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml b/acc-dev-testcases/resources/load_balancer_monitor-monitor_err.yaml similarity index 97% rename from acc-testcases/resources/load_balancer_monitor-monitor_err.yaml rename to acc-dev-testcases/resources/load_balancer_monitor-monitor_err.yaml index 919ff1c5..c1c5b7b5 100644 --- a/acc-testcases/resources/load_balancer_monitor-monitor_err.yaml +++ b/acc-dev-testcases/resources/load_balancer_monitor-monitor_err.yaml @@ -2,7 +2,7 @@ vars: http_name: tf_HTTP_MONITOR_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 name = "$(http_name)" description = "HTTP_MONITOR creating using tf" type = "LBIcmpMonitorProfile" diff --git a/acc-testcases/resources/load_balancer_monitor.yaml b/acc-dev-testcases/resources/load_balancer_monitor.yaml similarity index 96% rename from acc-testcases/resources/load_balancer_monitor.yaml rename to acc-dev-testcases/resources/load_balancer_monitor.yaml index 30deb038..f1148d67 100644 --- a/acc-testcases/resources/load_balancer_monitor.yaml +++ b/acc-dev-testcases/resources/load_balancer_monitor.yaml @@ -7,7 +7,7 @@ vars: udp_name: tf_UDP-MONITOR_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 name = "$(http_name)" description = "HTTP_MONITOR creating using tf" type = "LBHttpMonitorProfile" @@ -27,7 +27,7 @@ acc: validations: json.loadBalancerMonitor.monitorType: "LBHttpMonitorProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(https_name)" description = "HTTPS_MONITOR creating using tf" type = "LBHttpsMonitorProfile" @@ -47,7 +47,7 @@ acc: validations: json.loadBalancerMonitor.monitorType: "LBHttpsMonitorProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(icmp_name)" description = "ICMP_MONITOR update using tf" type = "LBIcmpMonitorProfile" @@ -62,7 +62,7 @@ acc: validations: json.loadBalancerMonitor.monitorType: "LBIcmpMonitorProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(passive_name)" description = "PASSIVE_MONITOR create using tf" type = "LBPassiveMonitorProfile" @@ -73,7 +73,7 @@ acc: validations: json.loadBalancerMonitor.monitorType: "LBPassiveMonitorProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(tcp_name)" description = "TCP_MONITOR create using tf" type = "LBTcpMonitorProfile" @@ -89,7 +89,7 @@ acc: validations: json.loadBalancerMonitor.monitorType: "LBTcpMonitorProfile" - config: | - lb_id = 306 + lb_id = 18 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-dev-testcases/resources/load_balancer_pool-pool_err.yaml similarity index 98% rename from acc-testcases/resources/load_balancer_pool-pool_err.yaml rename to acc-dev-testcases/resources/load_balancer_pool-pool_err.yaml index bfbc165c..f1a25192 100644 --- a/acc-testcases/resources/load_balancer_pool-pool_err.yaml +++ b/acc-dev-testcases/resources/load_balancer_pool-pool_err.yaml @@ -3,7 +3,7 @@ vars: pool_name: tf_POOL_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 name = "$(pool_name)" description = "POOL creating using tf" min_active_members = 1 diff --git a/acc-testcases/resources/load_balancer_pool.yaml b/acc-dev-testcases/resources/load_balancer_pool.yaml similarity index 97% rename from acc-testcases/resources/load_balancer_pool.yaml rename to acc-dev-testcases/resources/load_balancer_pool.yaml index 76e257cb..f2daab44 100644 --- a/acc-testcases/resources/load_balancer_pool.yaml +++ b/acc-dev-testcases/resources/load_balancer_pool.yaml @@ -2,7 +2,7 @@ vars: pool_name: tf_POOL_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 name = "$(pool_name)" description = "POOL creating using tf" min_active_members = 1 diff --git a/acc-testcases/resources/load_balancer_profile-profile_err.yaml b/acc-dev-testcases/resources/load_balancer_profile-profile_err.yaml similarity index 97% rename from acc-testcases/resources/load_balancer_profile-profile_err.yaml rename to acc-dev-testcases/resources/load_balancer_profile-profile_err.yaml index cfe17fe9..bcdc7a52 100644 --- a/acc-testcases/resources/load_balancer_profile-profile_err.yaml +++ b/acc-dev-testcases/resources/load_balancer_profile-profile_err.yaml @@ -2,7 +2,7 @@ vars: http_name: tf_HTTP_PROFILE_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 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-dev-testcases/resources/load_balancer_profile.yaml similarity index 96% rename from acc-testcases/resources/load_balancer_profile.yaml rename to acc-dev-testcases/resources/load_balancer_profile.yaml index ac934963..b8eddd68 100644 --- a/acc-testcases/resources/load_balancer_profile.yaml +++ b/acc-dev-testcases/resources/load_balancer_profile.yaml @@ -9,7 +9,7 @@ vars: server_name: tf_SERVER-PROFILE_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 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 = 306 + lb_id = 18 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 = 306 + lb_id = 18 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 = 306 + lb_id = 18 name = "$(cookie_name)" description = "COOKIE_PROFILE creating using tf" profile_type = "persistence-profile" @@ -81,7 +81,6 @@ acc: cookie_garbling = true cookie_mode = "INSERT" cookie_type = "LBPersistenceCookieTime" - cookie_domain = "domain1" cookie_path = "http://cookie.com" max_idle_time = 60 share_persistence = true @@ -95,7 +94,7 @@ acc: validations: json.loadBalancerProfile.serviceType: "LBCookiePersistenceProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(generic_name)" description = "GENERIC_PROFILE creating using tf" profile_type = "persistence-profile" @@ -114,7 +113,7 @@ acc: validations: json.loadBalancerProfile.serviceType: "LBGenericPersistenceProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(source_name)" description = "SOURCE_PROFILE creating using tf" profile_type = "persistence-profile" @@ -134,7 +133,7 @@ acc: validations: json.loadBalancerProfile.serviceType: "LBSourceIpPersistenceProfile" - config: | - lb_id = 306 + lb_id = 18 name = "$(client_name)" description = "CLIENT_PROFILE creating using tf" profile_type = "ssl-profile" @@ -154,7 +153,7 @@ acc: validations: json.loadBalancerProfile.serviceType: "LBClientSslProfile" - config: | - lb_id = 306 + lb_id = 18 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-dev-testcases/resources/load_balancer_virtual_server.yaml similarity index 67% rename from acc-testcases/resources/load_balancer_virtual_server.yaml rename to acc-dev-testcases/resources/load_balancer_virtual_server.yaml index 201bced8..5e530101 100644 --- a/acc-testcases/resources/load_balancer_virtual_server.yaml +++ b/acc-dev-testcases/resources/load_balancer_virtual_server.yaml @@ -2,31 +2,31 @@ vars: vs_name: tf_VS_%rand_int acc: - config: | - lb_id = 306 + lb_id = 18 name = "$(vs_name)" description = "tf_virtual-server created by tf" - vip_address = "10.11.12.13" + vip_address = "11.10.52.14" vip_port = "8080" pool = 1037 type = "http" http_application_profile { - application_profile = 10493 + application_profile = 214 } persistence = "COOKIE" cookie_persistence_profile { - persistence_profile = 10499 + persistence_profile = 220 } - ssl_server_cert = 22 + ssl_server_cert = 8 ssl_server_config { - ssl_server_profile = 10507 + ssl_server_profile = 230 } - ssl_client_cert = 22 + ssl_client_cert = 8 ssl_client_config { - ssl_client_profile = 10503 + ssl_client_profile = 227 } validations: json.loadBalancerInstance.vipProtocol: "http" diff --git a/acc-dev-testcases/resources/network.yaml b/acc-dev-testcases/resources/network.yaml new file mode 100644 index 00000000..97ddc7af --- /dev/null +++ b/acc-dev-testcases/resources/network.yaml @@ -0,0 +1,22 @@ +vars: + network_name: tf_acc_net_%rand_int +acc: +- config: | + name = "$(network_name)" + description = "Network created using tf" + group_id = "shared" + scope_id = "fdb6e5ba-2f28-4186-bb76-3515aafc1902" + cidr = "11.10.31.1/24" + gateway = "11.10.31.1" + scan_network = false + active = true + connected_gateway = "/infra/tier-1s/9c995f68-f873-42f0-bb1b-8c5021c8f64a" + resource_permissions { + all = true + } + static_network { + pool_id = 17 + } + validations: + tf.cidr = "11.10.31.1/24" + tf.gateway = "11.10.31.1" diff --git a/acc-testcases/resources/router-tier0.yaml b/acc-dev-testcases/resources/router-tier0.yaml similarity index 94% rename from acc-testcases/resources/router-tier0.yaml rename to acc-dev-testcases/resources/router-tier0.yaml index 85b6403b..5989ebe1 100644 --- a/acc-testcases/resources/router-tier0.yaml +++ b/acc-dev-testcases/resources/router-tier0.yaml @@ -38,5 +38,5 @@ acc: } fail_over = "NON_PREEMPTIVE" ha_mode = "ACTIVE_STANDBY" - edge_cluster= "e34440bb-6277-4b86-8dfd-288e7e4cbb24" + edge_cluster= "21b5e641-e6dd-4eee-9260-472ba31c104b" } diff --git a/acc-testcases/resources/router-tier1.yaml b/acc-dev-testcases/resources/router-tier1.yaml similarity index 88% rename from acc-testcases/resources/router-tier1.yaml rename to acc-dev-testcases/resources/router-tier1.yaml index f8c1e7ec..3b14c33c 100644 --- a/acc-testcases/resources/router-tier1.yaml +++ b/acc-dev-testcases/resources/router-tier1.yaml @@ -6,7 +6,7 @@ acc: enable = true group_id = "shared" tier1_config { - edge_cluster= "e34440bb-6277-4b86-8dfd-288e7e4cbb24" + edge_cluster= "21b5e641-e6dd-4eee-9260-472ba31c104b" fail_over = "NON_PREEMPTIVE" route_advertisement { tier1_connected = true diff --git a/acc-testcases/resources/router_bgp_neighbor.yaml b/acc-dev-testcases/resources/router_bgp_neighbor.yaml similarity index 95% rename from acc-testcases/resources/router_bgp_neighbor.yaml rename to acc-dev-testcases/resources/router_bgp_neighbor.yaml index 079a65ff..d52cf4cf 100644 --- a/acc-testcases/resources/router_bgp_neighbor.yaml +++ b/acc-dev-testcases/resources/router_bgp_neighbor.yaml @@ -1,6 +1,6 @@ acc: - config: | - router_id = 31 + router_id = 3 ip_address = "10.201.227.84" remote_as = 65000 keepalive = 60 diff --git a/acc-testcases/resources/router_nat_rule.yaml b/acc-dev-testcases/resources/router_nat_rule.yaml similarity index 95% rename from acc-testcases/resources/router_nat_rule.yaml rename to acc-dev-testcases/resources/router_nat_rule.yaml index 38742828..dc054fda 100644 --- a/acc-testcases/resources/router_nat_rule.yaml +++ b/acc-dev-testcases/resources/router_nat_rule.yaml @@ -2,7 +2,7 @@ vars: nat_name: tf_router_nat_%rand_int acc: - config: | - router_id = 31 + router_id = 4 name = "$(nat_name)" enabled = true description = "NAT rule created via terraform" @@ -19,7 +19,7 @@ acc: validations: json.networkRouterNAT.sourceNetwork : "1.1.3.0/24" - config: | - router_id = 31 + router_id = 4 name = "$(nat_name)" enabled = true description = "NAT rule created via terraform" diff --git a/acc-testcases/resources/router_route.yaml b/acc-dev-testcases/resources/router_route.yaml similarity index 93% rename from acc-testcases/resources/router_route.yaml rename to acc-dev-testcases/resources/router_route.yaml index a8f8878c..8db0d573 100644 --- a/acc-testcases/resources/router_route.yaml +++ b/acc-dev-testcases/resources/router_route.yaml @@ -3,7 +3,7 @@ vars: acc: - config: | name = "$(route_name)" - router_id = 31 + router_id = 4 description = "router route created using terraform" enabled = true default_route = false diff --git a/acc-prod_testcases/data-sources/cloud_folder.yaml b/acc-prod_testcases/data-sources/cloud_folder.yaml index b8d1edc2..8d5f02df 100644 --- a/acc-prod_testcases/data-sources/cloud_folder.yaml +++ b/acc-prod_testcases/data-sources/cloud_folder.yaml @@ -1,7 +1,7 @@ acc: - config: | name = "ComputeFolder" - cloud_id = 3 + cloud_id = 1 validations: - json.folder.id: 3 - tf.code: "group-v220" \ No newline at end of file + json.folder.id: 2 + tf.code: "group-v1042" \ No newline at end of file diff --git a/acc-prod_testcases/data-sources/datastore.yaml b/acc-prod_testcases/data-sources/datastore.yaml index 97171dca..c64ccde6 100644 --- a/acc-prod_testcases/data-sources/datastore.yaml +++ b/acc-prod_testcases/data-sources/datastore.yaml @@ -1,4 +1,4 @@ acc: - config: | - name = "Compute-Cluster-Vol0" - cloud_id = 3 + name = "glcicd-G2i-1-Bs-1" + cloud_id = 1 diff --git a/acc-prod_testcases/data-sources/edge_cluster.yaml b/acc-prod_testcases/data-sources/edge_cluster.yaml index 554fb515..1219e169 100644 --- a/acc-prod_testcases/data-sources/edge_cluster.yaml +++ b/acc-prod_testcases/data-sources/edge_cluster.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "Edge_cluster" \ No newline at end of file + name = "edge_cluster" \ No newline at end of file diff --git a/acc-prod_testcases/data-sources/network.yaml b/acc-prod_testcases/data-sources/network.yaml index db95ea50..2e650c4e 100644 --- a/acc-prod_testcases/data-sources/network.yaml +++ b/acc-prod_testcases/data-sources/network.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "Blue-Segment" + name = "Test-DHCP_Network1" diff --git a/acc-prod_testcases/data-sources/network_domain.yaml b/acc-prod_testcases/data-sources/network_domain.yaml index ba94bc5c..1172d2bc 100644 --- a/acc-prod_testcases/data-sources/network_domain.yaml +++ b/acc-prod_testcases/data-sources/network_domain.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "czero.hpe" + name = "hpe-pce.com" diff --git a/acc-prod_testcases/data-sources/network_interface.yaml b/acc-prod_testcases/data-sources/network_interface.yaml index 4198cc94..dcdd9e5c 100644 --- a/acc-prod_testcases/data-sources/network_interface.yaml +++ b/acc-prod_testcases/data-sources/network_interface.yaml @@ -1,4 +1,4 @@ acc: - config: | name = "E1000" - cloud_id = 3 + cloud_id = 1 diff --git a/acc-prod_testcases/data-sources/network_pool.yaml b/acc-prod_testcases/data-sources/network_pool.yaml index 6538f43d..40a12609 100644 --- a/acc-prod_testcases/data-sources/network_pool.yaml +++ b/acc-prod_testcases/data-sources/network_pool.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "BLUE POOL" + name = "Post-Network1-Pool" diff --git a/acc-prod_testcases/data-sources/network_proxy.yaml b/acc-prod_testcases/data-sources/network_proxy.yaml index d019aa52..f697817c 100644 --- a/acc-prod_testcases/data-sources/network_proxy.yaml +++ b/acc-prod_testcases/data-sources/network_proxy.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "Proxy1" + name = "test-proxy" diff --git a/acc-prod_testcases/data-sources/plan.yaml b/acc-prod_testcases/data-sources/plan.yaml index 603631ef..b2bd28c9 100644 --- a/acc-prod_testcases/data-sources/plan.yaml +++ b/acc-prod_testcases/data-sources/plan.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "G1-Small" + name = "M2ie-small" diff --git a/acc-prod_testcases/data-sources/power_schedule.yaml b/acc-prod_testcases/data-sources/power_schedule.yaml index eec73dcb..2528861a 100644 --- a/acc-prod_testcases/data-sources/power_schedule.yaml +++ b/acc-prod_testcases/data-sources/power_schedule.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "DEMO_WEEKDAY" + name = "Post-power-schedule" diff --git a/acc-prod_testcases/data-sources/resource_pool.yaml b/acc-prod_testcases/data-sources/resource_pool.yaml index 02cf01a6..6a0b7995 100644 --- a/acc-prod_testcases/data-sources/resource_pool.yaml +++ b/acc-prod_testcases/data-sources/resource_pool.yaml @@ -1,4 +1,4 @@ acc: - config: | name = "ComputeResourcePool" - cloud_id = 3 + cloud_id = 1 diff --git a/acc-prod_testcases/resources/instance.yaml b/acc-prod_testcases/resources/instance.yaml index a5f0664b..862a37a2 100644 --- a/acc-prod_testcases/resources/instance.yaml +++ b/acc-prod_testcases/resources/instance.yaml @@ -4,26 +4,26 @@ vars: acc: - config: | name = "$(instance_name)" - cloud_id = 3 - group_id = 6 - layout_id = 339 - plan_id = 1221 + cloud_id = 1 + group_id = 2 + layout_id = 118 + plan_id = 216 instance_type_code = "vmware" network { - id = 255 - interface_id = 0 + id = 84 + interface_id = 4 } volume { - name = "root_vol" - datastore_id = 24 + name = "glcicd-Bs-Vol1" + datastore_id = 5 size = $(rand_storage_1) } scale = 2 config { - resource_pool_id = 6 + resource_pool_id = 5 no_agent = true - template_id = 1719 - folder_code = "group-v220" + template_id = 752 + folder_code = "group-v1042" } validations: tf.status: "running" \ No newline at end of file diff --git a/acc-prod_testcases/resources/instance_clone.yaml b/acc-prod_testcases/resources/instance_clone.yaml index 65f2d392..f653c2b7 100644 --- a/acc-prod_testcases/resources/instance_clone.yaml +++ b/acc-prod_testcases/resources/instance_clone.yaml @@ -3,8 +3,8 @@ vars: acc: - config: | name = "$(instance_name)" - source_instance_id = 59300 + source_instance_id = 1 network { - id = 267 - interface_id = 0 + id = 84 + interface_id = 4 } \ No newline at end of file diff --git a/acc-testcases/data-sources/cloud.yaml b/acc-testcases/data-sources/cloud.yaml index 38c95b95..50bb5797 100644 --- a/acc-testcases/data-sources/cloud.yaml +++ b/acc-testcases/data-sources/cloud.yaml @@ -1,6 +1,3 @@ acc: - config: | name = "HPE GreenLake VMaaS Cloud" - validations: - json.zone.id: 1 - tf.id: 1 diff --git a/acc-testcases/data-sources/cloud_folder.yaml b/acc-testcases/data-sources/cloud_folder.yaml index 14deebf5..e1c1cc35 100644 --- a/acc-testcases/data-sources/cloud_folder.yaml +++ b/acc-testcases/data-sources/cloud_folder.yaml @@ -3,4 +3,5 @@ acc: name = "ComputeFolder" cloud_id = 1 validations: - json.folder.id: 1 + json.folder.id: 4 + tf.code: "group-v1036" \ No newline at end of file diff --git a/acc-testcases/data-sources/datastore.yaml b/acc-testcases/data-sources/datastore.yaml index 39850043..0a2827fd 100644 --- a/acc-testcases/data-sources/datastore.yaml +++ b/acc-testcases/data-sources/datastore.yaml @@ -1,4 +1,4 @@ acc: - config: | - name = "GLHC-Vol10" + name = "gl-fortcollins-Bs-1" cloud_id = 1 diff --git a/acc-testcases/data-sources/edge_cluster.yaml b/acc-testcases/data-sources/edge_cluster.yaml index 2c8b26b9..cb55685c 100644 --- a/acc-testcases/data-sources/edge_cluster.yaml +++ b/acc-testcases/data-sources/edge_cluster.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "nsx_edge_cluster" \ No newline at end of file + name = "Edge Cluster" \ No newline at end of file diff --git a/acc-testcases/data-sources/group.yaml b/acc-testcases/data-sources/group.yaml index 3b50f281..38b007a0 100644 --- a/acc-testcases/data-sources/group.yaml +++ b/acc-testcases/data-sources/group.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "tf_group" + name = "default" diff --git a/acc-testcases/data-sources/load_balancer.yaml b/acc-testcases/data-sources/load_balancer.yaml deleted file mode 100644 index 72a977cb..00000000 --- a/acc-testcases/data-sources/load_balancer.yaml +++ /dev/null @@ -1,5 +0,0 @@ -acc: -- config: | - name = "tf_loadbalancer_DO_NOT_DELETE" - validations: - 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 deleted file mode 100644 index 5dd72176..00000000 --- a/acc-testcases/data-sources/load_balancer_monitor.yaml +++ /dev/null @@ -1,6 +0,0 @@ -acc: -- config: | - name = "tf_lb_monitor_DO_NOT_DELETE" - lb_id = 306 - validations: - 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 deleted file mode 100644 index e6d7081d..00000000 --- a/acc-testcases/data-sources/load_balancer_pool.yaml +++ /dev/null @@ -1,6 +0,0 @@ -acc: -- config: | - name = "tf_POOL_DO_NOT_DELETE" - lb_id = 306 - validations: - json.loadBalancerPool.id: 1037 diff --git a/acc-testcases/data-sources/load_balancer_ssl_ca_certs.yaml b/acc-testcases/data-sources/load_balancer_ssl_ca_certs.yaml deleted file mode 100644 index dbbcaa6d..00000000 --- a/acc-testcases/data-sources/load_balancer_ssl_ca_certs.yaml +++ /dev/null @@ -1,5 +0,0 @@ -acc: -- config: | - name = "SSL_CA_certs" - validations: - json.certificates.id: 22 \ No newline at end of file diff --git a/acc-testcases/data-sources/network.yaml b/acc-testcases/data-sources/network.yaml index b7f1457a..7ce908a0 100644 --- a/acc-testcases/data-sources/network.yaml +++ b/acc-testcases/data-sources/network.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "NSXT_DHCP" + name = "DHCP-Net" diff --git a/acc-testcases/data-sources/network_domain.yaml b/acc-testcases/data-sources/network_domain.yaml index 958e3d36..774278eb 100644 --- a/acc-testcases/data-sources/network_domain.yaml +++ b/acc-testcases/data-sources/network_domain.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "tf_domain" + name = "test-hpe.local" diff --git a/acc-testcases/data-sources/network_interface.yaml b/acc-testcases/data-sources/network_interface.yaml index 681018d6..dcdd9e5c 100644 --- a/acc-testcases/data-sources/network_interface.yaml +++ b/acc-testcases/data-sources/network_interface.yaml @@ -2,5 +2,3 @@ acc: - config: | name = "E1000" cloud_id = 1 - validations: - tf.id: 2 diff --git a/acc-testcases/data-sources/network_pool.yaml b/acc-testcases/data-sources/network_pool.yaml index 7cc34d31..3357f1d5 100644 --- a/acc-testcases/data-sources/network_pool.yaml +++ b/acc-testcases/data-sources/network_pool.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "tf_pool" + name = "ci-net-pool1" diff --git a/acc-testcases/data-sources/network_proxy.yaml b/acc-testcases/data-sources/network_proxy.yaml index d25fb93c..32f98f76 100644 --- a/acc-testcases/data-sources/network_proxy.yaml +++ b/acc-testcases/data-sources/network_proxy.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "tf_proxy" + name = "CI_PROXY" diff --git a/acc-testcases/data-sources/nsx-tier1.yaml b/acc-testcases/data-sources/nsx-tier1.yaml index 7c65869a..cd1ee7ed 100644 --- a/acc-testcases/data-sources/nsx-tier1.yaml +++ b/acc-testcases/data-sources/nsx-tier1.yaml @@ -1,5 +1,5 @@ acc: - config: | - name = "nsx_tier1_gateway" + name = "Router_DONT_DELETE_USED_FOR_IAAC" validations: - json.networkRouter.providerId: "/infra/tier-1s/26cdb82e-0057-4461-ad4d-cddd61d77b1f" \ No newline at end of file + json.networkRouter.providerId: "/infra/tier-1s/d3561ba7-01c9-4fa7-a7c5-bac401fd8f75" \ No newline at end of file diff --git a/acc-testcases/data-sources/plan.yaml b/acc-testcases/data-sources/plan.yaml index 603631ef..4a846606 100644 --- a/acc-testcases/data-sources/plan.yaml +++ b/acc-testcases/data-sources/plan.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "G1-Small" + name = "G2i-small" diff --git a/acc-testcases/data-sources/power_schedule.yaml b/acc-testcases/data-sources/power_schedule.yaml index c5740cfe..2528861a 100644 --- a/acc-testcases/data-sources/power_schedule.yaml +++ b/acc-testcases/data-sources/power_schedule.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "TF_Weekday" + name = "Post-power-schedule" diff --git a/acc-testcases/data-sources/resource_pool.yaml b/acc-testcases/data-sources/resource_pool.yaml index 6a0b7995..335c3f76 100644 --- a/acc-testcases/data-sources/resource_pool.yaml +++ b/acc-testcases/data-sources/resource_pool.yaml @@ -1,4 +1,4 @@ acc: - config: | - name = "ComputeResourcePool" + name = "gl-fortcollins-G2i-vm-02" cloud_id = 1 diff --git a/acc-testcases/data-sources/template.yaml b/acc-testcases/data-sources/template.yaml index 1be07181..93b642a6 100644 --- a/acc-testcases/data-sources/template.yaml +++ b/acc-testcases/data-sources/template.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "vanilla-centos7-x86_64-09072020" + name = "apache-centos" diff --git a/acc-testcases/resources/instance-template_err.yaml b/acc-testcases/resources/instance-template_err.yaml index 2a227cae..ae9d9bf0 100644 --- a/acc-testcases/resources/instance-template_err.yaml +++ b/acc-testcases/resources/instance-template_err.yaml @@ -3,26 +3,27 @@ vars: 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 + name = "$(instance_name)" + cloud_id = 3 + group_id = 6 + layout_id = 339 + plan_id = 1221 instance_type_code = "vmware" network { - id = 3 - } + id = 255 + interface_id = 0 + } volume { name = "root_vol" - datastore_id = "auto" + datastore_id = 24 size = $(rand_storage_1) } + scale = 2 config { - resource_pool_id = 2 + resource_pool_id = 6 no_agent = true - folder_code = "group-v284" - } - scale = 1 + folder_code = "group-v220" + } validations: tf.status: "running" expect_error: ".*template.*" diff --git a/acc-testcases/resources/instance.yaml b/acc-testcases/resources/instance.yaml index 0e5df1f5..5ad4c6fe 100644 --- a/acc-testcases/resources/instance.yaml +++ b/acc-testcases/resources/instance.yaml @@ -5,24 +5,24 @@ acc: - config: | name = "$(instance_name)" cloud_id = 1 - group_id = 2 - layout_id = 113 - plan_id = 407 + group_id = 4 + layout_id = 376 + plan_id = 856 instance_type_code = "vmware" network { - id = 3 - } + id = 97 + interface_id = 4 + } volume { name = "root_vol" datastore_id = "auto" size = $(rand_storage_1) } config { - resource_pool_id = 2 + resource_pool_id = 4 no_agent = true - template_id = 504 - folder_code = "group-v284" - } - scale = 1 + template_id = 1696 + folder_code = "group-v1036" + } validations: - tf.status: "running" + tf.status: "running" \ No newline at end of file diff --git a/acc-testcases/resources/instance_clone.yaml b/acc-testcases/resources/instance_clone.yaml index 3dc3fb36..7705138b 100644 --- a/acc-testcases/resources/instance_clone.yaml +++ b/acc-testcases/resources/instance_clone.yaml @@ -1,9 +1,10 @@ vars: - instance_name: tf_acc_clone_%rand_int + instance_name: tf_clone_%rand_int acc: - config: | - source_instance_id = 20 name = "$(instance_name)" + source_instance_id = 23989 network { - id = 3 - } + id = 97 + interface_id = 4 + } \ No newline at end of file diff --git a/acc-testcases/resources/network.yaml b/acc-testcases/resources/network.yaml index 3a37e955..eb45f0fb 100644 --- a/acc-testcases/resources/network.yaml +++ b/acc-testcases/resources/network.yaml @@ -5,18 +5,18 @@ acc: name = "$(network_name)" description = "Network created using tf" group_id = "shared" - scope_id = "88cd4dc8-0445-4b8e-b260-0f4cd361f4e1" - cidr = "172.16.10.1/24" - gateway = "172.16.10.1" + scope_id = "b58527dd-f5fd-4658-b426-ba4b74d00418" + cidr = "10.200.40.1/24" + gateway = "10.200.40.1" scan_network = false active = true - connected_gateway = "/infra/tier-1s/26cdb82e-0057-4461-ad4d-cddd61d77b1f" + connected_gateway = "/infra/tier-1s/d3561ba7-01c9-4fa7-a7c5-bac401fd8f75" resource_permissions { all = true } static_network { - pool_id = 7 + pool_id = 25 } validations: - tf.cidr = "172.16.10.1/24" - tf.gateway = "172.16.10.1" + tf.cidr = "10.200.40.1/24" + tf.gateway = "10.200.40.1" diff --git a/internal/acceptance_test/data_source_edge_cluster_test.go b/internal/acceptance_test/data_source_edge_cluster_test.go index d861cebf..5317ce00 100644 --- a/internal/acceptance_test/data_source_edge_cluster_test.go +++ b/internal/acceptance_test/data_source_edge_cluster_test.go @@ -31,7 +31,7 @@ func TestAccDataSourceNetworkEdgeCluster(t *testing.T) { return nil, err } for i, n := range ServerResp.NetworkServices { - if n.TypeName == "NSX-T" { + if n.TypeName == "NSX" { serverID = ServerResp.NetworkServices[i].ID break diff --git a/internal/cmp/constants.go b/internal/cmp/constants.go index ab708104..57558b22 100644 --- a/internal/cmp/constants.go +++ b/internal/cmp/constants.go @@ -6,8 +6,8 @@ import "time" const ( vmware = "vmware" - nsxtSegment = "NSX-T Segment" - nsxt = "NSX-T" + nsxtSegment = "NSX Segment" + nsxt = "NSX" errExactMatch = "error, could not find the %s with the specified name. Please verify the name and try again" successErr = "got success = 'false while %s" // query params keys @@ -20,8 +20,8 @@ const ( // retry related constants maxTimeout = time.Hour * 2 // router consts - tier0GatewayType = "NSX-T Tier-0 Gateway" - tier1GatewayType = "NSX-T Tier-1 Gateway" + tier0GatewayType = "NSX Tier-0 Gateway" + tier1GatewayType = "NSX Tier-1 Gateway" routerFirewallExternalPolicy = "GatewayPolicy" syncedTypeValue = "Synced" diff --git a/tf_log.txt b/tf_log.txt new file mode 100644 index 00000000..d4e749f9 --- /dev/null +++ b/tf_log.txt @@ -0,0 +1,351 @@ +=== RUN TestAccDataSourceCloudFolder +=== PAUSE TestAccDataSourceCloudFolder +=== RUN TestAccDataSourceCloud +=== PAUSE TestAccDataSourceCloud +=== RUN TestAccDataSourceDataStore +=== PAUSE TestAccDataSourceDataStore +=== RUN TestAccDataSourceNetworkEdgeCluster +=== PAUSE TestAccDataSourceNetworkEdgeCluster +=== RUN TestAccDataSourceEnvironment +=== PAUSE TestAccDataSourceEnvironment +=== RUN TestAccDataSourceGroup +=== PAUSE TestAccDataSourceGroup +=== RUN TestAccDataSourceLayout +=== PAUSE TestAccDataSourceLayout +=== RUN TestAccDataSourceLBMonitor +=== PAUSE TestAccDataSourceLBMonitor +=== RUN TestAccDataSourceLBPool +=== PAUSE TestAccDataSourceLBPool +=== RUN TestAccDataSourceLBProfile +=== PAUSE TestAccDataSourceLBProfile +=== RUN TestAccDataSourceLoadBalancer +=== PAUSE TestAccDataSourceLoadBalancer +=== RUN TestAccDataSourceNetworkDomain +=== PAUSE TestAccDataSourceNetworkDomain +=== RUN TestAccDataSourceNetworkInterface +=== PAUSE TestAccDataSourceNetworkInterface +=== RUN TestAccDataSourceNetworkPool +=== PAUSE TestAccDataSourceNetworkPool +=== RUN TestAccDataSourceNetworkProxy +=== PAUSE TestAccDataSourceNetworkProxy +=== RUN TestAccDataSourceNetworkType +=== PAUSE TestAccDataSourceNetworkType +=== RUN TestAccDataSourceNetwork +=== PAUSE TestAccDataSourceNetwork +=== RUN TestAccDataSourcePlan +=== PAUSE TestAccDataSourcePlan +=== RUN TestAccDataSourcePowerSchedule +=== PAUSE TestAccDataSourcePowerSchedule +=== RUN TestAccDataSourceResourcePool +=== PAUSE TestAccDataSourceResourcePool +=== RUN TestAccDataSourceTemplate +=== PAUSE TestAccDataSourceTemplate +=== RUN TestProvider +--- PASS: TestProvider (0.01s) +=== RUN TestVmaasInstanceClonePlan +=== PAUSE TestVmaasInstanceClonePlan +=== RUN TestAccResourceInstanceCloneCreate +=== PAUSE TestAccResourceInstanceCloneCreate +=== RUN TestVmaasInstancePlan +=== PAUSE TestVmaasInstancePlan +=== RUN TestAccResourceInstanceCreate +=== PAUSE TestAccResourceInstanceCreate +=== RUN TestAccResourceInstanceCreate_templateErr +=== PAUSE TestAccResourceInstanceCreate_templateErr +=== RUN TestVmaasLBMonitorPlan +=== PAUSE TestVmaasLBMonitorPlan +=== RUN TestAccResourceLBMonitorCreate +=== PAUSE TestAccResourceLBMonitorCreate +=== RUN TestAccResourceLBMonitorCreate_monitorErr +=== PAUSE TestAccResourceLBMonitorCreate_monitorErr +=== RUN TestVmaasLBPoolPlan +=== PAUSE TestVmaasLBPoolPlan +=== RUN TestAccResourceLBPoolCreate +=== PAUSE TestAccResourceLBPoolCreate +=== RUN TestAccResourceLBPoolCreate_poolErr +=== PAUSE TestAccResourceLBPoolCreate_poolErr +=== RUN TestVmaasLBProfilePlan +=== PAUSE TestVmaasLBProfilePlan +=== RUN TestAccResourceLBProfileCreate +=== PAUSE TestAccResourceLBProfileCreate +=== RUN TestAccResourceLBProfileCreate_profileErr +=== PAUSE TestAccResourceLBProfileCreate_profileErr +=== RUN TestVmaasLoadBalancerPlan +=== PAUSE TestVmaasLoadBalancerPlan +=== RUN TestAccResourceLoadBalancerCreate +=== PAUSE TestAccResourceLoadBalancerCreate +=== RUN TestVmaasNetworkPlan +=== PAUSE TestVmaasNetworkPlan +=== RUN TestAccResourceNetworkCreate +=== PAUSE TestAccResourceNetworkCreate +=== RUN TestVmaasRouteBGPNeighborPlan +=== PAUSE TestVmaasRouteBGPNeighborPlan +=== RUN TestAccResourceRouterBGPNeighborCreate +=== PAUSE TestAccResourceRouterBGPNeighborCreate +=== RUN TestVmaasRouterNatPlan +=== PAUSE TestVmaasRouterNatPlan +=== RUN TestAccResourceRouterNatCreate +=== PAUSE TestAccResourceRouterNatCreate +=== RUN TestVmaasRouterRoutePlan +=== PAUSE TestVmaasRouterRoutePlan +=== RUN TestAccResourceRouterRouteCreate +=== PAUSE TestAccResourceRouterRouteCreate +=== RUN TestVmaasRouterTier0Plan +=== PAUSE TestVmaasRouterTier0Plan +=== RUN TestAccResourceTier0RouterCreate +=== PAUSE TestAccResourceTier0RouterCreate +=== RUN TestVmaasRouterTier1Plan +=== PAUSE TestVmaasRouterTier1Plan +=== RUN TestAccResourceTier1RouterCreate +=== PAUSE TestAccResourceTier1RouterCreate +=== RUN TestVmaasLBVirtualServerPlan +=== PAUSE TestVmaasLBVirtualServerPlan +=== RUN TestAccResourceLBVirtualServerCreate +=== PAUSE TestAccResourceLBVirtualServerCreate +=== CONT TestAccDataSourceCloudFolder +--- PASS: TestAccDataSourceCloudFolder (379.34s) +=== CONT TestVmaasLBMonitorPlan +--- PASS: TestVmaasLBMonitorPlan (136.12s) +=== CONT TestAccResourceLBVirtualServerCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with hpegl_vmaas_load_balancer_virtual_server.tf_load_balancer_virtual_server, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server": + 8: resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server" { + +--- FAIL: TestAccResourceLBVirtualServerCreate (135.13s) +=== CONT TestVmaasLBVirtualServerPlan +--- PASS: TestVmaasLBVirtualServerPlan (134.83s) +=== CONT TestAccResourceTier1RouterCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the router-type with the specified name. Please verify the name and try again + + with hpegl_vmaas_router.tf_router, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": + 8: resource "hpegl_vmaas_router" "tf_router" { + +--- FAIL: TestAccResourceTier1RouterCreate (133.84s) +=== CONT TestVmaasRouterTier1Plan +--- PASS: TestVmaasRouterTier1Plan (134.97s) +=== CONT TestAccResourceTier0RouterCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the router-type with the specified name. Please verify the name and try again + + with hpegl_vmaas_router.tf_router, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": + 8: resource "hpegl_vmaas_router" "tf_router" { + +--- FAIL: TestAccResourceTier0RouterCreate (136.02s) +=== CONT TestVmaasRouterTier0Plan +--- PASS: TestVmaasRouterTier0Plan (133.80s) +=== CONT TestAccResourceRouterRouteCreate + testing_new.go:84: Error running post-test destroy, there may be dangling resources: exit status 1 + + Error: {"body":{"msg":"Route not found with id 6","success":false},"statuscode":404} + +--- FAIL: TestAccResourceRouterRouteCreate (471.15s) +=== CONT TestVmaasRouterRoutePlan +--- PASS: TestVmaasRouterRoutePlan (134.81s) +=== CONT TestAccResourceRouterNatCreate +--- PASS: TestAccResourceRouterNatCreate (914.87s) +=== CONT TestVmaasRouterNatPlan +--- PASS: TestVmaasRouterNatPlan (135.93s) +=== CONT TestAccResourceRouterBGPNeighborCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"BGP not supported for NSX Tier-1 Gateway","success":false},"statuscode":400} + + with hpegl_vmaas_router_bgp_neighbor.tf_router_bgp_neighbor, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router_bgp_neighbor" "tf_router_bgp_neighbor": + 8: resource "hpegl_vmaas_router_bgp_neighbor" "tf_router_bgp_neighbor" { + +--- FAIL: TestAccResourceRouterBGPNeighborCreate (134.65s) +=== CONT TestVmaasRouteBGPNeighborPlan +--- PASS: TestVmaasRouteBGPNeighborPlan (136.50s) +=== CONT TestAccResourceNetworkCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the network type with the specified name. Please verify the name and try again + + with hpegl_vmaas_network.tf_network, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_network" "tf_network": + 8: resource "hpegl_vmaas_network" "tf_network" { + +--- FAIL: TestAccResourceNetworkCreate (135.33s) +=== CONT TestVmaasNetworkPlan +--- PASS: TestVmaasNetworkPlan (134.72s) +=== CONT TestAccResourceLoadBalancerCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"errors":{"type":"type not found"},"msg":"error saving load balancer","success":false},"statuscode":400} + + with hpegl_vmaas_load_balancer.tf_load_balancer, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer" "tf_load_balancer": + 8: resource "hpegl_vmaas_load_balancer" "tf_load_balancer" { + +--- FAIL: TestAccResourceLoadBalancerCreate (168.61s) +=== CONT TestVmaasLoadBalancerPlan +--- PASS: TestVmaasLoadBalancerPlan (135.28s) +=== CONT TestAccResourceLBProfileCreate_profileErr +--- PASS: TestAccResourceLBProfileCreate_profileErr (34.19s) +=== CONT TestAccResourceLBProfileCreate + acc.go:57: Step 1/8 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": + 8: resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { + +--- FAIL: TestAccResourceLBProfileCreate (137.76s) +=== CONT TestVmaasLBProfilePlan +--- PASS: TestVmaasLBProfilePlan (141.91s) +=== CONT TestAccResourceLBPoolCreate_poolErr +--- PASS: TestAccResourceLBPoolCreate_poolErr (141.86s) +=== CONT TestAccResourceLBPoolCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": + 8: resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { + +--- FAIL: TestAccResourceLBPoolCreate (138.23s) +=== CONT TestVmaasLBPoolPlan +--- PASS: TestVmaasLBPoolPlan (138.27s) +=== CONT TestAccResourceLBMonitorCreate_monitorErr +--- PASS: TestAccResourceLBMonitorCreate_monitorErr (34.06s) +=== CONT TestAccResourceLBMonitorCreate + acc.go:57: Step 1/6 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with hpegl_vmaas_load_balancer_monitor.tf_load_balancer_monitor, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor": + 8: resource "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor" { + +--- FAIL: TestAccResourceLBMonitorCreate (136.47s) +=== CONT TestAccDataSourceNetworkPool +--- PASS: TestAccDataSourceNetworkPool (445.54s) +=== CONT TestAccResourceInstanceCreate_templateErr +--- PASS: TestAccResourceInstanceCreate_templateErr (33.74s) +=== CONT TestAccResourceInstanceCreate +--- PASS: TestAccResourceInstanceCreate (672.52s) +=== CONT TestVmaasInstancePlan +--- PASS: TestVmaasInstancePlan (135.77s) +=== CONT TestAccResourceInstanceCloneCreate +--- PASS: TestAccResourceInstanceCloneCreate (685.24s) +=== CONT TestVmaasInstanceClonePlan +--- PASS: TestVmaasInstanceClonePlan (132.72s) +=== CONT TestAccDataSourceTemplate +--- PASS: TestAccDataSourceTemplate (436.28s) +=== CONT TestAccDataSourceResourcePool +--- PASS: TestAccDataSourceResourcePool (434.79s) +=== CONT TestAccDataSourcePowerSchedule +--- PASS: TestAccDataSourcePowerSchedule (436.15s) +=== CONT TestAccDataSourcePlan +--- PASS: TestAccDataSourcePlan (442.69s) +=== CONT TestAccDataSourceNetwork +--- PASS: TestAccDataSourceNetwork (441.85s) +=== CONT TestAccDataSourceNetworkType + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: error, could not find the network-type with the specified name. Please verify the name and try again + + with data.hpegl_vmaas_network_type.tf_network_type, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_network_type" "tf_network_type": + 8: data "hpegl_vmaas_network_type" "tf_network_type" { + +--- FAIL: TestAccDataSourceNetworkType (67.51s) +=== CONT TestAccDataSourceNetworkProxy +--- PASS: TestAccDataSourceNetworkProxy (446.47s) +=== CONT TestAccDataSourceLBMonitor + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with data.hpegl_vmaas_load_balancer_monitor.tf_load_balancer_monitor, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor": + 8: data "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor" { + +--- FAIL: TestAccDataSourceLBMonitor (67.72s) +=== CONT TestAccDataSourceNetworkInterface +--- PASS: TestAccDataSourceNetworkInterface (624.28s) +=== CONT TestAccDataSourceNetworkDomain +--- PASS: TestAccDataSourceNetworkDomain (447.03s) +=== CONT TestAccDataSourceLoadBalancer + acc.go:42: Step 1/1 error: Check failed: Check 1/1 error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} +--- FAIL: TestAccDataSourceLoadBalancer (236.86s) +=== CONT TestAccDataSourceLBProfile + acc.go:42: Step 1/4 error: Error running pre-apply refresh: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with data.hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": + 8: data "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { + +--- FAIL: TestAccDataSourceLBProfile (67.45s) +=== CONT TestAccDataSourceLBPool + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} + + with data.hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": + 8: data "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { + +--- FAIL: TestAccDataSourceLBPool (66.99s) +=== CONT TestAccDataSourceEnvironment +--- PASS: TestAccDataSourceEnvironment (443.25s) +=== CONT TestAccDataSourceLayout +--- PASS: TestAccDataSourceLayout (453.30s) +=== CONT TestAccDataSourceGroup + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: error, could not find the group with the specified name. Please verify the name and try again + + with data.hpegl_vmaas_group.tf_group, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_group" "tf_group": + 8: data "hpegl_vmaas_group" "tf_group" { + +--- FAIL: TestAccDataSourceGroup (71.15s) +=== CONT TestAccDataSourceDataStore +--- PASS: TestAccDataSourceDataStore (449.44s) +=== CONT TestAccDataSourceNetworkEdgeCluster + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: error, could not find the network server with the specified name. Please verify the name and try again + + with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": + 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { + +--- FAIL: TestAccDataSourceNetworkEdgeCluster (66.44s) +=== CONT TestAccDataSourceCloud +--- PASS: TestAccDataSourceCloud (437.60s) +FAIL + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements +FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 12971.464s +FAIL +=== RUN TestAccDataSourceNetworkEdgeCluster +=== PAUSE TestAccDataSourceNetworkEdgeCluster +=== CONT TestAccDataSourceNetworkEdgeCluster + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: error, could not find the network server with the specified name. Please verify the name and try again + + with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": + 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { + +--- FAIL: TestAccDataSourceNetworkEdgeCluster (11.22s) +FAIL + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 0.0% of statements +FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 11.239s +FAIL diff --git a/tf_log2.txt b/tf_log2.txt new file mode 100644 index 00000000..d4995fd1 --- /dev/null +++ b/tf_log2.txt @@ -0,0 +1,321 @@ +=== RUN TestAccDataSourceCloudFolder +=== PAUSE TestAccDataSourceCloudFolder +=== RUN TestAccDataSourceCloud +=== PAUSE TestAccDataSourceCloud +=== RUN TestAccDataSourceDataStore +=== PAUSE TestAccDataSourceDataStore +=== RUN TestAccDataSourceNetworkEdgeCluster +=== PAUSE TestAccDataSourceNetworkEdgeCluster +=== RUN TestAccDataSourceEnvironment +=== PAUSE TestAccDataSourceEnvironment +=== RUN TestAccDataSourceGroup +=== PAUSE TestAccDataSourceGroup +=== RUN TestAccDataSourceLayout +=== PAUSE TestAccDataSourceLayout +=== RUN TestAccDataSourceLBMonitor +=== PAUSE TestAccDataSourceLBMonitor +=== RUN TestAccDataSourceLBPool +=== PAUSE TestAccDataSourceLBPool +=== RUN TestAccDataSourceLBProfile +=== PAUSE TestAccDataSourceLBProfile +=== RUN TestAccDataSourceLoadBalancer +=== PAUSE TestAccDataSourceLoadBalancer +=== RUN TestAccDataSourceNetworkDomain +=== PAUSE TestAccDataSourceNetworkDomain +=== RUN TestAccDataSourceNetworkInterface +=== PAUSE TestAccDataSourceNetworkInterface +=== RUN TestAccDataSourceNetworkPool +=== PAUSE TestAccDataSourceNetworkPool +=== RUN TestAccDataSourceNetworkProxy +=== PAUSE TestAccDataSourceNetworkProxy +=== RUN TestAccDataSourceNetworkType +=== PAUSE TestAccDataSourceNetworkType +=== RUN TestAccDataSourceNetwork +=== PAUSE TestAccDataSourceNetwork +=== RUN TestAccDataSourcePlan +=== PAUSE TestAccDataSourcePlan +=== RUN TestAccDataSourcePowerSchedule +=== PAUSE TestAccDataSourcePowerSchedule +=== RUN TestAccDataSourceResourcePool +=== PAUSE TestAccDataSourceResourcePool +=== RUN TestAccDataSourceTemplate +=== PAUSE TestAccDataSourceTemplate +=== RUN TestProvider +--- PASS: TestProvider (0.00s) +=== RUN TestVmaasInstanceClonePlan +=== PAUSE TestVmaasInstanceClonePlan +=== RUN TestAccResourceInstanceCloneCreate +=== PAUSE TestAccResourceInstanceCloneCreate +=== RUN TestVmaasInstancePlan +=== PAUSE TestVmaasInstancePlan +=== RUN TestAccResourceInstanceCreate +=== PAUSE TestAccResourceInstanceCreate +=== RUN TestAccResourceInstanceCreate_templateErr +=== PAUSE TestAccResourceInstanceCreate_templateErr +=== RUN TestVmaasLBMonitorPlan +=== PAUSE TestVmaasLBMonitorPlan +=== RUN TestAccResourceLBMonitorCreate +=== PAUSE TestAccResourceLBMonitorCreate +=== RUN TestAccResourceLBMonitorCreate_monitorErr +=== PAUSE TestAccResourceLBMonitorCreate_monitorErr +=== RUN TestVmaasLBPoolPlan +=== PAUSE TestVmaasLBPoolPlan +=== RUN TestAccResourceLBPoolCreate +=== PAUSE TestAccResourceLBPoolCreate +=== RUN TestAccResourceLBPoolCreate_poolErr +=== PAUSE TestAccResourceLBPoolCreate_poolErr +=== RUN TestVmaasLBProfilePlan +=== PAUSE TestVmaasLBProfilePlan +=== RUN TestAccResourceLBProfileCreate +=== PAUSE TestAccResourceLBProfileCreate +=== RUN TestAccResourceLBProfileCreate_profileErr +=== PAUSE TestAccResourceLBProfileCreate_profileErr +=== RUN TestVmaasLoadBalancerPlan +=== PAUSE TestVmaasLoadBalancerPlan +=== RUN TestAccResourceLoadBalancerCreate +=== PAUSE TestAccResourceLoadBalancerCreate +=== RUN TestVmaasNetworkPlan +=== PAUSE TestVmaasNetworkPlan +=== RUN TestAccResourceNetworkCreate +=== PAUSE TestAccResourceNetworkCreate +=== RUN TestVmaasRouteBGPNeighborPlan +=== PAUSE TestVmaasRouteBGPNeighborPlan +=== RUN TestAccResourceRouterBGPNeighborCreate +=== PAUSE TestAccResourceRouterBGPNeighborCreate +=== RUN TestVmaasRouterNatPlan +=== PAUSE TestVmaasRouterNatPlan +=== RUN TestAccResourceRouterNatCreate +=== PAUSE TestAccResourceRouterNatCreate +=== RUN TestVmaasRouterRoutePlan +=== PAUSE TestVmaasRouterRoutePlan +=== RUN TestAccResourceRouterRouteCreate +=== PAUSE TestAccResourceRouterRouteCreate +=== RUN TestVmaasRouterTier0Plan +=== PAUSE TestVmaasRouterTier0Plan +=== RUN TestAccResourceTier0RouterCreate +=== PAUSE TestAccResourceTier0RouterCreate +=== RUN TestVmaasRouterTier1Plan +=== PAUSE TestVmaasRouterTier1Plan +=== RUN TestAccResourceTier1RouterCreate +=== PAUSE TestAccResourceTier1RouterCreate +=== RUN TestVmaasLBVirtualServerPlan +=== PAUSE TestVmaasLBVirtualServerPlan +=== RUN TestAccResourceLBVirtualServerCreate +=== PAUSE TestAccResourceLBVirtualServerCreate +=== CONT TestAccDataSourceCloudFolder +--- PASS: TestAccDataSourceCloudFolder (382.57s) +=== CONT TestVmaasRouterTier0Plan +--- PASS: TestVmaasRouterTier0Plan (135.13s) +=== CONT TestAccResourceLBVirtualServerCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: got success = 'false while creating loadBalancerVirtualServer Virtual Servers + + with hpegl_vmaas_load_balancer_virtual_server.tf_load_balancer_virtual_server, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server": + 8: resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server" { + +--- FAIL: TestAccResourceLBVirtualServerCreate (134.52s) [NOT Able to] +=== CONT TestVmaasLBVirtualServerPlan +--- PASS: TestVmaasLBVirtualServerPlan (136.44s) +=== CONT TestAccResourceTier1RouterCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the router-type with the specified name. Please verify the name and try again + + with hpegl_vmaas_router.tf_router, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": + 8: resource "hpegl_vmaas_router" "tf_router" { + +--- FAIL: TestAccResourceTier1RouterCreate (137.88s) [PASSED] +=== CONT TestVmaasRouterTier1Plan +--- PASS: TestVmaasRouterTier1Plan (134.98s) +=== CONT TestAccResourceTier0RouterCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the router-type with the specified name. Please verify the name and try again + + with hpegl_vmaas_router.tf_router, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": + 8: resource "hpegl_vmaas_router" "tf_router" { + +--- FAIL: TestAccResourceTier0RouterCreate (135.08s) [PASSED] +=== CONT TestVmaasInstancePlan +--- PASS: TestVmaasInstancePlan (133.89s) +=== CONT TestAccResourceRouterRouteCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Next-hops [88.88.88.91] already exist for network 30.0.0.0/24.","success":false},"statuscode":400} + + with hpegl_vmaas_router_route.tf_router_route, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router_route" "tf_router_route": + 8: resource "hpegl_vmaas_router_route" "tf_router_route" { + +--- FAIL: TestAccResourceRouterRouteCreate (134.26s) [PASSED] +=== CONT TestVmaasRouterRoutePlan +--- PASS: TestVmaasRouterRoutePlan (133.63s) +=== CONT TestAccResourceRouterNatCreate +--- PASS: TestAccResourceRouterNatCreate (905.39s) +=== CONT TestVmaasRouterNatPlan +--- PASS: TestVmaasRouterNatPlan (136.57s) +=== CONT TestAccResourceRouterBGPNeighborCreate +--- PASS: TestAccResourceRouterBGPNeighborCreate (541.99s) +=== CONT TestVmaasRouteBGPNeighborPlan +--- PASS: TestVmaasRouteBGPNeighborPlan (135.50s) +=== CONT TestAccResourceNetworkCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: error, could not find the network type with the specified name. Please verify the name and try again + + with hpegl_vmaas_network.tf_network, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_network" "tf_network": + 8: resource "hpegl_vmaas_network" "tf_network" { + +--- FAIL: TestAccResourceNetworkCreate (135.46s) [PASSED] +=== CONT TestVmaasNetworkPlan +--- PASS: TestVmaasNetworkPlan (134.08s) +=== CONT TestAccResourceLoadBalancerCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"errors":{"type":"type not found"},"msg":"error saving load balancer","success":false},"statuscode":400} + + with hpegl_vmaas_load_balancer.tf_load_balancer, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer" "tf_load_balancer": + 8: resource "hpegl_vmaas_load_balancer" "tf_load_balancer" { + +--- FAIL: TestAccResourceLoadBalancerCreate (170.61s) +=== CONT TestVmaasLoadBalancerPlan +--- PASS: TestVmaasLoadBalancerPlan (134.94s) +=== CONT TestAccResourceLBProfileCreate_profileErr +--- PASS: TestAccResourceLBProfileCreate_profileErr (33.27s) +=== CONT TestAccResourceLBProfileCreate + acc.go:57: Step 4/8 error: Error running apply: exit status 1 + + Error: maximum retry limit reached, with Error: {"body":{"msg":"Errors validating path=[/infra/lb-persistence-profiles/9b00dca8-4a1f-47a9-8051-7688a0830c26].\n Cookie domain domain1 is invalid.","success":false},"statuscode":400}, Response: models.CreateLBProfileResp{Success:false, LBProfileResp:models.LBProfileResp{ID:0, Name:"", Category:"", ServiceType:"", ServiceTypeDisplay:"", Visibility:"", Description:"", InternalID:"", ExternalID:"", Enabled:false, InsertXforwardedFor:false, Editable:false, LBProfileConfig:models.profileConfig{HTTPIdleTimeout:0, ResponseHeaderSize:0, SharePersistence:false, RequestHeaderSize:0, HaPersistenceMirroring:false, PreferServerCipher:false, ProfileType:"", CookieGarbling:false, NtlmAuthentication:false, HaFlowMirroring:false, SessionCache:false, CookieFallback:false, ResponseTimeout:0, PurgeEntries:false, ConnectionCloseTimeout:0, FastTCPIdleTimeout:0}}} + + with hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": + 8: resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { + +--- FAIL: TestAccResourceLBProfileCreate (1597.47s) +=== CONT TestVmaasLBProfilePlan +--- PASS: TestVmaasLBProfilePlan (135.41s) +=== CONT TestAccResourceLBPoolCreate_poolErr +--- PASS: TestAccResourceLBPoolCreate_poolErr (133.68s) +=== CONT TestAccResourceLBPoolCreate + acc.go:57: Step 1/1 error: Error running apply: exit status 1 + + Error: {"body":{"msg":"Errors validating path=[/infra/lb-pools/abe9ef35-bc46-42a3-8748-175394fedee5].\n The path=[/infra/domains/default/groups/Application-Group] is invalid","success":false},"statuscode":400} + + with hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, + on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": + 8: resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { + +--- FAIL: TestAccResourceLBPoolCreate (134.36s) +=== CONT TestVmaasLBPoolPlan +--- PASS: TestVmaasLBPoolPlan (134.53s) +=== CONT TestAccResourceLBMonitorCreate_monitorErr +--- PASS: TestAccResourceLBMonitorCreate_monitorErr (34.31s) +=== CONT TestAccResourceLBMonitorCreate +--- PASS: TestAccResourceLBMonitorCreate (2476.28s) +=== CONT TestVmaasLBMonitorPlan +--- PASS: TestVmaasLBMonitorPlan (134.30s) +=== CONT TestAccResourceInstanceCreate_templateErr +--- PASS: TestAccResourceInstanceCreate_templateErr (34.31s) +=== CONT TestAccResourceInstanceCreate +--- PASS: TestAccResourceInstanceCreate (669.16s) +=== CONT TestAccDataSourceNetworkInterface +--- PASS: TestAccDataSourceNetworkInterface (514.19s) +=== CONT TestAccResourceInstanceCloneCreate +--- PASS: TestAccResourceInstanceCloneCreate (682.84s) +=== CONT TestVmaasInstanceClonePlan +--- PASS: TestVmaasInstanceClonePlan (132.42s) +=== CONT TestAccDataSourceTemplate +--- PASS: TestAccDataSourceTemplate (435.46s) +=== CONT TestAccDataSourceResourcePool +--- PASS: TestAccDataSourceResourcePool (442.00s) +=== CONT TestAccDataSourcePowerSchedule +--- PASS: TestAccDataSourcePowerSchedule (433.98s) +=== CONT TestAccDataSourcePlan +--- PASS: TestAccDataSourcePlan (433.40s) +=== CONT TestAccDataSourceNetwork +--- PASS: TestAccDataSourceNetwork (436.75s) +=== CONT TestAccDataSourceNetworkType +--- PASS: TestAccDataSourceNetworkType (438.87s) +=== CONT TestAccDataSourceNetworkProxy +--- PASS: TestAccDataSourceNetworkProxy (434.41s) +=== CONT TestAccDataSourceNetworkPool +--- PASS: TestAccDataSourceNetworkPool (436.92s) +=== CONT TestAccDataSourceLBProfile +--- PASS: TestAccDataSourceLBProfile (1658.32s) +=== CONT TestAccDataSourceNetworkDomain +--- PASS: TestAccDataSourceNetworkDomain (435.46s) +=== CONT TestAccDataSourceLoadBalancer +--- PASS: TestAccDataSourceLoadBalancer (434.80s) +=== CONT TestAccDataSourceLBPool +--- PASS: TestAccDataSourceLBPool (438.72s) +=== CONT TestAccDataSourceLBMonitor +--- PASS: TestAccDataSourceLBMonitor (437.12s) +=== CONT TestAccDataSourceNetworkEdgeCluster + acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 + + Error: error, could not find the network server with the specified name. Please verify the name and try again + + with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, + on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": + 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { + +--- FAIL: TestAccDataSourceNetworkEdgeCluster (66.01s) [PASSED] +=== CONT TestAccDataSourceGroup +--- PASS: TestAccDataSourceGroup (434.64s) +=== CONT TestAccDataSourceEnvironment +--- PASS: TestAccDataSourceEnvironment (439.19s) +=== CONT TestAccDataSourceDataStore +--- PASS: TestAccDataSourceDataStore (437.71s) +=== CONT TestAccDataSourceCloud +--- PASS: TestAccDataSourceCloud (432.69s) +=== CONT TestAccDataSourceLayout +--- PASS: TestAccDataSourceLayout (436.21s) +FAIL + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements +FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 19882.131s +FAIL +=== RUN TestAccResourceRouterRouteCreate +=== PAUSE TestAccResourceRouterRouteCreate +=== CONT TestAccResourceRouterRouteCreate +--- PASS: TestAccResourceRouterRouteCreate (482.81s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 482.821s coverage: 72.0% of statements + +=== RUN TestAccDataSourceNetworkEdgeCluster +=== PAUSE TestAccDataSourceNetworkEdgeCluster +=== CONT TestAccDataSourceNetworkEdgeCluster +--- PASS: TestAccDataSourceNetworkEdgeCluster (511.32s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 64.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 511.328s coverage: 64.0% of statements +=== RUN TestAccResourceTier1RouterCreate +=== PAUSE TestAccResourceTier1RouterCreate +=== CONT TestAccResourceTier1RouterCreate +--- PASS: TestAccResourceTier1RouterCreate (545.10s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 545.114s coverage: 72.0% of statements +=== RUN TestAccResourceTier0RouterCreate +=== PAUSE TestAccResourceTier0RouterCreate +=== CONT TestAccResourceTier0RouterCreate +--- PASS: TestAccResourceTier0RouterCreate (578.03s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 578.038s coverage: 72.0% of statements +=== RUN TestAccResourceNetworkCreate +=== PAUSE TestAccResourceNetworkCreate +=== CONT TestAccResourceNetworkCreate +--- PASS: TestAccResourceNetworkCreate (475.91s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 68.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 475.923s coverage: 68.0% of statements +=== RUN TestAccResourceLBProfileCreate +=== PAUSE TestAccResourceLBProfileCreate +=== CONT TestAccResourceLBProfileCreate From 20090114c03912430a89e71493e5d8c06d1e71c9 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Wed, 22 Nov 2023 23:01:23 +0530 Subject: [PATCH 2/9] name fix --- acc-testcases/data-sources/nsx-tier1.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acc-testcases/data-sources/nsx-tier1.yaml b/acc-testcases/data-sources/nsx-tier1.yaml index cd1ee7ed..1aff72eb 100644 --- a/acc-testcases/data-sources/nsx-tier1.yaml +++ b/acc-testcases/data-sources/nsx-tier1.yaml @@ -1,5 +1,5 @@ acc: - config: | - name = "Router_DONT_DELETE_USED_FOR_IAAC" + name = "Router_DONT_DELETE_USED_FOR_IAC" validations: json.networkRouter.providerId: "/infra/tier-1s/d3561ba7-01c9-4fa7-a7c5-bac401fd8f75" \ No newline at end of file From 34f17411abd7600d8d84fad3e92b0953b7853f10 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Wed, 22 Nov 2023 23:15:53 +0530 Subject: [PATCH 3/9] fix --- acc-dev-testcases/resources/load_balancer_pool.yaml | 4 ++-- tf_log2.txt | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/acc-dev-testcases/resources/load_balancer_pool.yaml b/acc-dev-testcases/resources/load_balancer_pool.yaml index f2daab44..af90ec7e 100644 --- a/acc-dev-testcases/resources/load_balancer_pool.yaml +++ b/acc-dev-testcases/resources/load_balancer_pool.yaml @@ -14,11 +14,11 @@ acc: tcp_multiplexing = false tcp_multiplexing_number = 6 member_group { - group = "/infra/domains/default/groups/Application-Group" + group = "/infra/lb-pools/d3995b17-e10f-46bb-8d2b-82b42d153452" max_ip_list_size = 1 ip_revision_filter = "IPV4" port = 80 } } validations: - json.loadBalancerPool.config.memberGroup.path: "/infra/domains/default/groups/Application-Group" \ No newline at end of file + json.loadBalancerPool.config.memberGroup.path: "/infra/lb-pools/d3995b17-e10f-46bb-8d2b-82b42d153452" \ No newline at end of file diff --git a/tf_log2.txt b/tf_log2.txt index d4995fd1..8991fdf0 100644 --- a/tf_log2.txt +++ b/tf_log2.txt @@ -197,7 +197,7 @@ on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": 8: resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { ---- FAIL: TestAccResourceLBProfileCreate (1597.47s) +--- FAIL: TestAccResourceLBProfileCreate (1597.47s) [PASSED] === CONT TestVmaasLBProfilePlan --- PASS: TestVmaasLBProfilePlan (135.41s) === CONT TestAccResourceLBPoolCreate_poolErr @@ -319,3 +319,10 @@ ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptan === RUN TestAccResourceLBProfileCreate === PAUSE TestAccResourceLBProfileCreate === CONT TestAccResourceLBProfileCreate +--- PASS: TestAccResourceLBProfileCreate (3242.10s) +PASS + github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 68.0% of statements +ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 3242.111s coverage: 68.0% of statements +=== RUN TestAccResourceLBPoolCreate +=== PAUSE TestAccResourceLBPoolCreate +=== CONT TestAccResourceLBPoolCreate From 46e86ef0f8b9e6823672c90c64578fc4365a2859 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:17:21 +0530 Subject: [PATCH 4/9] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c728d73..66bc022f 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ coverage: vendor ACC_TEST_FILE_LOCATION=github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test acceptance: @if [ "${case}" != "" ]; then \ - TF_ACC=true go test -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ + TF_ACC=true go test -run $(case) -v -timeout=2000s -cover $(ACC_TEST_FILE_LOCATION); \ else \ TF_ACC=true go test -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION) -parallel 1;\ fi From f90f4b84c6982a0a2efde86d54c63a98d3f4c581 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:17:50 +0530 Subject: [PATCH 5/9] Update data_source_edge_cluster_test.go --- internal/acceptance_test/data_source_edge_cluster_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/acceptance_test/data_source_edge_cluster_test.go b/internal/acceptance_test/data_source_edge_cluster_test.go index 5317ce00..d861cebf 100644 --- a/internal/acceptance_test/data_source_edge_cluster_test.go +++ b/internal/acceptance_test/data_source_edge_cluster_test.go @@ -31,7 +31,7 @@ func TestAccDataSourceNetworkEdgeCluster(t *testing.T) { return nil, err } for i, n := range ServerResp.NetworkServices { - if n.TypeName == "NSX" { + if n.TypeName == "NSX-T" { serverID = ServerResp.NetworkServices[i].ID break From c03574db7fd2771cbd20deb53e9a261679ca6603 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:22:44 +0530 Subject: [PATCH 6/9] Update constants.go --- internal/cmp/constants.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cmp/constants.go b/internal/cmp/constants.go index 57558b22..ab708104 100644 --- a/internal/cmp/constants.go +++ b/internal/cmp/constants.go @@ -6,8 +6,8 @@ import "time" const ( vmware = "vmware" - nsxtSegment = "NSX Segment" - nsxt = "NSX" + nsxtSegment = "NSX-T Segment" + nsxt = "NSX-T" errExactMatch = "error, could not find the %s with the specified name. Please verify the name and try again" successErr = "got success = 'false while %s" // query params keys @@ -20,8 +20,8 @@ const ( // retry related constants maxTimeout = time.Hour * 2 // router consts - tier0GatewayType = "NSX Tier-0 Gateway" - tier1GatewayType = "NSX Tier-1 Gateway" + tier0GatewayType = "NSX-T Tier-0 Gateway" + tier1GatewayType = "NSX-T Tier-1 Gateway" routerFirewallExternalPolicy = "GatewayPolicy" syncedTypeValue = "Synced" From a2682011f924cea1766fcd695a556fdf7d383a6c Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:23:06 +0530 Subject: [PATCH 7/9] Delete tf_log.txt --- tf_log.txt | 351 ----------------------------------------------------- 1 file changed, 351 deletions(-) delete mode 100644 tf_log.txt diff --git a/tf_log.txt b/tf_log.txt deleted file mode 100644 index d4e749f9..00000000 --- a/tf_log.txt +++ /dev/null @@ -1,351 +0,0 @@ -=== RUN TestAccDataSourceCloudFolder -=== PAUSE TestAccDataSourceCloudFolder -=== RUN TestAccDataSourceCloud -=== PAUSE TestAccDataSourceCloud -=== RUN TestAccDataSourceDataStore -=== PAUSE TestAccDataSourceDataStore -=== RUN TestAccDataSourceNetworkEdgeCluster -=== PAUSE TestAccDataSourceNetworkEdgeCluster -=== RUN TestAccDataSourceEnvironment -=== PAUSE TestAccDataSourceEnvironment -=== RUN TestAccDataSourceGroup -=== PAUSE TestAccDataSourceGroup -=== RUN TestAccDataSourceLayout -=== PAUSE TestAccDataSourceLayout -=== RUN TestAccDataSourceLBMonitor -=== PAUSE TestAccDataSourceLBMonitor -=== RUN TestAccDataSourceLBPool -=== PAUSE TestAccDataSourceLBPool -=== RUN TestAccDataSourceLBProfile -=== PAUSE TestAccDataSourceLBProfile -=== RUN TestAccDataSourceLoadBalancer -=== PAUSE TestAccDataSourceLoadBalancer -=== RUN TestAccDataSourceNetworkDomain -=== PAUSE TestAccDataSourceNetworkDomain -=== RUN TestAccDataSourceNetworkInterface -=== PAUSE TestAccDataSourceNetworkInterface -=== RUN TestAccDataSourceNetworkPool -=== PAUSE TestAccDataSourceNetworkPool -=== RUN TestAccDataSourceNetworkProxy -=== PAUSE TestAccDataSourceNetworkProxy -=== RUN TestAccDataSourceNetworkType -=== PAUSE TestAccDataSourceNetworkType -=== RUN TestAccDataSourceNetwork -=== PAUSE TestAccDataSourceNetwork -=== RUN TestAccDataSourcePlan -=== PAUSE TestAccDataSourcePlan -=== RUN TestAccDataSourcePowerSchedule -=== PAUSE TestAccDataSourcePowerSchedule -=== RUN TestAccDataSourceResourcePool -=== PAUSE TestAccDataSourceResourcePool -=== RUN TestAccDataSourceTemplate -=== PAUSE TestAccDataSourceTemplate -=== RUN TestProvider ---- PASS: TestProvider (0.01s) -=== RUN TestVmaasInstanceClonePlan -=== PAUSE TestVmaasInstanceClonePlan -=== RUN TestAccResourceInstanceCloneCreate -=== PAUSE TestAccResourceInstanceCloneCreate -=== RUN TestVmaasInstancePlan -=== PAUSE TestVmaasInstancePlan -=== RUN TestAccResourceInstanceCreate -=== PAUSE TestAccResourceInstanceCreate -=== RUN TestAccResourceInstanceCreate_templateErr -=== PAUSE TestAccResourceInstanceCreate_templateErr -=== RUN TestVmaasLBMonitorPlan -=== PAUSE TestVmaasLBMonitorPlan -=== RUN TestAccResourceLBMonitorCreate -=== PAUSE TestAccResourceLBMonitorCreate -=== RUN TestAccResourceLBMonitorCreate_monitorErr -=== PAUSE TestAccResourceLBMonitorCreate_monitorErr -=== RUN TestVmaasLBPoolPlan -=== PAUSE TestVmaasLBPoolPlan -=== RUN TestAccResourceLBPoolCreate -=== PAUSE TestAccResourceLBPoolCreate -=== RUN TestAccResourceLBPoolCreate_poolErr -=== PAUSE TestAccResourceLBPoolCreate_poolErr -=== RUN TestVmaasLBProfilePlan -=== PAUSE TestVmaasLBProfilePlan -=== RUN TestAccResourceLBProfileCreate -=== PAUSE TestAccResourceLBProfileCreate -=== RUN TestAccResourceLBProfileCreate_profileErr -=== PAUSE TestAccResourceLBProfileCreate_profileErr -=== RUN TestVmaasLoadBalancerPlan -=== PAUSE TestVmaasLoadBalancerPlan -=== RUN TestAccResourceLoadBalancerCreate -=== PAUSE TestAccResourceLoadBalancerCreate -=== RUN TestVmaasNetworkPlan -=== PAUSE TestVmaasNetworkPlan -=== RUN TestAccResourceNetworkCreate -=== PAUSE TestAccResourceNetworkCreate -=== RUN TestVmaasRouteBGPNeighborPlan -=== PAUSE TestVmaasRouteBGPNeighborPlan -=== RUN TestAccResourceRouterBGPNeighborCreate -=== PAUSE TestAccResourceRouterBGPNeighborCreate -=== RUN TestVmaasRouterNatPlan -=== PAUSE TestVmaasRouterNatPlan -=== RUN TestAccResourceRouterNatCreate -=== PAUSE TestAccResourceRouterNatCreate -=== RUN TestVmaasRouterRoutePlan -=== PAUSE TestVmaasRouterRoutePlan -=== RUN TestAccResourceRouterRouteCreate -=== PAUSE TestAccResourceRouterRouteCreate -=== RUN TestVmaasRouterTier0Plan -=== PAUSE TestVmaasRouterTier0Plan -=== RUN TestAccResourceTier0RouterCreate -=== PAUSE TestAccResourceTier0RouterCreate -=== RUN TestVmaasRouterTier1Plan -=== PAUSE TestVmaasRouterTier1Plan -=== RUN TestAccResourceTier1RouterCreate -=== PAUSE TestAccResourceTier1RouterCreate -=== RUN TestVmaasLBVirtualServerPlan -=== PAUSE TestVmaasLBVirtualServerPlan -=== RUN TestAccResourceLBVirtualServerCreate -=== PAUSE TestAccResourceLBVirtualServerCreate -=== CONT TestAccDataSourceCloudFolder ---- PASS: TestAccDataSourceCloudFolder (379.34s) -=== CONT TestVmaasLBMonitorPlan ---- PASS: TestVmaasLBMonitorPlan (136.12s) -=== CONT TestAccResourceLBVirtualServerCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with hpegl_vmaas_load_balancer_virtual_server.tf_load_balancer_virtual_server, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server": - 8: resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server" { - ---- FAIL: TestAccResourceLBVirtualServerCreate (135.13s) -=== CONT TestVmaasLBVirtualServerPlan ---- PASS: TestVmaasLBVirtualServerPlan (134.83s) -=== CONT TestAccResourceTier1RouterCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the router-type with the specified name. Please verify the name and try again - - with hpegl_vmaas_router.tf_router, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": - 8: resource "hpegl_vmaas_router" "tf_router" { - ---- FAIL: TestAccResourceTier1RouterCreate (133.84s) -=== CONT TestVmaasRouterTier1Plan ---- PASS: TestVmaasRouterTier1Plan (134.97s) -=== CONT TestAccResourceTier0RouterCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the router-type with the specified name. Please verify the name and try again - - with hpegl_vmaas_router.tf_router, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": - 8: resource "hpegl_vmaas_router" "tf_router" { - ---- FAIL: TestAccResourceTier0RouterCreate (136.02s) -=== CONT TestVmaasRouterTier0Plan ---- PASS: TestVmaasRouterTier0Plan (133.80s) -=== CONT TestAccResourceRouterRouteCreate - testing_new.go:84: Error running post-test destroy, there may be dangling resources: exit status 1 - - Error: {"body":{"msg":"Route not found with id 6","success":false},"statuscode":404} - ---- FAIL: TestAccResourceRouterRouteCreate (471.15s) -=== CONT TestVmaasRouterRoutePlan ---- PASS: TestVmaasRouterRoutePlan (134.81s) -=== CONT TestAccResourceRouterNatCreate ---- PASS: TestAccResourceRouterNatCreate (914.87s) -=== CONT TestVmaasRouterNatPlan ---- PASS: TestVmaasRouterNatPlan (135.93s) -=== CONT TestAccResourceRouterBGPNeighborCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"BGP not supported for NSX Tier-1 Gateway","success":false},"statuscode":400} - - with hpegl_vmaas_router_bgp_neighbor.tf_router_bgp_neighbor, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router_bgp_neighbor" "tf_router_bgp_neighbor": - 8: resource "hpegl_vmaas_router_bgp_neighbor" "tf_router_bgp_neighbor" { - ---- FAIL: TestAccResourceRouterBGPNeighborCreate (134.65s) -=== CONT TestVmaasRouteBGPNeighborPlan ---- PASS: TestVmaasRouteBGPNeighborPlan (136.50s) -=== CONT TestAccResourceNetworkCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the network type with the specified name. Please verify the name and try again - - with hpegl_vmaas_network.tf_network, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_network" "tf_network": - 8: resource "hpegl_vmaas_network" "tf_network" { - ---- FAIL: TestAccResourceNetworkCreate (135.33s) -=== CONT TestVmaasNetworkPlan ---- PASS: TestVmaasNetworkPlan (134.72s) -=== CONT TestAccResourceLoadBalancerCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"errors":{"type":"type not found"},"msg":"error saving load balancer","success":false},"statuscode":400} - - with hpegl_vmaas_load_balancer.tf_load_balancer, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer" "tf_load_balancer": - 8: resource "hpegl_vmaas_load_balancer" "tf_load_balancer" { - ---- FAIL: TestAccResourceLoadBalancerCreate (168.61s) -=== CONT TestVmaasLoadBalancerPlan ---- PASS: TestVmaasLoadBalancerPlan (135.28s) -=== CONT TestAccResourceLBProfileCreate_profileErr ---- PASS: TestAccResourceLBProfileCreate_profileErr (34.19s) -=== CONT TestAccResourceLBProfileCreate - acc.go:57: Step 1/8 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": - 8: resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { - ---- FAIL: TestAccResourceLBProfileCreate (137.76s) -=== CONT TestVmaasLBProfilePlan ---- PASS: TestVmaasLBProfilePlan (141.91s) -=== CONT TestAccResourceLBPoolCreate_poolErr ---- PASS: TestAccResourceLBPoolCreate_poolErr (141.86s) -=== CONT TestAccResourceLBPoolCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": - 8: resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { - ---- FAIL: TestAccResourceLBPoolCreate (138.23s) -=== CONT TestVmaasLBPoolPlan ---- PASS: TestVmaasLBPoolPlan (138.27s) -=== CONT TestAccResourceLBMonitorCreate_monitorErr ---- PASS: TestAccResourceLBMonitorCreate_monitorErr (34.06s) -=== CONT TestAccResourceLBMonitorCreate - acc.go:57: Step 1/6 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with hpegl_vmaas_load_balancer_monitor.tf_load_balancer_monitor, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor": - 8: resource "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor" { - ---- FAIL: TestAccResourceLBMonitorCreate (136.47s) -=== CONT TestAccDataSourceNetworkPool ---- PASS: TestAccDataSourceNetworkPool (445.54s) -=== CONT TestAccResourceInstanceCreate_templateErr ---- PASS: TestAccResourceInstanceCreate_templateErr (33.74s) -=== CONT TestAccResourceInstanceCreate ---- PASS: TestAccResourceInstanceCreate (672.52s) -=== CONT TestVmaasInstancePlan ---- PASS: TestVmaasInstancePlan (135.77s) -=== CONT TestAccResourceInstanceCloneCreate ---- PASS: TestAccResourceInstanceCloneCreate (685.24s) -=== CONT TestVmaasInstanceClonePlan ---- PASS: TestVmaasInstanceClonePlan (132.72s) -=== CONT TestAccDataSourceTemplate ---- PASS: TestAccDataSourceTemplate (436.28s) -=== CONT TestAccDataSourceResourcePool ---- PASS: TestAccDataSourceResourcePool (434.79s) -=== CONT TestAccDataSourcePowerSchedule ---- PASS: TestAccDataSourcePowerSchedule (436.15s) -=== CONT TestAccDataSourcePlan ---- PASS: TestAccDataSourcePlan (442.69s) -=== CONT TestAccDataSourceNetwork ---- PASS: TestAccDataSourceNetwork (441.85s) -=== CONT TestAccDataSourceNetworkType - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: error, could not find the network-type with the specified name. Please verify the name and try again - - with data.hpegl_vmaas_network_type.tf_network_type, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_network_type" "tf_network_type": - 8: data "hpegl_vmaas_network_type" "tf_network_type" { - ---- FAIL: TestAccDataSourceNetworkType (67.51s) -=== CONT TestAccDataSourceNetworkProxy ---- PASS: TestAccDataSourceNetworkProxy (446.47s) -=== CONT TestAccDataSourceLBMonitor - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with data.hpegl_vmaas_load_balancer_monitor.tf_load_balancer_monitor, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor": - 8: data "hpegl_vmaas_load_balancer_monitor" "tf_load_balancer_monitor" { - ---- FAIL: TestAccDataSourceLBMonitor (67.72s) -=== CONT TestAccDataSourceNetworkInterface ---- PASS: TestAccDataSourceNetworkInterface (624.28s) -=== CONT TestAccDataSourceNetworkDomain ---- PASS: TestAccDataSourceNetworkDomain (447.03s) -=== CONT TestAccDataSourceLoadBalancer - acc.go:42: Step 1/1 error: Check failed: Check 1/1 error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} ---- FAIL: TestAccDataSourceLoadBalancer (236.86s) -=== CONT TestAccDataSourceLBProfile - acc.go:42: Step 1/4 error: Error running pre-apply refresh: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with data.hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": - 8: data "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { - ---- FAIL: TestAccDataSourceLBProfile (67.45s) -=== CONT TestAccDataSourceLBPool - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: {"body":{"msg":"Load Balancer not found with id 15","success":false},"statuscode":404} - - with data.hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": - 8: data "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { - ---- FAIL: TestAccDataSourceLBPool (66.99s) -=== CONT TestAccDataSourceEnvironment ---- PASS: TestAccDataSourceEnvironment (443.25s) -=== CONT TestAccDataSourceLayout ---- PASS: TestAccDataSourceLayout (453.30s) -=== CONT TestAccDataSourceGroup - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: error, could not find the group with the specified name. Please verify the name and try again - - with data.hpegl_vmaas_group.tf_group, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_group" "tf_group": - 8: data "hpegl_vmaas_group" "tf_group" { - ---- FAIL: TestAccDataSourceGroup (71.15s) -=== CONT TestAccDataSourceDataStore ---- PASS: TestAccDataSourceDataStore (449.44s) -=== CONT TestAccDataSourceNetworkEdgeCluster - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: error, could not find the network server with the specified name. Please verify the name and try again - - with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": - 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { - ---- FAIL: TestAccDataSourceNetworkEdgeCluster (66.44s) -=== CONT TestAccDataSourceCloud ---- PASS: TestAccDataSourceCloud (437.60s) -FAIL - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements -FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 12971.464s -FAIL -=== RUN TestAccDataSourceNetworkEdgeCluster -=== PAUSE TestAccDataSourceNetworkEdgeCluster -=== CONT TestAccDataSourceNetworkEdgeCluster - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: error, could not find the network server with the specified name. Please verify the name and try again - - with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": - 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { - ---- FAIL: TestAccDataSourceNetworkEdgeCluster (11.22s) -FAIL - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 0.0% of statements -FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 11.239s -FAIL From e9f8a1636fb7a3e2632145f8a82716792116b6f5 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:23:26 +0530 Subject: [PATCH 8/9] Delete tf_log2.txt --- tf_log2.txt | 328 ---------------------------------------------------- 1 file changed, 328 deletions(-) delete mode 100644 tf_log2.txt diff --git a/tf_log2.txt b/tf_log2.txt deleted file mode 100644 index 8991fdf0..00000000 --- a/tf_log2.txt +++ /dev/null @@ -1,328 +0,0 @@ -=== RUN TestAccDataSourceCloudFolder -=== PAUSE TestAccDataSourceCloudFolder -=== RUN TestAccDataSourceCloud -=== PAUSE TestAccDataSourceCloud -=== RUN TestAccDataSourceDataStore -=== PAUSE TestAccDataSourceDataStore -=== RUN TestAccDataSourceNetworkEdgeCluster -=== PAUSE TestAccDataSourceNetworkEdgeCluster -=== RUN TestAccDataSourceEnvironment -=== PAUSE TestAccDataSourceEnvironment -=== RUN TestAccDataSourceGroup -=== PAUSE TestAccDataSourceGroup -=== RUN TestAccDataSourceLayout -=== PAUSE TestAccDataSourceLayout -=== RUN TestAccDataSourceLBMonitor -=== PAUSE TestAccDataSourceLBMonitor -=== RUN TestAccDataSourceLBPool -=== PAUSE TestAccDataSourceLBPool -=== RUN TestAccDataSourceLBProfile -=== PAUSE TestAccDataSourceLBProfile -=== RUN TestAccDataSourceLoadBalancer -=== PAUSE TestAccDataSourceLoadBalancer -=== RUN TestAccDataSourceNetworkDomain -=== PAUSE TestAccDataSourceNetworkDomain -=== RUN TestAccDataSourceNetworkInterface -=== PAUSE TestAccDataSourceNetworkInterface -=== RUN TestAccDataSourceNetworkPool -=== PAUSE TestAccDataSourceNetworkPool -=== RUN TestAccDataSourceNetworkProxy -=== PAUSE TestAccDataSourceNetworkProxy -=== RUN TestAccDataSourceNetworkType -=== PAUSE TestAccDataSourceNetworkType -=== RUN TestAccDataSourceNetwork -=== PAUSE TestAccDataSourceNetwork -=== RUN TestAccDataSourcePlan -=== PAUSE TestAccDataSourcePlan -=== RUN TestAccDataSourcePowerSchedule -=== PAUSE TestAccDataSourcePowerSchedule -=== RUN TestAccDataSourceResourcePool -=== PAUSE TestAccDataSourceResourcePool -=== RUN TestAccDataSourceTemplate -=== PAUSE TestAccDataSourceTemplate -=== RUN TestProvider ---- PASS: TestProvider (0.00s) -=== RUN TestVmaasInstanceClonePlan -=== PAUSE TestVmaasInstanceClonePlan -=== RUN TestAccResourceInstanceCloneCreate -=== PAUSE TestAccResourceInstanceCloneCreate -=== RUN TestVmaasInstancePlan -=== PAUSE TestVmaasInstancePlan -=== RUN TestAccResourceInstanceCreate -=== PAUSE TestAccResourceInstanceCreate -=== RUN TestAccResourceInstanceCreate_templateErr -=== PAUSE TestAccResourceInstanceCreate_templateErr -=== RUN TestVmaasLBMonitorPlan -=== PAUSE TestVmaasLBMonitorPlan -=== RUN TestAccResourceLBMonitorCreate -=== PAUSE TestAccResourceLBMonitorCreate -=== RUN TestAccResourceLBMonitorCreate_monitorErr -=== PAUSE TestAccResourceLBMonitorCreate_monitorErr -=== RUN TestVmaasLBPoolPlan -=== PAUSE TestVmaasLBPoolPlan -=== RUN TestAccResourceLBPoolCreate -=== PAUSE TestAccResourceLBPoolCreate -=== RUN TestAccResourceLBPoolCreate_poolErr -=== PAUSE TestAccResourceLBPoolCreate_poolErr -=== RUN TestVmaasLBProfilePlan -=== PAUSE TestVmaasLBProfilePlan -=== RUN TestAccResourceLBProfileCreate -=== PAUSE TestAccResourceLBProfileCreate -=== RUN TestAccResourceLBProfileCreate_profileErr -=== PAUSE TestAccResourceLBProfileCreate_profileErr -=== RUN TestVmaasLoadBalancerPlan -=== PAUSE TestVmaasLoadBalancerPlan -=== RUN TestAccResourceLoadBalancerCreate -=== PAUSE TestAccResourceLoadBalancerCreate -=== RUN TestVmaasNetworkPlan -=== PAUSE TestVmaasNetworkPlan -=== RUN TestAccResourceNetworkCreate -=== PAUSE TestAccResourceNetworkCreate -=== RUN TestVmaasRouteBGPNeighborPlan -=== PAUSE TestVmaasRouteBGPNeighborPlan -=== RUN TestAccResourceRouterBGPNeighborCreate -=== PAUSE TestAccResourceRouterBGPNeighborCreate -=== RUN TestVmaasRouterNatPlan -=== PAUSE TestVmaasRouterNatPlan -=== RUN TestAccResourceRouterNatCreate -=== PAUSE TestAccResourceRouterNatCreate -=== RUN TestVmaasRouterRoutePlan -=== PAUSE TestVmaasRouterRoutePlan -=== RUN TestAccResourceRouterRouteCreate -=== PAUSE TestAccResourceRouterRouteCreate -=== RUN TestVmaasRouterTier0Plan -=== PAUSE TestVmaasRouterTier0Plan -=== RUN TestAccResourceTier0RouterCreate -=== PAUSE TestAccResourceTier0RouterCreate -=== RUN TestVmaasRouterTier1Plan -=== PAUSE TestVmaasRouterTier1Plan -=== RUN TestAccResourceTier1RouterCreate -=== PAUSE TestAccResourceTier1RouterCreate -=== RUN TestVmaasLBVirtualServerPlan -=== PAUSE TestVmaasLBVirtualServerPlan -=== RUN TestAccResourceLBVirtualServerCreate -=== PAUSE TestAccResourceLBVirtualServerCreate -=== CONT TestAccDataSourceCloudFolder ---- PASS: TestAccDataSourceCloudFolder (382.57s) -=== CONT TestVmaasRouterTier0Plan ---- PASS: TestVmaasRouterTier0Plan (135.13s) -=== CONT TestAccResourceLBVirtualServerCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: got success = 'false while creating loadBalancerVirtualServer Virtual Servers - - with hpegl_vmaas_load_balancer_virtual_server.tf_load_balancer_virtual_server, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server": - 8: resource "hpegl_vmaas_load_balancer_virtual_server" "tf_load_balancer_virtual_server" { - ---- FAIL: TestAccResourceLBVirtualServerCreate (134.52s) [NOT Able to] -=== CONT TestVmaasLBVirtualServerPlan ---- PASS: TestVmaasLBVirtualServerPlan (136.44s) -=== CONT TestAccResourceTier1RouterCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the router-type with the specified name. Please verify the name and try again - - with hpegl_vmaas_router.tf_router, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": - 8: resource "hpegl_vmaas_router" "tf_router" { - ---- FAIL: TestAccResourceTier1RouterCreate (137.88s) [PASSED] -=== CONT TestVmaasRouterTier1Plan ---- PASS: TestVmaasRouterTier1Plan (134.98s) -=== CONT TestAccResourceTier0RouterCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the router-type with the specified name. Please verify the name and try again - - with hpegl_vmaas_router.tf_router, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router" "tf_router": - 8: resource "hpegl_vmaas_router" "tf_router" { - ---- FAIL: TestAccResourceTier0RouterCreate (135.08s) [PASSED] -=== CONT TestVmaasInstancePlan ---- PASS: TestVmaasInstancePlan (133.89s) -=== CONT TestAccResourceRouterRouteCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Next-hops [88.88.88.91] already exist for network 30.0.0.0/24.","success":false},"statuscode":400} - - with hpegl_vmaas_router_route.tf_router_route, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_router_route" "tf_router_route": - 8: resource "hpegl_vmaas_router_route" "tf_router_route" { - ---- FAIL: TestAccResourceRouterRouteCreate (134.26s) [PASSED] -=== CONT TestVmaasRouterRoutePlan ---- PASS: TestVmaasRouterRoutePlan (133.63s) -=== CONT TestAccResourceRouterNatCreate ---- PASS: TestAccResourceRouterNatCreate (905.39s) -=== CONT TestVmaasRouterNatPlan ---- PASS: TestVmaasRouterNatPlan (136.57s) -=== CONT TestAccResourceRouterBGPNeighborCreate ---- PASS: TestAccResourceRouterBGPNeighborCreate (541.99s) -=== CONT TestVmaasRouteBGPNeighborPlan ---- PASS: TestVmaasRouteBGPNeighborPlan (135.50s) -=== CONT TestAccResourceNetworkCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: error, could not find the network type with the specified name. Please verify the name and try again - - with hpegl_vmaas_network.tf_network, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_network" "tf_network": - 8: resource "hpegl_vmaas_network" "tf_network" { - ---- FAIL: TestAccResourceNetworkCreate (135.46s) [PASSED] -=== CONT TestVmaasNetworkPlan ---- PASS: TestVmaasNetworkPlan (134.08s) -=== CONT TestAccResourceLoadBalancerCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"errors":{"type":"type not found"},"msg":"error saving load balancer","success":false},"statuscode":400} - - with hpegl_vmaas_load_balancer.tf_load_balancer, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer" "tf_load_balancer": - 8: resource "hpegl_vmaas_load_balancer" "tf_load_balancer" { - ---- FAIL: TestAccResourceLoadBalancerCreate (170.61s) -=== CONT TestVmaasLoadBalancerPlan ---- PASS: TestVmaasLoadBalancerPlan (134.94s) -=== CONT TestAccResourceLBProfileCreate_profileErr ---- PASS: TestAccResourceLBProfileCreate_profileErr (33.27s) -=== CONT TestAccResourceLBProfileCreate - acc.go:57: Step 4/8 error: Error running apply: exit status 1 - - Error: maximum retry limit reached, with Error: {"body":{"msg":"Errors validating path=[/infra/lb-persistence-profiles/9b00dca8-4a1f-47a9-8051-7688a0830c26].\n Cookie domain domain1 is invalid.","success":false},"statuscode":400}, Response: models.CreateLBProfileResp{Success:false, LBProfileResp:models.LBProfileResp{ID:0, Name:"", Category:"", ServiceType:"", ServiceTypeDisplay:"", Visibility:"", Description:"", InternalID:"", ExternalID:"", Enabled:false, InsertXforwardedFor:false, Editable:false, LBProfileConfig:models.profileConfig{HTTPIdleTimeout:0, ResponseHeaderSize:0, SharePersistence:false, RequestHeaderSize:0, HaPersistenceMirroring:false, PreferServerCipher:false, ProfileType:"", CookieGarbling:false, NtlmAuthentication:false, HaFlowMirroring:false, SessionCache:false, CookieFallback:false, ResponseTimeout:0, PurgeEntries:false, ConnectionCloseTimeout:0, FastTCPIdleTimeout:0}}} - - with hpegl_vmaas_load_balancer_profile.tf_load_balancer_profile, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile": - 8: resource "hpegl_vmaas_load_balancer_profile" "tf_load_balancer_profile" { - ---- FAIL: TestAccResourceLBProfileCreate (1597.47s) [PASSED] -=== CONT TestVmaasLBProfilePlan ---- PASS: TestVmaasLBProfilePlan (135.41s) -=== CONT TestAccResourceLBPoolCreate_poolErr ---- PASS: TestAccResourceLBPoolCreate_poolErr (133.68s) -=== CONT TestAccResourceLBPoolCreate - acc.go:57: Step 1/1 error: Error running apply: exit status 1 - - Error: {"body":{"msg":"Errors validating path=[/infra/lb-pools/abe9ef35-bc46-42a3-8748-175394fedee5].\n The path=[/infra/domains/default/groups/Application-Group] is invalid","success":false},"statuscode":400} - - with hpegl_vmaas_load_balancer_pool.tf_load_balancer_pool, - on terraform_plugin_test.tf line 8, in resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool": - 8: resource "hpegl_vmaas_load_balancer_pool" "tf_load_balancer_pool" { - ---- FAIL: TestAccResourceLBPoolCreate (134.36s) -=== CONT TestVmaasLBPoolPlan ---- PASS: TestVmaasLBPoolPlan (134.53s) -=== CONT TestAccResourceLBMonitorCreate_monitorErr ---- PASS: TestAccResourceLBMonitorCreate_monitorErr (34.31s) -=== CONT TestAccResourceLBMonitorCreate ---- PASS: TestAccResourceLBMonitorCreate (2476.28s) -=== CONT TestVmaasLBMonitorPlan ---- PASS: TestVmaasLBMonitorPlan (134.30s) -=== CONT TestAccResourceInstanceCreate_templateErr ---- PASS: TestAccResourceInstanceCreate_templateErr (34.31s) -=== CONT TestAccResourceInstanceCreate ---- PASS: TestAccResourceInstanceCreate (669.16s) -=== CONT TestAccDataSourceNetworkInterface ---- PASS: TestAccDataSourceNetworkInterface (514.19s) -=== CONT TestAccResourceInstanceCloneCreate ---- PASS: TestAccResourceInstanceCloneCreate (682.84s) -=== CONT TestVmaasInstanceClonePlan ---- PASS: TestVmaasInstanceClonePlan (132.42s) -=== CONT TestAccDataSourceTemplate ---- PASS: TestAccDataSourceTemplate (435.46s) -=== CONT TestAccDataSourceResourcePool ---- PASS: TestAccDataSourceResourcePool (442.00s) -=== CONT TestAccDataSourcePowerSchedule ---- PASS: TestAccDataSourcePowerSchedule (433.98s) -=== CONT TestAccDataSourcePlan ---- PASS: TestAccDataSourcePlan (433.40s) -=== CONT TestAccDataSourceNetwork ---- PASS: TestAccDataSourceNetwork (436.75s) -=== CONT TestAccDataSourceNetworkType ---- PASS: TestAccDataSourceNetworkType (438.87s) -=== CONT TestAccDataSourceNetworkProxy ---- PASS: TestAccDataSourceNetworkProxy (434.41s) -=== CONT TestAccDataSourceNetworkPool ---- PASS: TestAccDataSourceNetworkPool (436.92s) -=== CONT TestAccDataSourceLBProfile ---- PASS: TestAccDataSourceLBProfile (1658.32s) -=== CONT TestAccDataSourceNetworkDomain ---- PASS: TestAccDataSourceNetworkDomain (435.46s) -=== CONT TestAccDataSourceLoadBalancer ---- PASS: TestAccDataSourceLoadBalancer (434.80s) -=== CONT TestAccDataSourceLBPool ---- PASS: TestAccDataSourceLBPool (438.72s) -=== CONT TestAccDataSourceLBMonitor ---- PASS: TestAccDataSourceLBMonitor (437.12s) -=== CONT TestAccDataSourceNetworkEdgeCluster - acc.go:42: Step 1/1 error: Error running pre-apply refresh: exit status 1 - - Error: error, could not find the network server with the specified name. Please verify the name and try again - - with data.hpegl_vmaas_edge_cluster.tf_edge_cluster, - on terraform_plugin_test.tf line 8, in data "hpegl_vmaas_edge_cluster" "tf_edge_cluster": - 8: data "hpegl_vmaas_edge_cluster" "tf_edge_cluster" { - ---- FAIL: TestAccDataSourceNetworkEdgeCluster (66.01s) [PASSED] -=== CONT TestAccDataSourceGroup ---- PASS: TestAccDataSourceGroup (434.64s) -=== CONT TestAccDataSourceEnvironment ---- PASS: TestAccDataSourceEnvironment (439.19s) -=== CONT TestAccDataSourceDataStore ---- PASS: TestAccDataSourceDataStore (437.71s) -=== CONT TestAccDataSourceCloud ---- PASS: TestAccDataSourceCloud (432.69s) -=== CONT TestAccDataSourceLayout ---- PASS: TestAccDataSourceLayout (436.21s) -FAIL - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements -FAIL github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 19882.131s -FAIL -=== RUN TestAccResourceRouterRouteCreate -=== PAUSE TestAccResourceRouterRouteCreate -=== CONT TestAccResourceRouterRouteCreate ---- PASS: TestAccResourceRouterRouteCreate (482.81s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 482.821s coverage: 72.0% of statements - -=== RUN TestAccDataSourceNetworkEdgeCluster -=== PAUSE TestAccDataSourceNetworkEdgeCluster -=== CONT TestAccDataSourceNetworkEdgeCluster ---- PASS: TestAccDataSourceNetworkEdgeCluster (511.32s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 64.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 511.328s coverage: 64.0% of statements -=== RUN TestAccResourceTier1RouterCreate -=== PAUSE TestAccResourceTier1RouterCreate -=== CONT TestAccResourceTier1RouterCreate ---- PASS: TestAccResourceTier1RouterCreate (545.10s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 545.114s coverage: 72.0% of statements -=== RUN TestAccResourceTier0RouterCreate -=== PAUSE TestAccResourceTier0RouterCreate -=== CONT TestAccResourceTier0RouterCreate ---- PASS: TestAccResourceTier0RouterCreate (578.03s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 72.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 578.038s coverage: 72.0% of statements -=== RUN TestAccResourceNetworkCreate -=== PAUSE TestAccResourceNetworkCreate -=== CONT TestAccResourceNetworkCreate ---- PASS: TestAccResourceNetworkCreate (475.91s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 68.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 475.923s coverage: 68.0% of statements -=== RUN TestAccResourceLBProfileCreate -=== PAUSE TestAccResourceLBProfileCreate -=== CONT TestAccResourceLBProfileCreate ---- PASS: TestAccResourceLBProfileCreate (3242.10s) -PASS - github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test coverage: 68.0% of statements -ok github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test 3242.111s coverage: 68.0% of statements -=== RUN TestAccResourceLBPoolCreate -=== PAUSE TestAccResourceLBPoolCreate -=== CONT TestAccResourceLBPoolCreate From 9a43a583e84a36a84984d651f17e2517b3382c05 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Thu, 23 Nov 2023 05:18:48 +0530 Subject: [PATCH 9/9] Update group.yaml --- acc-testcases/data-sources/group.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acc-testcases/data-sources/group.yaml b/acc-testcases/data-sources/group.yaml index 38b007a0..a665a999 100644 --- a/acc-testcases/data-sources/group.yaml +++ b/acc-testcases/data-sources/group.yaml @@ -1,3 +1,3 @@ acc: - config: | - name = "default" + name = "Default"