Skip to content

Commit

Permalink
Fix new audit logging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Oct 28, 2020
1 parent e13886a commit f648288
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions x-pack/plugins/security/server/audit/audit_events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { URL } from 'url';
import {
EventOutcome,
SavedObjectAction,
Expand Down Expand Up @@ -211,12 +212,7 @@ describe('#httpRequestEvent', () => {
kibanaRequestState: {
requestId: '123',
requestUuid: '123e4567-e89b-12d3-a456-426614174000',
rewrittenUrl: {
path: '/original/path',
pathname: '/original/path',
query: 'query=param',
search: '?query=param',
},
rewrittenUrl: new URL('http://localhost/original/path?query=param'),
},
}),
})
Expand All @@ -234,11 +230,11 @@ describe('#httpRequestEvent', () => {
},
"message": "User is requesting [/original/path] endpoint",
"url": Object {
"domain": undefined,
"domain": "localhost",
"path": "/original/path",
"port": undefined,
"query": "query=param",
"scheme": undefined,
"scheme": "http:",
},
}
`);
Expand Down

0 comments on commit f648288

Please sign in to comment.