Skip to content

Commit

Permalink
SCALRCORE-31852 Fix TestTagsCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
DayS1eeper committed Sep 2, 2024
1 parent c71eed0 commit e172610
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,6 @@ func TestTagsCreate(t *testing.T) {
assert.Nil(t, tag)
assert.EqualError(t, err, "Invalid Attribute\n\nName cannot be empty.")
})

t.Run("when options has an invalid account", func(t *testing.T) {
var accountId = "acc-123"
_, err := client.Tags.Create(ctx, TagCreateOptions{
Name: String(" "),
Account: &Account{ID: accountId},
})
assert.Equal(
t,
ResourceNotFoundError{
Message: fmt.Sprintf("Invalid Relationship\n\nAccount with ID '%s' not found or user unauthorized.", accountId),
}.Error(),
err.Error(),
)
})
}

func TestTagsRead(t *testing.T) {
Expand Down

0 comments on commit e172610

Please sign in to comment.