Skip to content

Commit

Permalink
add handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Nov 26, 2024
1 parent 93ae256 commit 0d853bc
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 @@ -1429,6 +1429,16 @@ var HandlerPolicyTests = map[string][]HandlerPolicyTest{
ExpectStatus: http.StatusOK,
},
},
"GetDebugInfo": {
{
Roles: []rbactypes.Role{rbac.ClusterAdminRole},
SessionRoles: []string{rbac.ClusterAdminRoleID},
Calls: func(storeRecorder *mock_store.MockStoreMockRecorder, handlerRecorder *mock_handlers.MockKOTSHandlerMockRecorder) {
handlerRecorder.GetDebugInfo(gomock.Any(), gomock.Any())
},
ExpectStatus: http.StatusOK,
},
},

// Upgrade Service
"StartUpgradeService": {
Expand Down

0 comments on commit 0d853bc

Please sign in to comment.