[Uptime] adjust Elastic Synthetics integration functional tests (#118163) (#119306)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional/apps/uptime/synthetics_integration.ts
This commit is contained in:
Dominique Clarke 2021-11-22 09:51:21 -05:00 committed by GitHub
parent 41c967c222
commit 266a5aae60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,8 +129,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
use_output: 'default',
});
// failing: https://github.com/elastic/kibana/issues/116522
describe.skip('When on the Synthetics Integration Policy Create Page', function () {
describe('When on the Synthetics Integration Policy Create Page', function () {
this.tags(['ciGroup10']);
const basicConfig = {
name: monitorName,
@ -171,8 +170,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/109329
describe.skip('create new policy', () => {
describe('create new policy', () => {
let version: string;
beforeEach(async () => {
@ -216,6 +214,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'service.name': config.apmServiceName,
tags: [config.tags],
'check.request.method': 'GET',
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -258,6 +260,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
urls: config.url,
'service.name': config.apmServiceName,
tags: [config.tags],
__ui: {
is_tls_enabled: true,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -309,6 +315,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
urls: config.url,
'service.name': config.apmServiceName,
tags: [config.tags],
__ui: {
is_tls_enabled: true,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -382,6 +392,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
password: advancedConfig.password,
'service.name': config.apmServiceName,
tags: [config.tags],
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -416,6 +430,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
hosts: config.host,
tags: [config.tags],
'service.name': config.apmServiceName,
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -460,6 +478,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'check.send': advancedConfig.requestSendCheck,
'service.name': config.apmServiceName,
tags: [config.tags],
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
},
},
})
);
@ -494,6 +516,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
hosts: config.host,
'service.name': config.apmServiceName,
tags: [config.tags],
__ui: null,
},
})
);
@ -538,6 +561,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'source.zip_url.username': config.username,
'source.zip_url.password': config.password,
params: JSON.parse(config.params),
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
script_source: {
file_name: '',
is_generated_script: false,
},
},
},
})
);
@ -575,6 +606,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
tags: [config.tags],
'service.name': config.apmServiceName,
'source.inline.script': config.inlineScript,
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
script_source: {
file_name: '',
is_generated_script: false,
},
},
},
})
);
@ -625,6 +664,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'source.zip_url.password': config.password,
params: JSON.parse(config.params),
synthetics_args: [advancedConfig.syntheticsArgs],
__ui: {
is_tls_enabled: false,
is_zip_url_tls_enabled: false,
script_source: {
file_name: '',
is_generated_script: false,
},
},
},
})
);