From 45717e2ed48c6ee2381a1a669965540ce1824701 Mon Sep 17 00:00:00 2001 From: John Schulz Date: Wed, 11 Mar 2020 20:35:14 -0400 Subject: [PATCH] Update test .expect() to match description --- x-pack/test/api_integration/apis/fleet/delete_agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/api_integration/apis/fleet/delete_agent.ts b/x-pack/test/api_integration/apis/fleet/delete_agent.ts index 5cb069ab22ab..bddfcfbf6715 100644 --- a/x-pack/test/api_integration/apis/fleet/delete_agent.ts +++ b/x-pack/test/api_integration/apis/fleet/delete_agent.ts @@ -65,7 +65,7 @@ export default function({ getService }: FtrProviderContext) { .delete(`/api/ingest_manager/fleet/agents/agent1`) .auth(users.fleet_user.username, users.fleet_user.password) .set('kbn-xsrf', 'xx') - .expect(403); + .expect(404); expect(apiResponse).not.to.eql({ success: true,