Skip to content

Commit

Permalink
add uninstall check
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Mar 24, 2022
1 parent 2805e7b commit 79f5eb4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ export default function (providerContext: FtrProviderContext) {
resIndexPattern = err;
}
expect(resIndexPattern.response.data.statusCode).equal(404);
let resOsqueryPackAsset;
try {
resOsqueryPackAsset = await kibanaServer.savedObjects.get({
type: 'osquery-pack-asset',
id: 'sample_osquery_pack_asset',
});
} catch (err) {
resOsqueryPackAsset = err;
}
expect(resOsqueryPackAsset.response.data.statusCode).equal(404);
});
it('should have removed the saved object', async function () {
let res;
Expand Down

0 comments on commit 79f5eb4

Please sign in to comment.