jenkins-job-builder/tests
Thanh Ha fd01e9e916
Fix confirm() util true state
The confirm() util incorrectly returns true only when the answer is
false. This patch reverses the logic so that it properly returns true
when the user inputs a true statement.

Include test case for delete-all command usage to accept or abort.
Mocking the input builtin ensures that the behaviour resulting from the
user inputting 'y' or 'n' will remain tested for delete-all.

Change-Id: I742804a8efe7da8ca6aa70f20059d02758910deb
Co-Authored-By: Darragh Bailey <dbailey@hpe.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2016-09-20 22:16:29 -04:00
..
builder Use JJBConfig() class 2016-09-16 10:58:54 -04:00
builders docker-build-publish: Add support for buildContext 2016-08-19 14:16:20 +02:00
cachestorage Move CacheStorage to its own module. 2016-09-02 08:58:09 -07:00
cmd Fix confirm() util true state 2016-09-20 22:16:29 -04:00
duplicates Update Git SCM so that extensions are configured correctly. 2016-06-06 13:35:04 -07:00
errors Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
general Added a doc entry and a test for jdk general parameter 2016-07-22 12:46:20 +02:00
hipchat Update Hipchat support to work w/all versions 2016-04-23 18:48:05 +01:00
jsonparser Update Git SCM so that extensions are configured correctly. 2016-06-06 13:35:04 -07:00
localyaml Move load_files method to YamlParser from Builder. 2016-07-22 17:33:53 +01:00
macros Update Repo plugin to use convert_mapping_to_xml 2016-07-19 23:40:43 -04:00
moduleregistry Use JJBConfig in ModuleRegistry. 2016-07-22 17:33:30 +01:00
modules Add valid_dict parameter to convert xml 2016-07-25 12:04:17 -04:00
notifications Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
parallel Rename "parallelize" decorator to "concurrent" 2016-08-18 22:47:48 -04:00
parameters Adding support for Hidden parameter plugin 2016-08-17 08:57:35 +02:00
properties Update Delivery Pipeline plugin to use convert xml 2016-07-27 22:01:34 -04:00
publishers Merge "Update junit plugin" 2016-09-14 19:30:24 +00:00
reporters Add support for OWASP Dependency-Check Plugin 2016-04-23 16:21:17 +01:00
scm Merge "SCM repo: add ignore-projects option" 2016-07-19 17:06:50 +00:00
triggers Add support for Parameterized Scheduler Plugin 2016-08-31 20:10:00 +02:00
wrappers Merge "Convert jclouds example to unit test" 2016-08-30 03:33:19 +00:00
yamlparser add post-send script option 2016-08-19 08:27:31 +08:00
__init__.py Tests for publishers 2013-07-19 14:31:11 +02:00
base.py Factor XmlJobGenerator out of YamlParser. 2016-08-18 22:42:24 -04:00