Created
August 31, 2016 11:10
-
-
Save bluecmd/ff91c951724455161560e1cf29713cec to your computer and use it in GitHub Desktop.
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
| INFO:root:Waiting for cur_hw... | |
| INFO:root:Waiting for cur_cfg... | |
| INFO:root:Waiting for switchd pid... | |
| INFO:root:Waiting for ops-switchd to become active... | |
| INFO:root:Wait for final hostname... | |
| INFO:root:Checking restd service status... | |
| INFO:root:Starting restd daemon... | |
| INFO:root:Checking restd service started... | |
| >>> [001] :: test_portd_events:397 | |
| ... Sleeping 30 sec | |
| >>> [002] :: test_portd_events:405 | |
| ... Test the event logging for loopback interfaces | |
| >>> [003] :: loopback_interface_events_test:51 | |
| ... Configure loopback interface and assign an IPv4 address | |
| FAILED | |
| ========================================================================== FAILURES =========================================================================== | |
| ______________________________________________________________________ test_portd_events ______________________________________________________________________ | |
| topology = <topology.manager.TopologyManager object at 0x7f2f76209e80>, step = <topology.pytest.plugin.StepLogger object at 0x7f2f7641bdd8> | |
| def test_portd_events(topology, step): | |
| """ | |
| Test case to verify the event logs in "show events" command | |
| and the loopback interface information in "diag-dump loopback basic" | |
| and "show tech loopback" | |
| """ | |
| step("Sleeping 30 sec") | |
| import time | |
| time.sleep(30) | |
| sw1 = topology.get('sw1') | |
| assert sw1 is not None | |
| step("Test the event logging for loopback interfaces") | |
| > loopback_interface_events_test(sw1, step) | |
| ../../../code_under_test/ops-supportability/test_supportability_ft_subintf_lpbk.py:406: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| dut = <topology_docker_openswitch.openswitch.OpenSwitchNode object at 0x7f2f76209240>, step = <topology.pytest.plugin.StepLogger object at 0x7f2f7641bdd8> | |
| def loopback_interface_events_test(dut, step): | |
| """ | |
| Testcase for Loopback interface events logging. | |
| """ | |
| loopback_created = False | |
| loopback_deleted = False | |
| loopback_ip_added = False | |
| loopback_ip_deleted = False | |
| loopback_ipv6_added = False | |
| loopback_ipv6_deleted = False | |
| step("Configure loopback interface and assign an IPv4 address") | |
| with dut.libs.vtysh.ConfigInterfaceLoopback('10') as ctx: | |
| ctx.ip_address("10.1.1.1/24") | |
| lo_exp_out = "Loopback Interface lo10, created" | |
| ip_exp_out = "Loopback Interface lo10, configured with ip address " \ | |
| "10.1.1.1/24" | |
| out = dut('show events') | |
| lines = out.splitlines() | |
| for line in lines: | |
| if lo_exp_out in line: | |
| loopback_created = True | |
| if ip_exp_out in line: | |
| loopback_ip_added = True | |
| > assert (loopback_created is True), "Loopback interface not created." | |
| E AssertionError: Loopback interface not created. | |
| E assert False is True | |
| ../../../code_under_test/ops-supportability/test_supportability_ft_subintf_lpbk.py:65: AssertionError | |
| --------------------------------- generated xml file: /home/bluecmd/openswitch/ops-build/build/test/feature/test-results.xml ---------------------------------- | |
| ================================================================== slowest 10 test durations ================================================================== | |
| 31.03s call code_under_test/ops-supportability/test_supportability_ft_subintf_lpbk.py::test_portd_events | |
| 12.62s call code_under_test/ops-supportability/test_supportability_ft_show_vlog_config.py::test_supportability_show_vlog | |
| 11.87s teardown code_under_test/ops-supportability/test_supportability_ft_eventlog.py::test_ft_evtlog_feature | |
| 11.79s teardown code_under_test/ops-supportability/test_supportability_ft_show_vlog_config.py::test_supportability_show_vlog | |
| 11.78s teardown code_under_test/ops-supportability/test_supportability_ft_show_vlog.py::test_show_vlog_subcommand | |
| 11.74s teardown code_under_test/ops-supportability/test_supportability_ft_logging.py::test_logging_transport_and_severity | |
| 11.53s teardown code_under_test/ops-supportability/test_supportability_ft_subintf_lpbk.py::test_portd_events | |
| 10.34s call code_under_test/ops-supportability/test_supportability_ft_show_vlog.py::test_show_vlog_config | |
| 6.11s setup code_under_test/ops-supportability/test_supportability_ft_logging.py::test_logging_default | |
| 6.07s setup code_under_test/ops-supportability/test_supportability_ft_show_vlog.py::test_show_vlog_config | |
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| ====================================================== 1 failed, 17 passed, 1 skipped in 162.56 seconds ======================================================= | |
| ERROR: InvocationError: '/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/bin/py.test --durations=10 --junitxml=/home/bluecmd/openswitch/ops-build/build/test/feature/test-results.xml --topology-nml-dir topologies --topology-plot-dir topologies --topology-plot-format svg --topology-inject /home/bluecmd/openswitch/ops-build/build/test/feature/attributes.json --topology-platform docker -x -v -s /home/bluecmd/openswitch/ops-build/build/test/feature/code_under_test' | |
| ___________________________________________________________________________ summary ___________________________________________________________________________ | |
| ERROR: py34: commands failed | |
| tools/Rules.make:806: recipe for target '_testenv_rerun' failed | |
| make[1]: *** [_testenv_rerun] Error 1 | |
| tools/Rules.make:708: recipe for target 'testenv_rerun' failed | |
| make: *** [testenv_rerun] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment