Temporarily delete two bad tests for consumers
These two tests are breaking the gate in barbican for a bugfix patch. [1] As currently written, the tests are checking the buggy behavior and they break with the bugfix. The main issue with the tests is that the different persona classes are not overriding the cls.consumer_client object to match the persona under test. This results in the member client being used throughout, which before the bufix was wrongly returning a 403. These test are being re-written in a follow up patch. [2] [1] https://review.opendev.org/c/openstack/barbican/+/816756/ [2] https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/815071 Change-Id: I8698fc7a9ac849b8c24adfe824ca44dd3e42b999
This commit is contained in:
@@ -235,31 +235,10 @@ class ProjectReaderTests(base.BarbicanV1RbacBase, BarbicanV1RbacContainers):
|
||||
self.container_id)
|
||||
|
||||
def test_list_container_consumers(self):
|
||||
resp = self.create_empty_container_admin(
|
||||
'test_reader_list_container_consumers')
|
||||
container_id = self.ref_to_uuid(resp['container_ref'])
|
||||
|
||||
resp = self.add_consumer_to_container_admin(
|
||||
consumer_name='test_reader_list_container_consumer',
|
||||
consumer_url=resp['container_ref'],
|
||||
container_id=container_id)
|
||||
|
||||
self.assertRaises(
|
||||
exceptions.Forbidden,
|
||||
self.consumer_client.list_consumers_in_container,
|
||||
container_id=container_id)
|
||||
pass
|
||||
|
||||
def test_create_container_consumer(self):
|
||||
resp = self.create_empty_container_admin(
|
||||
'test_reader_create_container_consumer_container')
|
||||
container_id = self.ref_to_uuid(resp['container_ref'])
|
||||
|
||||
self.assertRaises(
|
||||
exceptions.Forbidden,
|
||||
self.consumer_client.add_consumer_to_container,
|
||||
name='test_reader_create_container_consumer',
|
||||
URL=resp['container_ref'],
|
||||
container_id=container_id)
|
||||
pass
|
||||
|
||||
def test_get_container_consumer(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user