Skip to content

Commit

Permalink
remove type field
Browse files Browse the repository at this point in the history
  • Loading branch information
mattapperson committed Nov 18, 2019
1 parent 9fc2f1c commit 0571584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions x-pack/test/api_integration/apis/fleet/agents/checkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ export default function(providerContext: FtrProviderContext) {
const { _source: agentDoc } = await esClient.get({
index: '.kibana',
id: 'agents:agent1',
type: '_doc',
});
// @ts-ignore
agentDoc.agents.access_api_key_id = apiKey.id;
await esClient.update({
index: '.kibana',
id: 'agents:agent1',
type: '_doc',
body: {
doc: agentDoc,
},
Expand Down
4 changes: 1 addition & 3 deletions x-pack/test/api_integration/apis/fleet/agents/enroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function(providerContext: FtrProviderContext) {
const { getService } = providerContext;

const esArchiver = getService('esArchiver');
const esClient = getService('es') as legacyElasticsearch.Client;
const esClient = getService('es');

const supertest = getSupertestWithoutAuth(providerContext);
let apiKey: { id: string; api_key: string };
Expand All @@ -37,14 +37,12 @@ export default function(providerContext: FtrProviderContext) {
const { _source: enrollmentApiKeyDoc } = await esClient.get({
index: '.kibana',
id: 'enrollment_api_keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0',
type: '_doc',
});
// @ts-ignore
enrollmentApiKeyDoc.enrollment_api_keys.api_key_id = apiKey.id;
await esClient.update({
index: '.kibana',
id: 'enrollment_api_keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0',
type: '_doc',
body: {
doc: enrollmentApiKeyDoc,
},
Expand Down

0 comments on commit 0571584

Please sign in to comment.