From 121323954546fa61f4b0db5d905d18d6666f70bd Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Wed, 25 Sep 2019 10:55:02 -0400 Subject: [PATCH] Split one of the slow test suites up to try to make overall CI faster --- .../security_and_spaces/apis/index.ts | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/x-pack/test/spaces_api_integration/security_and_spaces/apis/index.ts b/x-pack/test/spaces_api_integration/security_and_spaces/apis/index.ts index 4493a5332b62c..d002cf43ff998 100644 --- a/x-pack/test/spaces_api_integration/security_and_spaces/apis/index.ts +++ b/x-pack/test/spaces_api_integration/security_and_spaces/apis/index.ts @@ -13,19 +13,24 @@ export default function({ loadTestFile, getService }: TestInvoker) { const supertest = getService('supertest'); describe('spaces api with security', function() { - this.tags('ciGroup8'); - before(async () => { await createUsersAndRoles(es, supertest); }); - loadTestFile(require.resolve('./copy_to_space')); - loadTestFile(require.resolve('./resolve_copy_to_space_conflicts')); - loadTestFile(require.resolve('./create')); - loadTestFile(require.resolve('./delete')); - loadTestFile(require.resolve('./get_all')); - loadTestFile(require.resolve('./get')); - loadTestFile(require.resolve('./select')); - loadTestFile(require.resolve('./update')); + describe('create, copy, update', () => { + this.tags('ciGroup1'); + loadTestFile(require.resolve('./copy_to_space')); + loadTestFile(require.resolve('./resolve_copy_to_space_conflicts')); + loadTestFile(require.resolve('./create')); + loadTestFile(require.resolve('./update')); + }); + + describe('read, delete', () => { + this.tags('ciGroup8'); + loadTestFile(require.resolve('./delete')); + loadTestFile(require.resolve('./get_all')); + loadTestFile(require.resolve('./get')); + loadTestFile(require.resolve('./select')); + }); }); }