Manila UI tenant quota unit tests failing

Bug #1870436 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
manila-ui
Fix Released
High
Victoria Martinez de la Cruz

Bug Description

Failure log observed on https://review.opendev.org/#/c/716585/:

Running Manila-UI application tests
WARNING:root:"dashboards" and "default_dashboard" in (local_)settings is DEPRECATED now and may be unsupported in some future release. The preferred way to specify the order of dashboards and the default dashboard is the pluggable dashboard mechanism (in /home/zuul/src/opendev.org/openstack/manila-ui/manila_ui/local/enabled, /home/zuul/src/opendev.org/openstack/manila-ui/.tox/py36/lib/python3.6/site-packages/openstack_dashboard/enabled).
Creating test database for alias 'default'...
..........................................................................................................................................................................................................F.............................................................................................WARNING:django.request:Not Found: /project/shares/11023e92-8008-4c8b-8059-7f2293ff3887/extend/
..............WARNING:django.request:Not Found: /project/shares/11023e92-8008-4c8b-8059-7f2293ff3887/revert/
.......................................
======================================================================
FAIL: test_tenant_quota_get (manila_ui.tests.dashboards.identity.projects.tests.UpdateShareQuotaWorkflowTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/zuul/src/opendev.org/openstack/manila-ui/.tox/py36/lib/python3.6/site-packages/django/test/utils.py", line 373, in inner
    return func(*args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/manila-ui/manila_ui/tests/dashboards/identity/projects/tests.py", line 71, in test_tenant_quota_get
    self.assertEqual(step.action.initial['share_gigabytes'], 333)
AssertionError: <Mock name='mock().get().limit' id='140141435709592'> != 333

----------------------------------------------------------------------
Ran 349 tests in 44.649s

FAILED (failures=1)
Destroying test database for alias 'default'...
System check identified no issues (0 silenced).
Tests failed.
ERROR: InvocationError for command /bin/bash run_tests.sh -N --no-pep8 (exited with code 1)
py36 finish: run-test after 57.20 seconds
py36 start: run-test-post
py36 finish: run-test-post after 0.00 seconds

Tags: ci
Changed in manila-ui:
importance: Undecided → High
milestone: none → ussuri-client-release
Changed in manila-ui:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Changed in manila-ui:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-ui (master)

Fix proposed to branch: master
Review: https://review.opendev.org/717325

Changed in manila-ui:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila-ui (master)

Reviewed: https://review.opendev.org/717325
Committed: https://git.openstack.org/cgit/openstack/manila-ui/commit/?id=8dae688801b8235ac4bbbff4f2f14f0214e68ad5
Submitter: Zuul
Branch: master

commit 8dae688801b8235ac4bbbff4f2f14f0214e68ad5
Author: Victoria Martinez de la Cruz <email address hidden>
Date: Fri Apr 3 15:26:46 2020 +0000

    Use unittest.mock instead of third party mock

    Following openstack horizon change
    I2de669d8e89b8daeb7ee5405ffab35af6307c40b

    Now that we no longer support py27, we can use the standard library
    unittest.mock module instead of the third party mock lib.

    Unblocks currently broken pyX gates

    Change-Id: Id140c0a13c9d2a2bfcd1d851a04407f232021eef
    Closes-Bug: #1870436

Changed in manila-ui:
status: In Progress → 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.