mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Replaced nginx native with openresty for logout injection. Right now still buggy on nextcloud and espocrm
This commit is contained in:
@@ -5,7 +5,7 @@ import yaml
|
||||
class TestUniversalLogoutSetting(unittest.TestCase):
|
||||
ROLES_PATH = "roles/web-app-*/config/main.yml"
|
||||
|
||||
def test_universal_logout_defined(self):
|
||||
def test_logout_defined(self):
|
||||
files = glob.glob(self.ROLES_PATH)
|
||||
self.assertGreater(len(files), 0, f"No role config files found under {self.ROLES_PATH}")
|
||||
|
||||
@@ -23,16 +23,16 @@ class TestUniversalLogoutSetting(unittest.TestCase):
|
||||
if data is not None:
|
||||
features = data.get("features", {})
|
||||
|
||||
if "universal_logout" not in features:
|
||||
if "logout" not in features:
|
||||
errors.append(
|
||||
f"Missing 'universal_logout' setting in features of '{file_path}'. "
|
||||
"You must explicitly set 'universal_logout' to true or false for this app."
|
||||
f"Missing 'logout' setting in features of '{file_path}'. "
|
||||
"You must explicitly set 'logout' to true or false for this app."
|
||||
)
|
||||
else:
|
||||
val = features["universal_logout"]
|
||||
val = features["logout"]
|
||||
if not isinstance(val, bool):
|
||||
errors.append(
|
||||
f"The 'universal_logout' setting in '{file_path}' must be boolean true or false, "
|
||||
f"The 'logout' setting in '{file_path}' must be boolean true or false, "
|
||||
f"but found: {val} (type {type(val).__name__})"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user