def test_appliance_console_restore_pg_basebackup_ansible( get_appliance_with_ansible): """ Polarion: assignee: jhenner casecomponent: Configuration caseimportance: critical initialEstimate: 1/2h """ appl1 = get_appliance_with_ansible # Restore DB on the second appliance appl1.evmserverd.stop() appl1.db_service.restart() restore_db(appl1, '/tmp/evm_db.backup') manager.quit() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.wait_for_api_available() appl1.wait_for_embedded_ansible() repositories = appl1.collections.ansible_repositories try: repository = repositories.create( name='example', url=cfme_data.ansible_links.playbook_repositories.console_db, description='example') except KeyError: pytest.skip("Skipping since no such key found in yaml") view = navigate_to(repository, "Details") refresh = view.toolbar.refresh.click wait_for(lambda: view.entities.summary("Properties").get_text_of("Status") == "successful", timeout=60, fail_func=refresh, message="Check if playbook repo added")
def test_appliance_console_restore_pg_basebackup_ansible(get_appliance_with_ansible): appl1 = get_appliance_with_ansible # Restore DB on the second appliance appl1.evmserverd.stop() appl1.db.restart_db_service() command_set = ('ap', '', '4', '1', '/tmp/backup/base.tar.gz', TimedCommand('y', 60), '') appl1.appliance_console.run_commands(command_set) manager.quit() appl1.start_evm_service() appl1.wait_for_web_ui() appl1.reboot() appl1.start_evm_service() appl1.wait_for_web_ui() appl1.ssh_client.run_command( 'curl -kL https://localhost/ansibleapi | grep "Ansible Tower REST API"') repositories = appl1.collections.ansible_repositories repository = repositories.create('example', REPOSITORIES[0], description='example') view = navigate_to(repository, "Details") refresh = view.toolbar.refresh.click wait_for( lambda: view.entities.summary("Properties").get_text_of("Status") == "successful", timeout=60, fail_func=refresh, message="Check if playbook repo added" )
def test_appliance_console_restore_pg_basebackup_ansible( get_appliance_with_ansible): appl1 = get_appliance_with_ansible # Restore DB on the second appliance appl1.evmserverd.stop() appl1.db_service.restart() command_set = ('ap', '', '4', '1', '/tmp/backup/base.tar.gz', TimedCommand('y', 60), '') appl1.appliance_console.run_commands(command_set) manager.quit() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.reboot() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.ssh_client.run_command( 'curl -kL https://localhost/ansibleapi | grep "Ansible Tower REST API"' ) repositories = appl1.collections.ansible_repositories repository = repositories.create('example', REPOSITORIES[0], description='example') view = navigate_to(repository, "Details") refresh = view.toolbar.refresh.click wait_for(lambda: view.entities.summary("Properties").get_text_of("Status") == "successful", timeout=60, fail_func=refresh, message="Check if playbook repo added")
def test_appliance_console_restore_pg_basebackup_ansible( get_appliance_with_ansible): """ Polarion: assignee: jhenner casecomponent: Configuration caseimportance: critical initialEstimate: 1/2h """ appl1 = get_appliance_with_ansible # Restore DB on the second appliance appl1.evmserverd.stop() appl1.db_service.restart() command_set = ('ap', '', '4', '1', '/tmp/backup/base.tar.gz', TimedCommand('y', 60), '') appl1.appliance_console.run_commands(command_set) manager.quit() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.reboot() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.ssh_client.run_command( 'curl -kL https://localhost/ansibleapi | grep "Ansible Tower REST API"' ) repositories = appl1.collections.ansible_repositories try: repository = repositories.create( name='example', url=cfme_data.ansible_links.playbook_repositories.console_db, description='example') except KeyError: pytest.skip("Skipping since no such key found in yaml") view = navigate_to(repository, "Details") refresh = view.toolbar.refresh.click wait_for(lambda: view.entities.summary("Properties").get_text_of("Status") == "successful", timeout=60, fail_func=refresh, message="Check if playbook repo added")
def test_appliance_console_restore_pg_basebackup_ansible(get_appliance_with_ansible): """ Polarion: assignee: jhenner casecomponent: Configuration caseimportance: critical initialEstimate: 1/2h """ appl1 = get_appliance_with_ansible # Restore DB on the second appliance appl1.evmserverd.stop() appl1.db_service.restart() command_set = ('ap', '', '4', '1', '/tmp/backup/base.tar.gz', TimedCommand('y', 60), '') appl1.appliance_console.run_commands(command_set) manager.quit() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.reboot() appl1.evmserverd.start() appl1.wait_for_web_ui() appl1.ssh_client.run_command( 'curl -kL https://localhost/ansibleapi | grep "Ansible Tower REST API"') repositories = appl1.collections.ansible_repositories try: repository = repositories.create( name='example', url=cfme_data.ansible_links.playbook_repositories.console_db, description='example') except KeyError: pytest.skip("Skipping since no such key found in yaml") view = navigate_to(repository, "Details") refresh = view.toolbar.refresh.click wait_for( lambda: view.entities.summary("Properties").get_text_of("Status") == "successful", timeout=60, fail_func=refresh, message="Check if playbook repo added" )
def quit_browser(self): manager.quit() try: del self.widgetastic except AttributeError: pass
def quit_browser(self): manager.quit() try: del self.widgetastic except AttributeError: pass