Revert "Add an ability to configure allow_invisible_resource_usage"
This reverts commit 749e41b99f2c66b65b294bf7f273d232bf802bec.
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: Ic70408c884f45186ec113890d172caf7b9f3bc93
diff --git a/octavia_tempest_plugin/config.py b/octavia_tempest_plugin/config.py
index d056373..8573d89 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 554c59d..a279495 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)