Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
thomheymann committed Dec 10, 2020
1 parent 7393366 commit ce576d5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions x-pack/plugins/security/server/audit/audit_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const { logging } = coreMock.createSetup();
const http = httpServiceMock.createSetupContract();
const getCurrentUser = jest.fn().mockReturnValue({ username: 'jdoe', roles: ['admin'] });
const getSpaceId = jest.fn().mockReturnValue('default');
const getSessionId = jest.fn().mockResolvedValue('SESSION_ID');
const getSID = jest.fn().mockResolvedValue('SESSION_ID');

beforeEach(() => {
logger.info.mockClear();
Expand All @@ -46,7 +46,7 @@ describe('#setup', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
})
).toMatchInlineSnapshot(`
Object {
Expand All @@ -72,7 +72,7 @@ describe('#setup', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});
expect(logging.configure).toHaveBeenCalledWith(expect.any(Observable));
});
Expand All @@ -85,7 +85,7 @@ describe('#setup', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});
expect(http.registerOnPostAuth).toHaveBeenCalledWith(expect.any(Function));
});
Expand All @@ -100,7 +100,7 @@ describe('#asScoped', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});
const request = httpServerMock.createKibanaRequest({
kibanaRequestState: { requestId: 'REQUEST_ID', requestUuid: 'REQUEST_UUID' },
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('#asScoped', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});
const request = httpServerMock.createKibanaRequest({
kibanaRequestState: { requestId: 'REQUEST_ID', requestUuid: 'REQUEST_UUID' },
Expand All @@ -149,7 +149,7 @@ describe('#asScoped', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});
const request = httpServerMock.createKibanaRequest({
kibanaRequestState: { requestId: 'REQUEST_ID', requestUuid: 'REQUEST_UUID' },
Expand Down Expand Up @@ -375,7 +375,7 @@ describe('#getLogger', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});

const auditLogger = auditService.getLogger(pluginId);
Expand Down Expand Up @@ -406,7 +406,7 @@ describe('#getLogger', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});

const auditLogger = auditService.getLogger(pluginId);
Expand Down Expand Up @@ -445,7 +445,7 @@ describe('#getLogger', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});

const auditLogger = auditService.getLogger(pluginId);
Expand Down Expand Up @@ -474,7 +474,7 @@ describe('#getLogger', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});

const auditLogger = auditService.getLogger(pluginId);
Expand Down Expand Up @@ -504,7 +504,7 @@ describe('#getLogger', () => {
http,
getCurrentUser,
getSpaceId,
getSID: getSessionId,
getSID,
});

const auditLogger = auditService.getLogger(pluginId);
Expand Down

0 comments on commit ce576d5

Please sign in to comment.