[Code] Disable xpack.code.ui.enabled instead of xpack.code.enabled (#38919) (#41320)

* [Code] Disable xpack.code.ui.enabled instead of xpack.code.enabled

* Revert "[Code]: disable code by default in 7.2 (#38757) (#38801)"
This commit is contained in:
Fuyao Zhao 2019-07-18 02:31:54 +08:00 committed by GitHub
parent c04cf23fe8
commit 584f5a8f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

View file

@ -49,7 +49,7 @@ export const code = (kibana: any) =>
});
return Joi.object({
ui: Joi.object({
enabled: Joi.boolean().default(true),
enabled: Joi.boolean().default(false),
}).default(),
enabled: Joi.boolean().default(true),
queueIndex: Joi.string().default('.code_internal-worker-queue'),

View file

@ -84,7 +84,12 @@ describe('code in multiple nodes', () => {
port: codePort,
},
plugins: { paths: [pluginPaths] },
xpack: xpackOption,
xpack: {
...xpackOption,
code: {
ui: { enabled: true },
},
},
},
},
});
@ -101,7 +106,10 @@ describe('code in multiple nodes', () => {
plugins: { paths: [pluginPaths] },
xpack: {
...xpackOption,
code: { codeNodeUrl: `http://localhost:${codePort}` },
code: {
ui: { enabled: true },
codeNodeUrl: `http://localhost:${codePort}`,
},
},
};
nonCodeNode = createRootWithCorePlugins(setting);

View file

@ -60,6 +60,7 @@ export async function getApiIntegrationConfig({ readConfigFile }) {
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
'--optimize.enabled=false',
`--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'alerts')}`,
'--xpack.code.ui.enabled=true', // Enable Code Ui just in tests
],
},
esTestCluster: {

View file

@ -217,6 +217,8 @@ export default async function ({ readConfigFile }) {
'--stats.maximumWaitTimeForAllCollectorsInS=0',
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
'--xpack.encrypted_saved_objects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
'--xpack.code.ui.enabled=true', // Enable Code Ui just in tests
'--xpack.code.security.enableGitCertCheck=false', // Disable git certificate check
'--timelion.ui.enabled=true',
],
},