Skip to content

Commit

Permalink
Handle change in saml VM name (#73808) (#75761)
Browse files Browse the repository at this point in the history
* Handle change in saml VM name

* fix lint problem

* Update login_page.ts

* Fix tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
marius-dr and elasticmachine authored Aug 25, 2020
1 parent 599a843 commit 18e06ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/functional/page_objects/login_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ export function LoginPageProvider({ getService }: FtrProviderContext) {

class LoginPage {
async login(user: string, pwd: string) {
if (
process.env.VM === 'ubuntu18_deb_oidc' ||
process.env.VM === 'ubuntu16_deb_desktop_saml'
) {
const loginType = process.env.VM || '';
if (loginType.includes('oidc') || loginType.includes('saml')) {
await samlLogin(user, pwd);
return;
}
Expand Down

0 comments on commit 18e06ad

Please sign in to comment.