Skip to content

Commit 5bc233f

Browse files
authored
[Telemetry] force staging urls in tests (#63356)
* specify telemetry url configs * opt out by default except where we are testing telemetry
1 parent 6f46e6b commit 5bc233f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

test/common/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export default function() {
5656
`--elasticsearch.password=${kibanaServerTestUser.password}`,
5757
`--home.disableWelcomeScreen=true`,
5858
'--telemetry.banner=false',
59+
'--telemetry.optIn=false',
60+
// These are *very* important to have them pointing to staging
61+
'--telemetry.url=https://telemetry-staging.elastic.co/xpack/v2/send',
62+
'--telemetry.optInStatusUrl=https://telemetry-staging.elastic.co/opt_in_status/v2/send',
5963
`--server.maxPayloadBytes=1679958`,
6064
// newsfeed mock service
6165
`--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'newsfeed')}`,

x-pack/test/api_integration/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export async function getApiIntegrationConfig({ readConfigFile }) {
2727
'--xpack.security.session.idleTimeout=3600000', // 1 hour
2828
'--optimize.enabled=false',
2929
'--xpack.endpoint.enabled=true',
30+
'--telemetry.optIn=true',
31+
'--xpack.endpoint.enabled=true',
3032
'--xpack.ingestManager.enabled=true',
3133
'--xpack.ingestManager.fleet.enabled=true',
3234
'--xpack.endpoint.alertResultListDefaultDateRange.from=2018-01-10T00:00:00.000Z',

x-pack/test/functional/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default async function({ readConfigFile }) {
8585
'--stats.maximumWaitTimeForAllCollectorsInS=1',
8686
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
8787
'--xpack.encryptedSavedObjects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
88-
'--telemetry.banner=false',
8988
'--timelion.ui.enabled=true',
9089
],
9190
},

x-pack/test/functional/config_security_basic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export default async function({ readConfigFile }) {
4242
...kibanaCommonConfig.get('kbnTestServer.serverArgs'),
4343
'--server.uuid=5b2de169-2785-441b-ae8c-186a1936b17d',
4444
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
45-
'--telemetry.banner=false',
4645
],
4746
},
4847
uiSettings: {

0 commit comments

Comments
 (0)