-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…4380) * Ensure setup mode work in a ccs environment * Missed this file
- Loading branch information
1 parent
74ebdf9
commit ace1893
Showing
5 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
x-pack/test/api_integration/apis/monitoring/setup/collection/ccs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export default function({ getService }) { | ||
const supertest = getService('supertest'); | ||
const esArchiver = getService('esArchiver'); | ||
|
||
describe('ccs', () => { | ||
const archive = 'monitoring/setup/collection/detect_apm'; | ||
const timeRange = { | ||
min: '2019-04-16T00:00:00.741Z', | ||
max: '2019-04-16T23:59:59.741Z', | ||
}; | ||
|
||
before('load archive', () => { | ||
return esArchiver.load(archive); | ||
}); | ||
|
||
after('unload archive', () => { | ||
return esArchiver.unload(archive); | ||
}); | ||
|
||
it('should not fail with a ccs parameter for cluster', async () => { | ||
await supertest | ||
.post('/api/monitoring/v1/setup/collection/cluster?skipLiveData=true') | ||
.set('kbn-xsrf', 'xxx') | ||
.send({ timeRange, ccs: '*' }) | ||
.expect(200); | ||
}); | ||
|
||
it('should not fail with a ccs parameter for node', async () => { | ||
await supertest | ||
.post('/api/monitoring/v1/setup/collection/node/123?skipLiveData=true') | ||
.set('kbn-xsrf', 'xxx') | ||
.send({ timeRange, ccs: '*' }) | ||
.expect(200); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters