Skip to content

Commit

Permalink
fetch kibana version only for cloud saml session
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Dec 6, 2023
1 parent bf8c7f9 commit 3ecba70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kbn-test/src/auth/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ export class SAMLSessionManager {
}

let session: Session;
const kbnVersion = await this.kbnClient.version.get();

if (this.isCloud) {
this.log.debug(`new SAML authentication with '${role}' role`);
const kbnVersion = await this.kbnClient.version.get();
const { email, password } = this.getCloudUserByRole(role);
session = await createCloudSAMLSession({
email,
Expand Down

0 comments on commit 3ecba70

Please sign in to comment.