Use 'id' instead of 'protocol_id' in federation protocol tests
The actual attribute returned in object references of the /protocols API
is 'id', as in all other keystone APIs that return objects. The
implementation of new_ref() here doesn't actually include an 'id'
reference though, and goes out of it's way to test the wrong thing. This
patch fix that, eliminates the workarounds, and does a touch of
refactoring to bring these tests in line with tests of other client
managers.
Reviewed: https:/ /review. openstack. org/181945 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=3f757656a48 5d3cec1a56fe4d3 f9f07a313a74c7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3f757656a485d3c ec1a56fe4d3f9f0 7a313a74c7
Author: Dolph Mathews <email address hidden>
Date: Mon May 11 15:40:33 2015 +0000
Use 'id' instead of 'protocol_id' in federation protocol tests
The actual attribute returned in object references of the /protocols API
is 'id', as in all other keystone APIs that return objects. The
implementation of new_ref() here doesn't actually include an 'id'
reference though, and goes out of it's way to test the wrong thing. This
patch fix that, eliminates the workarounds, and does a touch of
refactoring to bring these tests in line with tests of other client
managers.
Change-Id: I9a272b3ef91934 e780106d89b5091 b4bfb87ad29
Closes-Bug: 1453847