Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Jun 24, 2024
1 parent a98a6be commit f091ede
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions service/integration/attributes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,18 @@ func (s *AttributesSuite) Test_UnsafeUpdateAttribute_WithNewName() {
s.Require().NoError(err)
s.NotNil(retrieved)
s.Len(retrieved, 2)

val, err := s.db.PolicyClient.GetAttributeValue(s.ctx, updated.GetValues()[0].GetId())
s.Require().NoError(err)
s.NotNil(val)
s.Equal(fqns[0], val.GetFqn())
s.Contains(val.GetFqn(), updated.GetName())

val, err = s.db.PolicyClient.GetAttributeValue(s.ctx, updated.GetValues()[1].GetId())
s.Require().NoError(err)
s.NotNil(val)
s.Equal(fqns[1], val.GetFqn())
s.Contains(val.GetFqn(), updated.GetName())
}

func (s *AttributesSuite) Test_UnsafeUpdateAttribute_NormalizesCasing() {
Expand Down
1 change: 1 addition & 0 deletions service/integration/namespaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ func (s *NamespacesSuite) Test_UnsafeUpdateNamespace_NormalizeCasing() {
s.NotNil(got)
s.Equal("helloworld.com", got.GetName())
s.Contains(got.GetFqn(), "helloworld.com")
s.Equal("https://helloworld.com", got.GetFqn())
}

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

0 comments on commit f091ede

Please sign in to comment.