mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Enable v2 so migrations, disable in FTR tests (#89297)
* Enable v2 so migrations, disable in FTR tests * Disable v2 migrations for ui_settings integration tests * Disable v2 migrations for reporting without serucity api integration test
This commit is contained in:
parent
b8947e3e15
commit
c8afae8a51
4 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,7 @@ export const savedObjectsMigrationConfig = {
|
|||
pollInterval: schema.number({ defaultValue: 1500 }),
|
||||
skip: schema.boolean({ defaultValue: false }),
|
||||
// TODO migrationsV2: remove/deprecate once we release migrations v2
|
||||
enableV2: schema.boolean({ defaultValue: false }),
|
||||
enableV2: schema.boolean({ defaultValue: true }),
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
|
@ -37,6 +37,9 @@ export async function startServers() {
|
|||
adjustTimeout: (t) => jest.setTimeout(t),
|
||||
settings: {
|
||||
kbn: {
|
||||
migrations: {
|
||||
enableV2: false,
|
||||
},
|
||||
uiSettings: {
|
||||
overrides: {
|
||||
foo: 'bar',
|
||||
|
|
|
@ -61,6 +61,8 @@ export default function () {
|
|||
...(!!process.env.CODE_COVERAGE
|
||||
? [`--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'coverage')}`]
|
||||
: []),
|
||||
// Disable v2 migrations in tests for now
|
||||
'--migrations.enableV2=false',
|
||||
],
|
||||
},
|
||||
services,
|
||||
|
|
|
@ -32,6 +32,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
kbnTestServer: {
|
||||
...apiConfig.get('kbnTestServer'),
|
||||
serverArgs: [
|
||||
`--migrations.enableV2=false`,
|
||||
`--elasticsearch.hosts=${formatUrl(esTestConfig.getUrlParts())}`,
|
||||
`--logging.json=false`,
|
||||
`--server.maxPayloadBytes=1679958`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue