Handle change in saml VM name (#73808) (#75761)

* 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>
This commit is contained in:
Marius Dragomir 2020-08-25 14:47:05 +02:00 committed by GitHub
parent 599a8436e1
commit 18e06ad1c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}