Skip to content

Commit

Permalink
research the issues with tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Dmytrenko <[email protected]>
  • Loading branch information
erka committed Dec 14, 2024
1 parent 648961d commit 81edf65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/testing/integration/authz/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ func (s clientCallSet) assert(t *testing.T, ctx context.Context, client sdk.SDK)
type clientCall func(*testing.T, context.Context, sdk.SDK) error

func GetNamespace(in *flipt.GetNamespaceRequest) clientCall {
if in.GetNamespaceKey() == "" {
in.Key = "default"
}
return func(t *testing.T, ctx context.Context, s sdk.SDK) error {
_, err := s.Flipt().GetNamespace(ctx, in)
return fmt.Errorf("GetNamespace: %w", err)
Expand Down Expand Up @@ -434,6 +437,7 @@ func CreateRollout(in *flipt.CreateRolloutRequest) clientCall {
return fmt.Errorf("CreateRollout: %w", err)
}
}

func UpdateRollout(in *flipt.UpdateRolloutRequest) clientCall {
return func(t *testing.T, ctx context.Context, s sdk.SDK) error {
_, err := s.Flipt().UpdateRollout(ctx, in)
Expand Down

0 comments on commit 81edf65

Please sign in to comment.