synthetics - adjust failing private locations tests (#137842)

This commit is contained in:
Dominique Clarke 2022-08-02 14:29:05 -04:00 committed by GitHub
parent 49fd290113
commit 2fdb0b37a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 11 deletions

View file

@ -17,8 +17,7 @@ import { comparePolicies, getTestSyntheticsPolicy } from './sample_data/test_pol
import { PrivateLocationTestService } from './services/private_location_test_service';
export default function ({ getService }: FtrProviderContext) {
// Failing: See https://github.com/elastic/kibana/issues/137328
describe.skip('PrivateLocationMonitor', function () {
describe('PrivateLocationMonitor', function () {
this.tags('skipCloud');
const kibanaServer = getService('kibanaServer');
const supertestAPI = getService('supertest');
@ -35,7 +34,7 @@ export default function ({ getService }: FtrProviderContext) {
before(async () => {
await supertestAPI.post('/api/fleet/setup').set('kbn-xsrf', 'true').send().expect(200);
await supertestAPI
.post('/api/fleet/epm/packages/synthetics/0.9.5')
.post('/api/fleet/epm/packages/synthetics/0.9.4')
.set('kbn-xsrf', 'true')
.send({ force: true })
.expect(200);

View file

@ -16,8 +16,7 @@ import { PrivateLocationTestService } from './services/private_location_test_ser
import { comparePolicies, getTestProjectSyntheticsPolicy } from './sample_data/test_policy';
export default function ({ getService }: FtrProviderContext) {
// Failing: See https://github.com/elastic/kibana/issues/137818
describe.skip('[PUT] /api/uptime/service/monitors', function () {
describe('[PUT] /api/uptime/service/monitors', function () {
this.tags('skipCloud');
const supertest = getService('supertest');
@ -70,7 +69,7 @@ export default function ({ getService }: FtrProviderContext) {
before(async () => {
await supertest.post('/api/fleet/setup').set('kbn-xsrf', 'true').send().expect(200);
await supertest
.post('/api/fleet/epm/packages/synthetics/0.9.5')
.post('/api/fleet/epm/packages/synthetics/0.9.4')
.set('kbn-xsrf', 'true')
.send({ force: true })
.expect(200);

View file

@ -13,8 +13,7 @@ import { getFixtureJson } from './helper/get_fixture_json';
import { PrivateLocationTestService } from './services/private_location_test_service';
export default function ({ getService }: FtrProviderContext) {
// FAILING ON 8.4: https://github.com/elastic/kibana/issues/137338
describe.skip('[DELETE] /internal/uptime/service/monitors', function () {
describe('[DELETE] /internal/uptime/service/monitors', function () {
this.tags('skipCloud');
const supertest = getService('supertest');
@ -42,7 +41,7 @@ export default function ({ getService }: FtrProviderContext) {
_httpMonitorJson = getFixtureJson('http_monitor');
await supertest.post('/api/fleet/setup').set('kbn-xsrf', 'true').send().expect(200);
await supertest
.post('/api/fleet/epm/packages/synthetics/0.9.5')
.post('/api/fleet/epm/packages/synthetics/0.9.4')
.set('kbn-xsrf', 'true')
.send({ force: true })
.expect(200);

View file

@ -14,7 +14,7 @@ export const getTestSyntheticsPolicy = (name: string): PackagePolicy => ({
version: 'WzMyNTcsMV0=',
name: '5863efe0-0368-11ed-8df7-a7424c6f5167-5347cd10-0368-11ed-8df7-a7424c6f5167',
namespace: 'default',
package: { name: 'synthetics', title: 'Elastic Synthetics', version: '0.9.5' },
package: { name: 'synthetics', title: 'Elastic Synthetics', version: '0.9.4' },
enabled: true,
policy_id: '5347cd10-0368-11ed-8df7-a7424c6f5167',
output_id: '',
@ -256,7 +256,7 @@ export const getTestProjectSyntheticsPolicy = (
version: 'WzMwNTMsMV0=',
name: 'check if title is present-Test private location 0',
namespace: 'default',
package: { name: 'synthetics', title: 'Elastic Synthetics', version: '0.9.5' },
package: { name: 'synthetics', title: 'Elastic Synthetics', version: '0.9.4' },
enabled: true,
policy_id: '46034710-0ba6-11ed-ba04-5f123b9faa8b',
output_id: '',