Skip to content

Commit

Permalink
clean up types
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jul 26, 2021
1 parent 775b56f commit 338a9db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
6 changes: 0 additions & 6 deletions x-pack/test/api_integration/apis/security_solution/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
import expect from '@kbn/expect';
import { JsonObject } from '@kbn/common-utils';

import { TimelineEdges, TimelineNonEcsData } from '../../../../plugins/timelines/common/';

import {
createSpacesAndUsers,
deleteSpacesAndUsers,
} from '../../../rule_registry/common/lib/authentication/';
import {
Direction,
TimelineEventsQueries,
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/timeline/security_only/tests/basic/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default ({ getService }: FtrProviderContext) => {

[...authorizedInAllSpaces].forEach(({ username, password }) => {
it(`${username} - should return 200 for authorized users`, async () => {
const resp = await supertestWithoutAuth
await supertestWithoutAuth
.post(`${getSpaceUrlPrefix()}${TEST_URL}`)
.auth(username, password)
.set('kbn-xsrf', 'true')
Expand All @@ -131,7 +131,7 @@ export default ({ getService }: FtrProviderContext) => {

[...unauthorized].forEach(({ username, password }) => {
it(`${username} - should return 403 for unauthorized users`, async () => {
const resp = await supertestWithoutAuth
await supertestWithoutAuth
.post(`${getSpaceUrlPrefix()}${TEST_URL}`)
.auth(username, password)
.set('kbn-xsrf', 'true')
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/timeline/security_only/tests/trial/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default ({ getService }: FtrProviderContext) => {

[...authorizedInAllSpaces].forEach(({ username, password }) => {
it(`${username} - should return 200 for authorized users`, async () => {
const resp = await supertestWithoutAuth
await supertestWithoutAuth
.post(`${getSpaceUrlPrefix()}${TEST_URL}`)
.auth(username, password)
.set('kbn-xsrf', 'true')
Expand All @@ -131,7 +131,7 @@ export default ({ getService }: FtrProviderContext) => {

[...unauthorized].forEach(({ username, password }) => {
it(`${username} - should return 403 for unauthorized users`, async () => {
const resp = await supertestWithoutAuth
await supertestWithoutAuth
.post(`${getSpaceUrlPrefix()}${TEST_URL}`)
.auth(username, password)
.set('kbn-xsrf', 'true')
Expand Down
4 changes: 1 addition & 3 deletions x-pack/test/timeline/spaces_only/tests/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
*/

import expect from '@kbn/expect';
import { JsonObject } from '@kbn/common-utils';

import { superUser } from '../../../rule_registry/common/lib/authentication/users';
import type { User } from '../../../rule_registry/common/lib/authentication/types';
import { FtrProviderContext } from '../../../rule_registry/common/ftr_provider_context';
import { getSpaceUrlPrefix } from '../../../rule_registry/common/lib/authentication/spaces';
import {
Expand All @@ -25,7 +24,6 @@ export default ({ getService }: FtrProviderContext) => {
const FROM = '2000-01-01T00:00:00.000Z';
const TEST_URL = '/internal/search/timelineSearchStrategy/';
const SPACE1 = 'space1';
const SPACE2 = 'space2';
const OTHER = 'other';

const getPostBody = (): JsonObject => ({
Expand Down

0 comments on commit 338a9db

Please sign in to comment.