Skip to content

Commit

Permalink
remove supported tags mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Norton committed Feb 13, 2024
1 parent b1ea336 commit bd59993
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
7 changes: 1 addition & 6 deletions policy/policy_handler/mocks/base_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

const (
GetBaseImageQueryName = "get-base-image"
GetSupportedTagsQueryName = "get-supported-tags"
GetBaseImageQueryName = "get-base-image"
)

type BaseImageQueryResult struct {
Expand Down Expand Up @@ -65,7 +64,3 @@ func parseFromReference(sb *types.SBOM) *SubscriptionRepository {
}
}
}

func MockSupportedTags(sb *types.SBOM) []string {
return nil // TODO: query GraphQL for supported tags
}
8 changes: 0 additions & 8 deletions policy/policy_handler/mocks/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,5 @@ func BuildLocalEvalMocks(ctx context.Context, req skill.RequestContext, sb *type
}
}

// Supported tags
if supportedTagsMock := MockSupportedTags(sb); supportedTagsMock != nil {
m[GetSupportedTagsQueryName], err = edn.Marshal(supportedTagsMock)
if err != nil {
return m, fmt.Errorf("failed to marshal supported tags mock: %w", err)
}
}

return m, nil
}

0 comments on commit bd59993

Please sign in to comment.