Skip to content

Commit

Permalink
warn future me so I don't make the same mistake twice
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Sep 9, 2020
1 parent 4fc8324 commit b31aae5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/test/api_integration/apis/security/basic_login.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default function ({ getService }) {
expect(apiResponse.body.username).to.be(validUsername);
expect(apiResponse.body.authentication_provider).to.eql('__http__');
expect(apiResponse.body.authentication_type).to.be('realm');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

describe('with session cookie', () => {
Expand Down Expand Up @@ -194,6 +195,7 @@ export default function ({ getService }) {
expect(apiResponse.body.username).to.be(validUsername);
expect(apiResponse.body.authentication_provider).to.eql('basic');
expect(apiResponse.body.authentication_type).to.be('realm');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

it('should extend cookie on every successful non-system API call', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(user.username).to.eql(username);
expect(user.authentication_provider).to.eql('basic');
expect(user.authentication_type).to.eql('realm');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

describe('initiating SPNEGO', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(user.username).to.eql(username);
expect(user.authentication_provider).to.eql('basic');
expect(user.authentication_type).to.be('realm');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

describe('initiating handshake', () => {
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/pki_api_integration/apis/security/pki_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default function ({ getService }: FtrProviderContext) {

expect(user.username).to.eql(username);
expect(user.authentication_provider).to.eql('basic');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

it('should properly set cookie and authenticate user', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(user.username).to.eql(username);
expect(user.authentication_provider).to.eql('basic');
expect(user.authentication_type).to.be('realm');
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud
});

describe('initiating handshake', () => {
Expand Down

0 comments on commit b31aae5

Please sign in to comment.