From ec625f860ba1fc3d0c7219c5e996b8a77b1c54ff Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Tue, 14 Nov 2023 22:32:01 -0500 Subject: [PATCH] add test for new route --- pkg/handlers/handlers_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/handlers/handlers_test.go b/pkg/handlers/handlers_test.go index c502bb6733..d5f3542abe 100644 --- a/pkg/handlers/handlers_test.go +++ b/pkg/handlers/handlers_test.go @@ -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": {