← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1806053] Re: APITestCase still needs to be patched utils.patch_middleware_get_user()

 

This bug was fixed in the package horizon - 3:14.0.2-0ubuntu4~cloud0
---------------

 horizon (3:14.0.2-0ubuntu4~cloud0) bionic-rocky; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 horizon (3:14.0.2-0ubuntu4) cosmic; urgency=medium
 .
   * d/p/*-monkey-patching-for-APITestCase.patch: Cherry-picked from
     upstream stable/rocky branch to fix unit tests for plugin dashboards
     (LP: #1806053).
 .
 horizon (3:14.0.2-0ubuntu3) cosmic; urgency=medium
 .
   * d/p/drop-devicename-creating-server-with-image-boot-to-volume.patch:
     When creating a server using an image boot source to new volume,
     horizon specified device_name 'vda'. If for instance we use an image
     with disk_bus type scsi, horizon will name the device_name as 'vda'
     when it should be 'sda'. As per BDMv2 documentation, it's best to not
     specify device_name. (LP: #1822129)


** Changed in: cloud-archive/rocky
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1806053

Title:
  APITestCase still needs to be patched
  utils.patch_middleware_get_user()

Status in Ubuntu Cloud Archive:
  Fix Committed
Status in Ubuntu Cloud Archive queens series:
  Invalid
Status in Ubuntu Cloud Archive rocky series:
  Fix Released
Status in Ubuntu Cloud Archive stein series:
  Fix Committed
Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in horizon package in Ubuntu:
  Fix Released
Status in neutron-fwaas-dashboard package in Ubuntu:
  Fix Released
Status in horizon source package in Bionic:
  Invalid
Status in neutron-fwaas-dashboard source package in Bionic:
  Invalid
Status in horizon source package in Cosmic:
  Fix Released
Status in neutron-fwaas-dashboard source package in Cosmic:
  Fix Committed
Status in horizon source package in Disco:
  Fix Released
Status in neutron-fwaas-dashboard source package in Disco:
  Fix Committed
Status in horizon source package in Eoan:
  Fix Released
Status in neutron-fwaas-dashboard source package in Eoan:
  Fix Released

Bug description:
  After merging commit 0d163613265e036818fe567793a4fc88fe140d4a, we see
  some UT breakage in horizon plugins.

  bgpvpn-dashboard https://bugs.launchpad.net/bgpvpn/+bug/1805240
  neutron-fwaas-dashboard https://review.openstack.org/621155
  neutron-vpnaas-dashboard https://review.openstack.org/621152

  Previously APITestCase called patch_middleware_get_user explicitly,
  but the commit above dropped it. This seems to trigger the above UT
  failures.

  
  -------------------------------------

  
  SRU Details for Ubuntu
  ----------------------

  [Impact]
  See above.

  Also, building a horizon dashboard package, such as neutron-fwaas-
  dashboard, will result in several unit test failures such due to
  "AttributeError: 'AnonymousUser' object has no attribute 'token'".

  [Test Case]
  Build the horizon and neutron-fwaas-dashboard packages.

  [Regression Potential]
  Very minimal as the changes update test code only.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1806053/+subscriptions


References