python-jenkins/tests
Tomas Janousek 49d6c92d0c Clean up job/folder path handling
Avoid repeatedly serializing and splitting the root path component of
jobs being added to the list to be processed and returned.

Attempting to split a string path using 'job' introduces a bug if a job
ever happens to also use the name 'job' as part of its name. This could
be fixed by using root.split('/job/') but it still seems hackish.

Maintain the root path to the folder in the hierarchy as a list of path
components, add to it when descending and store the result of joining
it with '/job/' as a separate variable to avoid needing to re-parse.

Change-Id: I074ad74ad935c50716141a79822ca84999734c3f
2018-10-17 18:06:56 +02:00
..
jobs Clean up job/folder path handling 2018-10-17 18:06:56 +02:00
__init__.py Fixes for this bug. 2012-05-17 16:10:00 +01:00
base.py Test requested URLs in test_getall 2018-10-17 18:06:56 +02:00
helper.py Check for 'Location' header in the response 2018-06-25 12:59:38 +03:00
test_build.py Add functions to retrieve more data from Jenkins 2018-04-25 13:30:29 +01:00
test_credential.py Add folder credential support 2018-08-03 06:39:13 +03:00
test_info.py Migration to using requests 2018-02-12 11:16:54 +00:00
test_jenkins_sockets.py Revert "detect and respect http redirects" 2018-08-24 13:12:38 -04:00
test_jenkins.py Allow adding extra HTTP headers to Jenkins requests 2018-09-12 13:42:23 +02:00
test_job_folder.py Adds Cloudbees folder plugin support 2015-09-21 18:25:35 +01:00
test_node.py Update URLS that require depth or tree filters 2018-05-28 10:17:26 +01:00
test_plugins.py Revert "detect and respect http redirects" 2018-08-24 13:12:38 -04:00
test_promotion.py Migration to using requests 2018-02-12 11:16:54 +00:00
test_queue.py Update URLS that require depth or tree filters 2018-05-28 10:17:26 +01:00
test_quiet_down.py Migration to using requests 2018-02-12 11:16:54 +00:00
test_rest_endpoints.py Update URLS that require depth or tree filters 2018-05-28 10:17:26 +01:00
test_script.py Revert "detect and respect http redirects" 2018-08-24 13:12:38 -04:00
test_version.py Migration to using requests 2018-02-12 11:16:54 +00:00
test_view.py Added folder support in views keeping backward compatibility and added tests for it. 2018-04-05 22:57:34 +02:00
test_whoami.py Update URLS that require depth or tree filters 2018-05-28 10:17:26 +01:00