Sha256: b462259532a7cafb0199db61a3edbc4b167828c1f338dc446fc4d27529068a03
Contents?: true
Size: 1.32 KB
Versions: 14
Compression:
Stored size: 1.32 KB
Contents
module OpsManagerUiDrivers module Version17 class UserSettings def initialize(browser:) @browser = browser end def switch_to_internal_authentication(user: , password:, decryption_passphrase:) browser.visit '/settings/edit' browser.fill_in 'change_auth_service[admin_user_name]', with: user browser.fill_in 'change_auth_service[admin_password]', with: password browser.fill_in 'change_auth_service[admin_password_confirmation]', with: password browser.fill_in 'change_auth_service[decryption_passphrase]', with: decryption_passphrase browser.click_on 'update-auth-service-action' wait_for_availability! end def switch_to_saml_authentication(idp_metadata:, decryption_passphrase:) browser.visit '/settings/edit' browser.fill_in 'change_auth_service[saml_idp_metadata]', with: idp_metadata browser.fill_in 'change_auth_service[decryption_passphrase]', with: decryption_passphrase browser.click_on 'update-auth-service-action' wait_for_availability! end def wait_for_availability! Timeout.timeout(150) do while browser.current_path.include?('ensure_availability') sleep 1 end end end private attr_reader :browser end end end
Version data entries
14 entries across 14 versions & 1 rubygems