diff --git a/x-pack/test_serverless/api_integration/test_suites/search/serverless_search/connectors.ts b/x-pack/test_serverless/api_integration/test_suites/search/serverless_search/connectors.ts index 819500aadf71a..c45b5171fcecd 100644 --- a/x-pack/test_serverless/api_integration/test_suites/search/serverless_search/connectors.ts +++ b/x-pack/test_serverless/api_integration/test_suites/search/serverless_search/connectors.ts @@ -13,22 +13,20 @@ const API_BASE_PATH = '/internal/serverless_search'; export default function ({ getService }: FtrProviderContext) { const roleScopedSupertest = getService('roleScopedSupertest'); - let supertestViewerWithCookieCredentials: SupertestWithRoleScope; + let supertestDeveloperWithCookieCredentials: SupertestWithRoleScope; describe('Connectors routes', function () { describe('GET connectors', function () { before(async () => { - supertestViewerWithCookieCredentials = await roleScopedSupertest.getSupertestWithRoleScope( - 'viewer', - { + supertestDeveloperWithCookieCredentials = + await roleScopedSupertest.getSupertestWithRoleScope('developer', { useCookieHeader: true, withInternalHeaders: true, - } - ); + }); }); it('returns list of connectors', async () => { - const { body } = await supertestViewerWithCookieCredentials + const { body } = await supertestDeveloperWithCookieCredentials .get(`${API_BASE_PATH}/connectors`) .expect(200);