Skip to content

Commit

Permalink
chore: Add uuid for resource group tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Jin <lei.jin@lacework.net>
  • Loading branch information
leijin-lw committed Jul 16, 2024
1 parent 5edd4ca commit 6975714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/resource_groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package integration
import (
"encoding/json"
"fmt"
"github.com/google/uuid"
"testing"

"github.com/lacework/go-sdk/api"
Expand All @@ -37,7 +38,7 @@ func createResourceGroup(typ string) (string, error) {
}

var testResourceGroup api.ResourceGroupDataWithQuery = api.ResourceGroupDataWithQuery{
Name: fmt.Sprintf("CLI_TestCreateResourceGroup_%s", iType.String()),
Name: fmt.Sprintf("CLI_TestCreateResourceGroup_%s", iType.String()+"_"+uuid.New().String()[:8]),
Type: iType.String(),
Query: &testQuery,
Description: "Resource Group Created By CLI Integration Testing",
Expand Down

0 comments on commit 6975714

Please sign in to comment.