← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1599904] Re: There is no API sample functional test for listing keypairs for another user

 

Reviewed:  https://review.openstack.org/347462
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=260bb7cbf638a4efee708c0c901495905a4c66eb
Submitter: Jenkins
Branch:    master

commit 260bb7cbf638a4efee708c0c901495905a4c66eb
Author: Pavel Kholkin <pkholkin@xxxxxxxxxxxx>
Date:   Tue Jul 26 18:54:36 2016 +0300

    test_keypairs_list_for_different_users for v2.10
    
    Added functional api_sample_test for keypair-list command
    for different users for microversion v2.10
    
    Closes-Bug: #1599904
    
    Change-Id: I92cd06efeafb00f5f4678e94185789026896be3a


** Changed in: nova
       Status: In Progress => Fix Released

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

Title:
  There is no API sample functional test for listing keypairs for
  another user

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  The os-keypairs API allows listing keypairs for another user if you're
  an admin, else it defaults to just listing keypairs for the current
  context.user_id.

  We don't actually test that in the API sample functional tests though,
  we only test the case that a user creates their own keypair and then
  lists it back out:

  https://github.com/openstack/nova/blob/00b29d86e28b3d00cc8d854a0a721f4b29ab4cd5/nova/tests/functional/api_sample_tests/test_keypairs.py#L74

  We should have a functional API sample test for creating a keypair for
  a non-admin user, and then an admin user listing the keypairs for that
  user.

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


References