Skip to content

Commit

Permalink
internal/rest/resources: Tests require Endpoints for each resource
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
(cherry picked from commit b5a8dfb)
  • Loading branch information
MggMuggins committed Aug 16, 2024
1 parent da84e2a commit 6d74c38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/rest/resources/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ var validServers = map[string]rest.Server{
Resources: []rest.Resources{
{
PathPrefix: "core_consumer",
Endpoints: []rest.Endpoint{
{
Path: "hello",
},
},
},
},
},
Expand All @@ -28,6 +33,10 @@ var invalidServers = map[string]rest.Server{
"emptyResources": {
CoreAPI: true,
},
"emptyEndpoints": {
CoreAPI: true,
Resources: []rest.Resources{},
},
"duplicate": {
Resources: []rest.Resources{
{
Expand Down

0 comments on commit 6d74c38

Please sign in to comment.