test_search_service_policies test not passing on master

Bug #1660816 reported by Steve McLellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Critical
Steve McLellan

Bug Description

I suspect a recent change to oslo.policy is the culprit, but running tox on master results in the following error:

  FAIL: searchlight.tests.unit.v1.test_api_policy.TestSearchPolicy.test_search_service_policies
tags: worker-0
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  File "searchlight/tests/unit/v1/test_api_policy.py", line 304, in test_search_service_policies
    'get_images', fake_target, expect_creds)
  File "/Users/mclellst/openstack/searchlight/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "/Users/mclellst/openstack/searchlight/.tox/py27/lib/python2.7/site-packages/six.py", line 718, in raise_from
    raise value
  AssertionError: Expected call: enforce('get_images', {'project_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'tenant_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'user_id': '54492ba0-dead-beef-be62-27f4d76b29cf'}, {'project_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'roles': ['member'], 'is_admin_project': True, 'tenant_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'is_admin': False, 'project_domain_id': None, 'user_domain_id': None, 'user_id': '54492ba0-dead-beef-be62-27f4d76b29cf'})
Actual call: enforce('get_images', {'project_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'tenant_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'user_id': '54492ba0-dead-beef-be62-27f4d76b29cf'}, {'service_project_domain_id': None, 'service_project_id': None, 'is_admin_project': True, 'tenant_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'project_domain_id': None, 'roles': ['member'], 'user_id': '54492ba0-dead-beef-be62-27f4d76b29cf', 'project_id': '6838eb7b-6ded-dead-beef-b344c77fe8df', 'service_user_domain_id': None, 'service_roles': [], 'service_user_id': None, 'user_domain_id': None, 'is_admin': False})

It's not blocking CI yet but needs fixing.

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

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

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

Reviewed: https://review.openstack.org/427463
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=174284cafa7755bd47b35ee9301226d56fabc60b
Submitter: Jenkins
Branch: master

commit 174284cafa7755bd47b35ee9301226d56fabc60b
Author: Steve McLellan <email address hidden>
Date: Tue Jan 31 15:40:14 2017 -0600

    Fix search policy unit test failure

    A dependency change has started tests failing; this needs fixing.

    Change-Id: Ic41fadcb1b8ffbab3a986708402d781f446cf899
    Closes-Bug: #1660816

Changed in searchlight:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/searchlight 2.0.0.0rc1

This issue was fixed in the openstack/searchlight 2.0.0.0rc1 release candidate.

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.