diff --git a/public/apps/configuration/panels/test/__snapshots__/service-account-list.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/service-account-list.test.tsx.snap deleted file mode 100644 index 0617b7a8b..000000000 --- a/public/apps/configuration/panels/test/__snapshots__/service-account-list.test.tsx.snap +++ /dev/null @@ -1,37 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Service Account list AccessError component should load access error component 1`] = ` - - - - -

- Service accounts -

-
-
- -
-`; diff --git a/public/apps/configuration/test/__snapshots__/app-router.test.tsx.snap b/public/apps/configuration/test/__snapshots__/app-router.test.tsx.snap index 0c19e737f..21aa4e515 100644 --- a/public/apps/configuration/test/__snapshots__/app-router.test.tsx.snap +++ b/public/apps/configuration/test/__snapshots__/app-router.test.tsx.snap @@ -39,10 +39,6 @@ exports[`SecurityPluginTopNavMenu renders DataSourceMenu when dataSource is enab "href": "/users", "name": "Internal users", }, - Object { - "href": "/serviceAccounts", - "name": "Service Accounts", - }, Object { "href": "/permissions", "name": "Permissions", @@ -85,10 +81,6 @@ exports[`SecurityPluginTopNavMenu renders DataSourceMenu when dataSource is enab "href": "/users", "name": "Internal users", }, - Object { - "href": "/serviceAccounts", - "name": "Service Accounts", - }, Object { "href": "/permissions", "name": "Permissions", @@ -131,10 +123,6 @@ exports[`SecurityPluginTopNavMenu renders DataSourceMenu when dataSource is enab "href": "/users", "name": "Internal users", }, - Object { - "href": "/serviceAccounts", - "name": "Service Accounts", - }, Object { "href": "/permissions", "name": "Permissions", @@ -177,56 +165,6 @@ exports[`SecurityPluginTopNavMenu renders DataSourceMenu when dataSource is enab "href": "/users", "name": "Internal users", }, - Object { - "href": "/serviceAccounts", - "name": "Service Accounts", - }, - Object { - "href": "/permissions", - "name": "Permissions", - }, - Object { - "href": "/tenants", - "name": "Tenants", - }, - Object { - "href": "/auditLogging", - "name": "Audit logs", - }, - ] - } - /> - - - - - - { expect(result).toEqual(expectedUserList); }); - it('getUserList calls httpGet with the correct parameters for internal users', async () => { - const httpMock = {}; // Mock HttpStart object - const userType = 'internalaccounts'; - - const test = await getUserList(httpMock, userType, 'test'); - - expect(mockedHttpGet).toHaveBeenCalledWith({ - http: httpMock, - url: '/api/v1/configuration/internalaccounts', - }); - expect(test).toEqual([]); - }); - - it('getUserList calls httpGet with the correct parameters for service accounts', async () => { - const httpMock = {}; - const userType = 'serviceAccounts'; - - const test = await getUserList(httpMock, userType, 'test'); - - expect(mockedHttpGet).toHaveBeenCalledWith({ - http: httpMock, - url: '/api/v1/configuration/serviceaccounts', - }); - expect(test).toEqual([]); - }); - - it('fetchUserNameList calls httpGet with the correct parameters for service accounts', async () => { + it('getUserList calls httpGet with the correct parameters', async () => { const httpMock = {}; - const userType = 'serviceAccounts'; - const test = await fetchUserNameList(httpMock, userType, ''); + const test = await getUserList(httpMock, 'test'); expect(mockedHttpGet).toHaveBeenCalledWith({ http: httpMock, - url: '/api/v1/configuration/serviceaccounts', + url: '/api/v1/configuration/internalusers', }); expect(test).toEqual([]); }); - it('fetchUserNameList calls httpGet with the correct parameters for internal users', async () => { + it('fetchUserNameList calls httpGet with the correct parameters', async () => { const httpMock = {}; - const userType = 'internalaccounts'; - const test = await fetchUserNameList(httpMock, userType, ''); + const test = await fetchUserNameList(httpMock, ''); expect(mockedHttpGet).toHaveBeenCalledWith({ http: httpMock, - url: '/api/v1/configuration/internalaccounts', + url: '/api/v1/configuration/internalusers', }); expect(test).toEqual([]); });