Skip to content

Commit

Permalink
Remove tests of API decommissioned API endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Nov 21, 2019
1 parent 0d6d174 commit 2facdf7
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions x-pack/test/api_integration/apis/uptime/feature_controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
.catch((error: any) => ({ error, response: undefined }));
};

const executeIsValidRequest = async (username: string, password: string, spaceId?: string) => {
const basePath = spaceId ? `/s/${spaceId}` : '';

return await supertest
.get(`${basePath}/api/uptime/is_valid`)
.auth(username, password)
.set('kbn-xsrf', 'foo')
.then((response: any) => ({ error: undefined, response }))
.catch((error: any) => ({ error, response: undefined }));
};

const executePingsRequest = async (username: string, password: string, spaceId?: string) => {
const basePath = spaceId ? `/s/${spaceId}` : '';

Expand Down Expand Up @@ -97,9 +86,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const graphQLResult = await executeGraphQLQuery(username, password);
expect404(graphQLResult);

const isValidResult = await executeIsValidRequest(username, password);
expect404(isValidResult);

const pingsResult = await executePingsRequest(username, password);
expect404(pingsResult);
} finally {
Expand Down Expand Up @@ -139,9 +125,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const graphQLResult = await executeGraphQLQuery(username, password);
expectResponse(graphQLResult);

const isValidResult = await executeIsValidRequest(username, password);
expectResponse(isValidResult);

const pingsResult = await executePingsRequest(username, password);
expectResponse(pingsResult);
} finally {
Expand Down Expand Up @@ -184,9 +167,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const graphQLResult = await executeGraphQLQuery(username, password);
expect404(graphQLResult);

const isValidResult = await executeIsValidRequest(username, password);
expect404(isValidResult);

const pingsResult = await executePingsRequest(username, password);
expect404(pingsResult);
} finally {
Expand Down Expand Up @@ -256,9 +236,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const graphQLResult = await executeGraphQLQuery(username, password, space1Id);
expectResponse(graphQLResult);

const isValidResult = await executeIsValidRequest(username, password, space1Id);
expectResponse(isValidResult);

const pingsResult = await executePingsRequest(username, password, space1Id);
expectResponse(pingsResult);
});
Expand All @@ -267,9 +244,6 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const graphQLResult = await executeGraphQLQuery(username, password);
expect404(graphQLResult);

const isValidResult = await executeIsValidRequest(username, password);
expect404(isValidResult);

const pingsResult = await executePingsRequest(username, password);
expect404(pingsResult);
});
Expand Down

0 comments on commit 2facdf7

Please sign in to comment.