python3.9 unit test failure

Bug #1907855 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Undecided
Unassigned

Bug Description

This can be recreated on ubuntu hirsute:

lxc launch ubuntu-daily:hirsute h1
lxc exec h1 /bin/bash
# clone murano and run py39 tests
tox -e py39
...

==============================
Failed 1 tests - output below:
==============================

murano.tests.unit.api.cmd.test_test_runner.TestCaseShell.test_help
------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/wallaby/upstream/murano/murano/tests/unit/api/cmd/test_test_runner.py", line 88, in test_help
    self.assertIn(usage, stdout)

      File "/home/corey/pkg/wallaby/upstream/murano/.tox/py39/lib/python3.9/site-packages/testtools/testcase.py", line 421, in assertIn
    self.assertThat(haystack, Contains(needle), message)

      File "/home/corey/pkg/wallaby/upstream/murano/.tox/py39/lib/python3.9/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: 'usage: murano-test-runner [-h] [--config-file CONFIG_FILE]\n [--os-auth-url OS_AUTH_URL]\n [--os-username OS_USERNAME]\n [--os-password OS_PASSWORD]\n [--os-project-name OS_PROJECT_NAME]\n [-l [</path1, /path2> [</path1, /path2> ...]]] [-v]\n [--version]\n <PACKAGE_FQN>\n [<testMethod1, className.testMethod2> [<testMethod1, className.testMethod2' not in "usage: murano-test-runner [-h] [--config-file CONFIG_FILE] [--os-auth-url OS_AUTH_URL] [--os-username OS_USERNAME]\n [--os-password OS_PASSWORD] [--os-project-name OS_PROJECT_NAME] [-l [</path1, /path2> ...]] [-v] [--version]\n <PACKAGE_FQN> [<testMethod1, className.testMethod2> ...]\n\npositional arguments:\n <PACKAGE_FQN> Full name of application package that is going to be tested\n <testMethod1, className.testMethod2>\n List of method names to be tested\n\noptional arguments:\n -h, --help show this help message and exit\n --config-file CONFIG_FILE\n Path to the murano config\n --os-auth-url OS_AUTH_URL\n Defaults to env[OS_AUTH_URL]\n --os-username OS_USERNAME\n Defaults to env[OS_USERNAME]\n --os-password OS_PASSWORD\n Defaults to env[OS_PASSWORD]\n --os-project-name OS_PROJECT_NAME\n Defaults to env[OS_PROJECT_NAME]\n -l [</path1, /path2> ...], --load_packages_from [</path1, /path2> ...]\n Directory to search packages from. We be added to the list of current directory list, provided in a config\n file.\n -v, --verbose increase output verbosity\n --version show program's version number and exit\n"

======
Totals
======
Ran: 1027 tests in 125.4236 sec.
 - Passed: 1016
 - Skipped: 10
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1
Sum of execute time for each test: 478.2167 sec.

zhurong (zhu-rong)
Changed in murano:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.