Revert "Add an ability to configure allow_invisible_resource_usage"
This reverts commit c45c90d6ced17057a0d4dd9daa0ea1af2355aa81.
Reason for revert: currently octavia returns 403 with
allow_invisible_resource_usage
set to True as well as when set to False
no need to this option in tempest.
Related-Prod: https://mirantis.jira.com/browse/PRODX-6597
Change-Id: If30edbdcc1b2c3cd9436182b4d5f8e11cd419afc
diff --git a/octavia_tempest_plugin/config.py b/octavia_tempest_plugin/config.py
index ce1d300..bd9c8fb 100644
--- a/octavia_tempest_plugin/config.py
+++ b/octavia_tempest_plugin/config.py
@@ -45,10 +45,6 @@
cfg.StrOpt('catalog_type',
default='load-balancer',
help='Catalog type of the Octavia service.'),
- cfg.BoolOpt('allow_invisible_resource_usage',
- default=False,
- help='Ability to use network resources that user cannot see '
- 'or "show" on load balancers.'),
cfg.StrOpt('endpoint_type',
default='publicURL',
choices=['public', 'admin', 'internal',
diff --git a/octavia_tempest_plugin/tests/api/v2/test_member.py b/octavia_tempest_plugin/tests/api/v2/test_member.py
index d9f5040..a84e121 100644
--- a/octavia_tempest_plugin/tests/api/v2/test_member.py
+++ b/octavia_tempest_plugin/tests/api/v2/test_member.py
@@ -157,15 +157,11 @@
member_kwargs[const.SUBNET_ID] = self.lb_member_vip_subnet[
const.ID]
- create_member_exception = exceptions.BadRequest
- if CONF.load_balancer.allow_invisible_resource_usage:
- create_member_exception = exceptions.Forbidden
-
# Test that a user without the load balancer role cannot
# create a member
if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
self.assertRaises(
- create_member_exception,
+ exceptions.Forbidden,
self.os_primary.member_client.create_member,
**member_kwargs)