Skip to content

Commit c857fcd

Browse files
committed
Partial revert of "Sync Kerberos + Anonymous access tests with the latest security/_authenticate API (user roles now include roles of anonymous user)." (#68624)
1 parent 8d212ea commit c857fcd

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

x-pack/test/kerberos_api_integration/apis/security/kerberos_login.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ export default function ({ getService }: FtrProviderContext) {
9898
});
9999

100100
describe('finishing SPNEGO', () => {
101-
// Skipped: https://github.com/elastic/kibana/issues/68720
102-
it.skip('should properly set cookie and authenticate user', async () => {
101+
it('should properly set cookie and authenticate user', async () => {
103102
const response = await supertest
104103
.get('/internal/security/me')
105104
.set('Authorization', `Negotiate ${spnegoToken}`)
@@ -116,14 +115,7 @@ export default function ({ getService }: FtrProviderContext) {
116115
const sessionCookie = request.cookie(cookies[0])!;
117116
checkCookieIsSet(sessionCookie);
118117

119-
const isAnonymousAccessEnabled = (config.get(
120-
'esTestCluster.serverArgs'
121-
) as string[]).some((setting) => setting.startsWith('xpack.security.authc.anonymous'));
122-
123-
// `superuser_anonymous` role is derived from the enabled anonymous access.
124-
const expectedUserRoles = isAnonymousAccessEnabled
125-
? ['kibana_admin', 'superuser_anonymous']
126-
: ['kibana_admin'];
118+
const expectedUserRoles = ['kibana_admin'];
127119

128120
await supertest
129121
.get('/internal/security/me')

0 commit comments

Comments
 (0)