Skip to content

Commit

Permalink
Add integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Mar 1, 2021
1 parent 7d4ec7b commit e4fc460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x-pack/test/case_api_integration/basic/tests/cases/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default function createGetTests({ getService }: FtrProviderContext) {

// tests upgrading a 7.11.1 saved object to the latest version
describe('7.11.1 -> latest stack version', () => {
const caseID = '2ea28c10-7855-11eb-9ca6-83ec5acb735f';
before(async () => {
await esArchiver.load('cases/migrations/7.11.1');
});
Expand All @@ -68,6 +67,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
});

it('adds rule info to only alert comments for 7.12', async () => {
const caseID = '2ea28c10-7855-11eb-9ca6-83ec5acb735f';
// user comment
let { body } = await supertest
.get(`${CASES_URL}/${caseID}/comments/34a20a00-7855-11eb-9ca6-83ec5acb735f`)
Expand All @@ -87,20 +87,20 @@ export default function createGetTests({ getService }: FtrProviderContext) {

it('adds category and subcategory to the ITSM connector', async () => {
const { body } = await supertest
.get(`${CASES_URL}/e1900ac0-017f-11eb-93f8-d161651bf509`)
.get(`${CASES_URL}/6f973440-7abd-11eb-9ca6-83ec5acb735f`)
.set('kbn-xsrf', 'true')
.send()
.expect(200);

expect(body).key('connector');
expect(body.connector).to.eql({
id: 'connector-1',
id: '444ebab0-7abd-11eb-9ca6-83ec5acb735f',
name: 'SN',
type: '.servicenow',
fields: {
impact: '1',
severity: '1',
urgency: '1',
impact: '2',
severity: '2',
urgency: '2',
category: null,
subcategory: null,
},
Expand Down
Binary file not shown.

0 comments on commit e4fc460

Please sign in to comment.