← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1767924] [NEW] Horizon Glance tests are not using v2

 

Public bug reported:

In the horizon tests we have data for V2 and models that look like the
V2 data.

Our tests don't use that, so even though our default version is V2, our tests are acting as if everything is v1:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/test_data/glance_data.py#L54
https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/unit/api/test_glance.py#L37-L38

We should be calling `self.imagesV2.list()` or better yet building it so
that the API constructs correctly pretend to be the correct version
based on the active version.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1767924

Title:
  Horizon Glance tests are not using v2

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In the horizon tests we have data for V2 and models that look like the
  V2 data.

  Our tests don't use that, so even though our default version is V2, our tests are acting as if everything is v1:
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/test_data/glance_data.py#L54
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/unit/api/test_glance.py#L37-L38

  We should be calling `self.imagesV2.list()` or better yet building it
  so that the API constructs correctly pretend to be the correct version
  based on the active version.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1767924/+subscriptions