yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #53512
[Bug 1599904] [NEW] There is no API sample functional test for listing keypairs for another user
Public bug reported:
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.
** Affects: nova
Importance: Medium
Status: Triaged
** Tags: low-hanging-fruit needs-functional-test testing
--
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):
Triaged
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
Follow ups