There is no API sample functional test for listing keypairs for another user
Bug #1599904 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Pavel Kholkin |
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:
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.
Changed in nova: | |
assignee: | nobody → Anusha Unnam (anusha-unnam) |
Changed in nova: | |
assignee: | Anusha Unnam (anusha-unnam) → Pavel Kholkin (pkholkin) |
status: | Triaged → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/284868 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=47358449d35 9a287d21426b4e1 f18479a4d1fd36
Committed: https:/
Submitter: Jenkins
Branch: master
commit 47358449d359a28 7d21426b4e1f184 79a4d1fd36
Author: Pavel Kholkin <email address hidden>
Date: Wed Jul 6 15:02:11 2016 +0300
Microversion 2.35 adds keypairs pagination support
After this microversion Nova API allows to get several keypairs
with the help of new optional parameters 'limit' and 'marker'
which were added to GET /os-keypairs request.
Partial-Bug: #1599904
Implements blueprint: keypairs-pagination
Change-Id: Idd3757f5be90ec 4af1bd1a7ca3f9c 20319dbfd33