Skip to content

Commit

Permalink
remove changes to route tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Sep 30, 2020
1 parent 490d4b0 commit 87c194d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ describe('read_privileges route', () => {

mockSecurity = securityMock.createSetup();
mockSecurity.authc.isAuthenticated.mockReturnValue(false);
mockSecurity.authz.checkPrivilegesDynamicallyWithRequest.mockImplementation(() => () => ({
hasAllRequested: true,
}));
clients.clusterClient.callAsCurrentUser.mockResolvedValue(getMockPrivilegesResult());
readPrivilegesRoute(server.router, mockSecurity, false);
});
Expand All @@ -39,7 +36,6 @@ describe('read_privileges route', () => {
...getMockPrivilegesResult(),
is_authenticated: false,
has_encryption_key: true,
can_read_actions: true,
};
expect(response.status).toEqual(200);
expect(response.body).toEqual(expectedBody);
Expand All @@ -51,7 +47,6 @@ describe('read_privileges route', () => {
...getMockPrivilegesResult(),
is_authenticated: true,
has_encryption_key: true,
can_read_actions: true,
};

const response = await server.inject(getPrivilegeRequest(), context);
Expand Down Expand Up @@ -90,7 +85,6 @@ describe('read_privileges route', () => {
...getMockPrivilegesResult(),
is_authenticated: false,
has_encryption_key: true,
can_read_actions: false,
};

const response = await server.inject(getPrivilegeRequest(), context);
Expand Down

0 comments on commit 87c194d

Please sign in to comment.