Skip to content

Commit

Permalink
Remove success from some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
John Schulz committed Aug 27, 2020
1 parent a087a7f commit 033fb78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../api_integration/ftr_provider_context';
import { skipIfNoDockerRegistry } from '../../helpers';

Expand Down Expand Up @@ -75,11 +74,7 @@ export default function (providerContext: FtrProviderContext) {
});

it('should succeed with a valid id', async function () {
const { body: apiResponse } = await supertest
.get(`/api/ingest_manager/package_policies/${packagePolicyId}`)
.expect(200);

expect(apiResponse.success).to.be(true);
await supertest.get(`/api/ingest_manager/package_policies/${packagePolicyId}`).expect(200);
});

it('should return a 404 with an invalid id', async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function (providerContext: FtrProviderContext) {
},
})
.expect(200);
expect(enrollmentResponse.success).to.eql(true);

agentAccessAPIKey = enrollmentResponse.item.access_api_key;
});
Expand Down

0 comments on commit 033fb78

Please sign in to comment.