-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chart): Add config to control disabling Grid UI (#2083)
Signed-off-by: Viet Nguyen Duc <[email protected]>
- Loading branch information
Showing
8 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ def test_sub_path_append_to_node_grid_url(self): | |
count = 0 | ||
for doc in LIST_OF_DOCUMENTS: | ||
if doc['metadata']['name'] in resources_name and doc['kind'] == 'ConfigMap': | ||
logger.info(f"Assert subPath is appended to node grid url") | ||
logger.info(f"Assert subPath is appended to Node env SE_NODE_GRID_URL") | ||
self.assertTrue(doc['data']['SE_NODE_GRID_URL'] == 'https://sysadmin:[email protected]:8443/selenium') | ||
count += 1 | ||
self.assertEqual(count, len(resources_name), "No node config resources found") | ||
|
@@ -60,13 +60,25 @@ def test_sub_path_set_to_grid_env_var(self): | |
is_present = False | ||
for doc in LIST_OF_DOCUMENTS: | ||
if doc['metadata']['name'] in resources_name and doc['kind'] == 'Deployment': | ||
logger.info(f"Assert subPath is set to grid ENV variable") | ||
logger.info(f"Assert subPath is set to Router env SE_SUB_PATH") | ||
list_env = doc['spec']['template']['spec']['containers'][0]['env'] | ||
for env in list_env: | ||
if env['name'] == 'SE_SUB_PATH' and env['value'] == '/selenium': | ||
is_present = True | ||
self.assertTrue(is_present, "ENV variable SE_SUB_PATH is not populated") | ||
|
||
def test_disable_ui_set_to_grid_env_var(self): | ||
resources_name = ['selenium-router'] | ||
is_present = False | ||
for doc in LIST_OF_DOCUMENTS: | ||
if doc['metadata']['name'] in resources_name and doc['kind'] == 'Deployment': | ||
logger.info(f"Assert option disable UI is set to Router env SE_DISABLE_UI") | ||
list_env = doc['spec']['template']['spec']['containers'][0]['env'] | ||
for env in list_env: | ||
if env['name'] == 'SE_DISABLE_UI' and env['value'] == 'true': | ||
is_present = True | ||
self.assertTrue(is_present, "ENV variable SE_DISABLE_UI is not populated") | ||
|
||
def test_log_level_set_to_logging_config_map(self): | ||
resources_name = ['selenium-chrome-node', 'selenium-distributor', 'selenium-edge-node', 'selenium-firefox-node', | ||
'selenium-event-bus', 'selenium-router', 'selenium-session-map', 'selenium-session-queue'] | ||
|