Skip to content

Commit

Permalink
tests: use unique application key
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 5, 2024
1 parent 778b2cd commit 4752115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/c8y_test/applicationVersions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func TestApplicationVersionsService_CRUD_Extension(t *testing.T) {

// Use a unique name
app.Name = testingutils.RandomString(12)
app.Key = app.Name + "-key"

//
// Create
Expand Down
2 changes: 2 additions & 0 deletions test/c8y_test/uiExtension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ func TestUIExtensionService_CreateExtension(t *testing.T) {

app1, err := client.UIExtension.NewUIExtensionFromFile(file1.Name())
testingutils.Assert(t, app1.Name != "", "Name should not be empty")
testingutils.Assert(t, app1.Key != "", "Key should not be empty")

// Use unique name to avoid name clashes
app1.Name = appName
app1.Key = appName + "-key"
testingutils.Ok(t, err)

appVersion1, _, err := client.UIExtension.CreateExtension(context.Background(), &app1.Application, file1.Name(), c8y.UpsertOptions{
Expand Down

0 comments on commit 4752115

Please sign in to comment.