Skip to content

Commit

Permalink
add test for new route
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Nov 15, 2023
1 parent e4fd320 commit ec625f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/handlers/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,16 @@ var HandlerPolicyTests = map[string][]HandlerPolicyTest{
ExpectStatus: http.StatusOK,
},
},
"GetEmbeddedClusterRoles": {
{
Roles: []rbactypes.Role{rbac.ClusterAdminRole},
SessionRoles: []string{rbac.ClusterAdminRoleID},
Calls: func(storeRecorder *mock_store.MockStoreMockRecorder, handlerRecorder *mock_handlers.MockKOTSHandlerMockRecorder) {
handlerRecorder.GetEmbeddedClusterRoles(gomock.Any(), gomock.Any())
},
ExpectStatus: http.StatusOK,
},
},

// Prometheus
"SetPrometheusAddress": {
Expand Down

0 comments on commit ec625f8

Please sign in to comment.