From 08d2bb4c5c978179ceae1bb3d212ac5f10040229 Mon Sep 17 00:00:00 2001 From: Zeki Sherif Date: Wed, 30 Oct 2024 10:32:27 -0500 Subject: [PATCH] fix: try again to fix integ tests --- api/_examples/resource-groups/main.go | 2 +- integration/resource_groups_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/_examples/resource-groups/main.go b/api/_examples/resource-groups/main.go index 867912031..c1bce30f6 100644 --- a/api/_examples/resource-groups/main.go +++ b/api/_examples/resource-groups/main.go @@ -45,7 +45,7 @@ func main() { support = "Supported" } - // Output: RESOURCE_GUID:RESOURCE_TYPE:[Supported|Unsupported] + // Output: RESOURCE_GROUP_GUID:RESOURCE_TYPE:[Supported|Unsupported] fmt.Printf("%s:%s:%s\n", resourceGuid, resourceType, support) } diff --git a/integration/resource_groups_test.go b/integration/resource_groups_test.go index 4afb83dd0..b3947f23b 100644 --- a/integration/resource_groups_test.go +++ b/integration/resource_groups_test.go @@ -71,7 +71,7 @@ func createResourceGroup(typ string, uid string) (string, error) { func popResourceGroup() (string, error) { type resourceGroup struct { - Id string `json:"resource_guid"` + Id string `json:"resourceGroupGuid"` } type listResourceGroupsResponse struct { ResourceGroups []resourceGroup `json:"resource_groups"` @@ -119,7 +119,7 @@ func TestResourceGroupList(t *testing.T) { // list (output json) out, err, exitcode = LaceworkCLIWithTOMLConfig("resource-group", "list", "--json") - assert.Contains(t, out.String(), `"resource_guid"`) + assert.Contains(t, out.String(), `"resourceGroupGuid"`) assert.Contains(t, out.String(), `"type": "AWS"`) assert.Empty(t, err.String(), "STDERR should be empty") assert.Equal(t, 0, exitcode, "EXITCODE is not the expected one")