From b5dce43cac4d27e3832dd5a4b71f50258e2c1ab5 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Mon, 10 Jun 2024 16:54:01 +0530 Subject: [PATCH 1/2] Readonly instance interface name --- internal/resources/resource_instances_helper.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/resources/resource_instances_helper.go b/internal/resources/resource_instances_helper.go index 687d05ad..72e3b3a2 100644 --- a/internal/resources/resource_instances_helper.go +++ b/internal/resources/resource_instances_helper.go @@ -1,4 +1,4 @@ -// (C) Copyright 2021 Hewlett Packard Enterprise Development LP +// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP package resources @@ -112,7 +112,6 @@ func getInstanceDefaultSchema(isClone bool) *schema.Resource { "name": { Type: schema.TypeString, Computed: true, - Optional: true, Description: "name of the interface", }, }, From 56467693f121abc250892b233fb0f813bbca4d62 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Mon, 10 Jun 2024 16:55:55 +0530 Subject: [PATCH 2/2] Update git ignore and parallel to 1 --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 243942af..416cd7ef 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ vendor/ .vscode build doc +__debug* diff --git a/Makefile b/Makefile index 8edba547..1a4bc17a 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 -parallel 2 -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ + TF_ACC=true go test -parallel 1 -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ else \ TF_ACC=true go test -parallel 4 -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION);\ fi