[Telemetry] force staging urls in tests (#63356)

* specify telemetry url configs

* opt out by default except where we are testing telemetry
This commit is contained in:
Ahmad Bamieh 2020-04-13 23:45:13 +03:00 committed by GitHub
parent 6f46e6b827
commit 5bc233f3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View file

@ -56,6 +56,10 @@ export default function() {
`--elasticsearch.password=${kibanaServerTestUser.password}`,
`--home.disableWelcomeScreen=true`,
'--telemetry.banner=false',
'--telemetry.optIn=false',
// These are *very* important to have them pointing to staging
'--telemetry.url=https://telemetry-staging.elastic.co/xpack/v2/send',
'--telemetry.optInStatusUrl=https://telemetry-staging.elastic.co/opt_in_status/v2/send',
`--server.maxPayloadBytes=1679958`,
// newsfeed mock service
`--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'newsfeed')}`,

View file

@ -27,6 +27,8 @@ export async function getApiIntegrationConfig({ readConfigFile }) {
'--xpack.security.session.idleTimeout=3600000', // 1 hour
'--optimize.enabled=false',
'--xpack.endpoint.enabled=true',
'--telemetry.optIn=true',
'--xpack.endpoint.enabled=true',
'--xpack.ingestManager.enabled=true',
'--xpack.ingestManager.fleet.enabled=true',
'--xpack.endpoint.alertResultListDefaultDateRange.from=2018-01-10T00:00:00.000Z',

View file

@ -85,7 +85,6 @@ export default async function({ readConfigFile }) {
'--stats.maximumWaitTimeForAllCollectorsInS=1',
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
'--xpack.encryptedSavedObjects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
'--telemetry.banner=false',
'--timelion.ui.enabled=true',
],
},

View file

@ -42,7 +42,6 @@ export default async function({ readConfigFile }) {
...kibanaCommonConfig.get('kbnTestServer.serverArgs'),
'--server.uuid=5b2de169-2785-441b-ae8c-186a1936b17d',
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
'--telemetry.banner=false',
],
},
uiSettings: {