-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[master] Fix esArchiver path in the Jenkins workspace #102095
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ | |
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { resolve } from 'path'; | ||
import { REPO_ROOT } from '@kbn/dev-utils'; | ||
|
||
const INTEGRATION_TEST_ROOT = process.env.WORKSPACE || resolve(REPO_ROOT, '../integration-test'); | ||
const ARCHIVE = resolve(INTEGRATION_TEST_ROOT, 'test/es_archives/metricbeat'); | ||
|
||
export default function ({ getService, getPageObjects, updateBaselines }) { | ||
const screenshot = getService('screenshots'); | ||
|
@@ -15,7 +20,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) { | |
|
||
describe('check metricbeat Dashboard', function () { | ||
before(async function () { | ||
await esArchiver.load('../integration-test/test/es_archives/metricbeat'); | ||
await esArchiver.load(ARCHIVE); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need any change here. The current version that just does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
// this navigateToActualURL takes the place of navigating to the dashboard landing page, | ||
// filtering on the dashboard name, selecting it, setting the timepicker, and going to full screen | ||
|
@@ -45,7 +50,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) { | |
}); | ||
|
||
after(async function () { | ||
await esArchiver.unload('../integration-test/test/es_archives/metricbeat'); | ||
await esArchiver.unload(ARCHIVE); | ||
}); | ||
|
||
it('[Metricbeat System] Overview ECS should match snapshot', async function () { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these existing tests shouldn't need this change because they're loading data into the local cluster and esArchive already works for that. This test gets the correct path because of the INTEGRATION_TEST_ROOT defined in the config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no more esArchive path in the config.