Tests only cover Keystone v3

Bug #1239762 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Dan Nguyen

Bug Description

Although we support both Keystone v2 and v3, we only test with v3. There's no easy way to run the tests with both versions or run version-specific tests. This can cause issues at times, see e.g. https://review.openstack.org/#/c/51157/ when we expect Horizon to behave differently based on API active version but can't easily test it.

David Lyle (david-lyle)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
Julie Pichon (jpichon)
Changed in horizon:
importance: Low → Medium
Revision history for this message
Kent Wang (k.wang) wrote :

Hi is it Keystone v2 or v3? In openstack_dashboard.test.api_tests, for keystone_rest_tests and keystone_tests, I'm seeing v2 tests. Please help on which tests.

Changed in horizon:
assignee: nobody → Dan Nguyen (daniel-a-nguyen)
Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

It looks like the openstack dashboard tests are pointed to use v3 here.

https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/settings.py#L105

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/249476

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

If you run the patch above you should see this.

----------------------------------------------------------------------
Ran 1441 tests in 174.648s

FAILED (SKIP=11, errors=29, failures=6)
Destroying test database for alias 'default'...
Running flake8 ...
Tests failed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Dan Nguyen (<email address hidden>) on branch: master
Review: https://review.openstack.org/249476
Reason: Abandon this in favor of moving away from keystone v2.

Revision history for this message
David Lyle (david-lyle) wrote :

v2 has long been deprecated. d-o-a tests v2.

Changed in horizon:
status: In Progress → Won't Fix
importance: Medium → Undecided
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.