FTBS in jammy: FAIL: magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand

Bug #1966512 reported by Felipe Reyes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-magnumclient (Ubuntu)
Fix Released
Undecided
Felipe Reyes

Bug Description

This failure is due to a change in python 3.10 where the string "optional arguments" was changed to "options", more info at https://docs.python.org/3/whatsnew/3.10.html#argparse and https://bugs.python.org/issue9694 .

Upstream bug: https://storyboard.openstack.org/#!/story/2009946
Upstream fix: https://review.opendev.org/c/openstack/python-magnumclient/+/835217

Test failures:

======================================================================
FAIL: magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand
magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/magnumclient/tests/test_shell.py", line 127, in test_help_on_subcommand
    self.assertThat((stdout + stderr),
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'usage: magnum bay-create [--name <name>] --baymodel <baymodel>\n [--node-count <node-count>]\n [--master-count <master-count>]\n [--discovery-url <discovery-url>]\n [--timeout <timeout>]\n\nCreate a bay. (Deprecated in favor of cluster-create.)\n\nOptions:\n --name <name> Name of the bay to create.\n --baymodel <baymodel>\n ID or name of the baymodel.\n --node-count <node-count>\n The bay node count.\n --master-count <master-count>\n The number of master nodes for the bay.\n --discovery-url <discovery-url>\n Specifies custom discovery url for node discovery.\n --timeout <timeout> The timeout for bay creation in minutes. The default\n is 60 minutes.\n' does not match /.*?^Optional arguments:/

======================================================================
FAIL: magnumclient.tests.test_shell.ShellTestKeystoneV3.test_help_on_subcommand
magnumclient.tests.test_shell.ShellTestKeystoneV3.test_help_on_subcommand
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/magnumclient/tests/test_shell.py", line 127, in test_help_on_subcommand
    self.assertThat((stdout + stderr),
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'usage: magnum bay-create [--name <name>] --baymodel <baymodel>\n [--node-count <node-count>]\n [--master-count <master-count>]\n [--discovery-url <discovery-url>]\n [--timeout <timeout>]\n\nCreate a bay. (Deprecated in favor of cluster-create.)\n\nOptions:\n --name <name> Name of the bay to create.\n --baymodel <baymodel>\n ID or name of the baymodel.\n --node-count <node-count>\n The bay node count.\n --master-count <master-count>\n The number of master nodes for the bay.\n --discovery-url <discovery-url>\n Specifies custom discovery url for node discovery.\n --timeout <timeout> The timeout for bay creation in minutes. The default\n is 60 minutes.\n' does not match /.*?^Optional arguments:/

Tags: patch
Felipe Reyes (freyes)
Changed in python-magnumclient (Ubuntu):
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
Felipe Reyes (freyes) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1966512_jammy.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-magnumclient - 3.5.0-0ubuntu3

---------------
python-magnumclient (3.5.0-0ubuntu3) jammy; urgency=medium

  [ Corey Bryant ]
  * d/p/skip-tests.patch: Dropped. No longer needed as issue has been fixed.

  [ Felipe Reyes ]
  * d/p/lp1966512.patch: Fix test_help_on_subcommand on Python 3.10 (LP: #1966512).

 -- Felipe Reyes <email address hidden> Fri, 25 Mar 2022 15:41:07 -0300

Changed in python-magnumclient (Ubuntu):
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.