Skip to content

Commit

Permalink
fixup! skip tags tests unless beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Oct 17, 2024
1 parent 9a20bc9 commit 2b3f087
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions projects_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,14 @@ func TestProjectsUpdate(t *testing.T) {
assert.NotEqual(t, kBefore.Name, kAfter.Name)
assert.NotEqual(t, kBefore.Description, kAfter.Description)

bindings, err := client.Projects.ListTagBindings(ctx, kAfter.ID)
require.NoError(t, err)
if betaFeaturesEnabled() {
bindings, err := client.Projects.ListTagBindings(ctx, kAfter.ID)
require.NoError(t, err)

assert.Len(t, bindings, 1)
assert.Equal(t, "foo", bindings[0].Key)
assert.Equal(t, "bar", bindings[0].Value)
assert.Len(t, bindings, 1)
assert.Equal(t, "foo", bindings[0].Key)
assert.Equal(t, "bar", bindings[0].Value)
}
})

t.Run("when updating with invalid name", func(t *testing.T) {
Expand Down

0 comments on commit 2b3f087

Please sign in to comment.