Skip to content

Commit

Permalink
fix: try again to fix integ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zekisherif committed Oct 30, 2024
1 parent 66c72b4 commit 08d2bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/_examples/resource-groups/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions integration/resource_groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 08d2bb4

Please sign in to comment.