Skip to content

Commit

Permalink
[Telemetry] force staging urls in tests (#63356)
Browse files Browse the repository at this point in the history
* specify telemetry url configs

* opt out by default except where we are testing telemetry
  • Loading branch information
Bamieh committed Apr 13, 2020
1 parent 6f46e6b commit 5bc233f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions test/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`,
Expand Down
2 changes: 2 additions & 0 deletions x-pack/test/api_integration/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
},
Expand Down
1 change: 0 additions & 1 deletion x-pack/test/functional/config_security_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5bc233f

Please sign in to comment.