Add UI unit tests to job settings

This commit is contained in:
Marliana Lara
2022-02-01 15:47:10 -05:00
committed by Marcelo Moreira de Mello
parent 5e8107621e
commit 169da866f3
4 changed files with 22 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ describe('<JobsDetail />', () => {
assertDetail(wrapper, 'Default Project Update Timeout', '0 seconds'); assertDetail(wrapper, 'Default Project Update Timeout', '0 seconds');
assertDetail(wrapper, 'Per-Host Ansible Fact Cache Timeout', '0 seconds'); assertDetail(wrapper, 'Per-Host Ansible Fact Cache Timeout', '0 seconds');
assertDetail(wrapper, 'Maximum number of forks per job', '200'); assertDetail(wrapper, 'Maximum number of forks per job', '200');
assertDetail(wrapper, 'Expose host paths for Container Groups', 'Off');
assertVariableDetail( assertVariableDetail(
wrapper, wrapper,
'Ansible Modules Allowed for Ad Hoc Jobs', 'Ansible Modules Allowed for Ad Hoc Jobs',

View File

@@ -276,6 +276,15 @@
"category_slug": "jobs", "category_slug": "jobs",
"default": false "default": false
}, },
"AWX_MOUNT_ISOLATED_PATHS_ON_K8S": {
"type": "boolean",
"required": false,
"label": "Expose host paths for Container Groups",
"help_text": "Expose paths via hostPath for the Pods created by a Container Group. HostPath volumes present many security risks, and it is a best practice to avoid the use of HostPaths when possible. ",
"category": "Jobs",
"category_slug": "jobs",
"default": false
},
"GALAXY_IGNORE_CERTS": { "GALAXY_IGNORE_CERTS": {
"type": "boolean", "type": "boolean",
"required": false, "required": false,
@@ -3973,6 +3982,14 @@
"category_slug": "jobs", "category_slug": "jobs",
"defined_in_file": false "defined_in_file": false
}, },
"AWX_MOUNT_ISOLATED_PATHS_ON_K8S": {
"type": "boolean",
"label": "Expose host paths for Container Groups",
"help_text": "Expose paths via hostPath for the Pods created by a Container Group. HostPath volumes present many security risks, and it is a best practice to avoid the use of HostPaths when possible. ",
"category": "Jobs",
"category_slug": "jobs",
"defined_in_file": false
},
"GALAXY_IGNORE_CERTS": { "GALAXY_IGNORE_CERTS": {
"type": "boolean", "type": "boolean",
"label": "Ignore Ansible Galaxy SSL Certificate Verification", "label": "Ignore Ansible Galaxy SSL Certificate Verification",

View File

@@ -297,5 +297,6 @@
"users":{"fields":["username"],"adj_list":[]}, "users":{"fields":["username"],"adj_list":[]},
"instances":{"fields":["hostname"],"adj_list":[]} "instances":{"fields":["hostname"],"adj_list":[]}
}, },
"DEFAULT_EXECUTION_ENVIRONMENT": 1 "DEFAULT_EXECUTION_ENVIRONMENT": 1,
"AWX_MOUNT_ISOLATED_PATHS_ON_K8S": false
} }

View File

@@ -21,5 +21,6 @@
"DEFAULT_INVENTORY_UPDATE_TIMEOUT": 0, "DEFAULT_INVENTORY_UPDATE_TIMEOUT": 0,
"DEFAULT_PROJECT_UPDATE_TIMEOUT": 0, "DEFAULT_PROJECT_UPDATE_TIMEOUT": 0,
"ANSIBLE_FACT_CACHE_TIMEOUT": 0, "ANSIBLE_FACT_CACHE_TIMEOUT": 0,
"MAX_FORKS": 200 "MAX_FORKS": 200,
"AWX_MOUNT_ISOLATED_PATHS_ON_K8S": false
} }