This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (cfme)[jweiss@localhost cfme_tests]$ py.test -s -v cfme/tests/cloud/test_cloud_timelines.py | |
| Traceback (most recent call last): | |
| File "/home/jweiss/workspace/cfme_tests/utils/artifactor_start.py", line 3, in <module> | |
| from artifactor import Artifactor, initialize | |
| ImportError: No module named artifactor | |
| INTERNALERROR> Traceback (most recent call last): | |
| INTERNALERROR> File "/home/jweiss/.virtualenvs/cfme/lib/python2.7/site-packages/_pytest/main.py", line 80, in wrap_session | |
| INTERNALERROR> config.do_configure() | |
| INTERNALERROR> File "/home/jweiss/.virtualenvs/cfme/lib/python2.7/site-packages/_pytest/config.py", line 618, in do_configure | |
| INTERNALERROR> self.hook.pytest_configure(config=self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytest | |
| from utils import db | |
| from utils import providers | |
| from utils import testgen | |
| from utils import conf | |
| import time | |
| from cfme.configure.configuration import candu | |
| pytestmark = [ | |
| pytest.mark.fixtureconf(server_roles="+ems_metrics_coordinator +ems_metrics_collector" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytest | |
| from utils import db | |
| from utils import providers | |
| from utils import testgen | |
| from utils import conf | |
| import time | |
| from cfme.configure.configuration import candu | |
| pytestmark = [ | |
| pytest.mark.fixtureconf(server_roles="+ems_metrics_coordinator +ems_metrics_collector" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [7]: | |
| def mytest(): | |
| print "running test" | |
| def cleanup(): | |
| print "cleaning up test" | |
| raise Exception({'msg': 'oh noes', 'cleanup': cleanup}) | |
| def pytest_exception_interact(e): | |
| print "handling error" | |
| e.message['cleanup']() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Foo { | |
| public static void test(){ | |
| try { | |
| System.out.println("running test"); | |
| } | |
| finally { | |
| System.out.println("Cleaning up test"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [2]: | |
| def mytest(): | |
| try: | |
| print "running test" | |
| raise Exception("oh noes") | |
| finally: | |
| print "cleaning up test" | |
| def pytest_exception_interact(): | |
| print "handling error" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - cfme.cloud.provider.discover(cancel=True, credential=None) | |
| | - cfme.fixtures.pytest_selenium.force_navigate(page_name='clouds_provider_discover', args=(), _tries=0, kwargs={}) | |
| | | - cfme.fixtures.pytest_selenium.execute_script(script='miqSparkleOff();', args=(), kwargs={}) | |
| | | -> None | |
| | | - cfme.login.current_user() | |
| | | -> <cfme.login.User username='admin', full_name=u'Administrator', password='*******'> | |
| | | - cfme.fixtures.pytest_selenium.is_displayed(_deep=0, loc="//div[@id='blocker_div']") | |
| | | -> False | |
| | | - cfme.login.login(username='admin', password='*******', submit_method=<function _click_on_login at 0x6768050>) | |
| | | | - cfme.login.logged_in() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (cfme)[jweiss@localhost cfme_tests]$ scripts/dockerbot/dockerbot.py --appliance-name Upstream --pytest 'py.test cfme/tests/infrastructure/test_retirement.py' | |
| ================================================================== | |
| ____ __ ____ __ | |
| : / __ \____ _____/ /_____ _____/ __ )____ / /_ | |
| [* *] / / / / __ \/ ___/ //_/ _ \/ ___/ __ / __ \/ __/ | |
| -[___]- / /_/ / /_/ / /__/ ,< / __/ / / /_/ / /_/ / /_ | |
| /_____/\____/\___/_/|_|\___/_/ /_____/\____/\__/ | |
| ================================================================== | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [27]: | |
| import cfme.infrastructure.virtual_machines as vm | |
| import cfme.infrastructure.provider as p | |
| reload(vm) | |
| import cfme.fixtures.pytest_selenium as sel | |
| # sel.force_navigate("infra_vm_retire", context={"vm": }) | |
| myvm = vm.Vm(name="jweiss-test1", provider_crud=p.get_from_config("vsphere55"), template_name='damnSmallLinux') | |
| myvm.create_on_provider() | |
| INFO:cfme:Getting ready to deploy VM/instance jweiss-test1 from template damnSmallLinux on provider vSphere 5.5 |