Commit Graph

11 Commits

Author SHA1 Message Date
Vsevolod Fedorov eb08e60765 Story 2011049: Delete also old views when --delete-old option is specified
Improve 'update' command to handle old views also, not just jobs.

Task: 49601

Change-Id: I60431f662d5a69c084b2698d08104a1524d02767
2024-03-25 12:47:40 +03:00
Vsevolod Fedorov 28d00a0e28 Update jenkins_manager/test_manager test
After JJB internals are changed, some of the tests became unuseful.

Change-Id: Ib5583d77bd2c4fc5ef31d5062029f047e8e94fd4
2022-12-20 10:44:43 +03:00
Vsevolod Fedorov f4d64f9f66 Move tests to pytest
Pytest makes each scenario into individual selectable test.
To be able to run each scenario separately is very useful for development.

Change-Id: I4b1c990a1fd839ce327cd7faa27159a9b9632fed
2022-12-20 10:44:43 +03:00
Thanh Ha 4d90c187a9 Auto-generated output from python-black
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.

Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2019-09-09 19:23:24 +01:00
Ayoub Elhamdani e0f19f39cd Delete old managed folders when calling update subcommand with --delete-old option
This should be merged first https://review.openstack.org/#/c/519340/

Change-Id: I8ed1540b024bfcfaad1221d4e4a0da4a56b56c3c
Task: 5834
Story: 2001286
2018-04-05 11:36:36 +00:00
Darragh Bailey af9d984baa
Basic folder support
Allows specifying a folder attribute for each job generated, which in
turn is used when creating or uploading to place the job under the
requested folder.

The job name is expanded after defaults are applied, to support the
attribute being defined within a set of defaults applied to a number of
jobs.

This in turn allows for multiple jobs with the same basename to exist,
provided they are targeted at different folders.

Does not support creating the folders if they do not exist.

Change-Id: I8c2157c4c81087cc972a048d1b88d5f08ac65361
2017-10-23 13:29:21 -04:00
zhangyangyang 8744b5b1a5 change assert(Not)Equals to assert(Not)Equal
According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: Ibadf2b2c6cb09db6f5cc191240aad2ac8cb4ea33
Closes-Bug: #1329757
2017-09-13 17:24:13 +08:00
Daniel Watkins cc200dade0 Use default plugin list when listing Forbidden
Listing the plugins installed on a Jenkins instance requires full
administrative permissions.  For cases where we don't have permission to
read the plugin list, we should just fall back to the default list.

Story: 2000618
Task: 3052

Change-Id: I924f237f5f175216200668d133092f2357f6d9d3
2017-07-31 09:53:12 -04:00
Sorin Sbarnea 8a7d77c180 Removed some deprecation warnings and enabled py35 on tox.
Change-Id: Icc5b28c4636b542a10502b7b1d2d2dc2028cc166
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2017-03-12 19:43:33 +00:00
Darragh Bailey bfb18520e6 Ensure keep is an iterable
If no value is provided for 'keep' when calling delete_old_managed,
ensure a default empty iterable is used to prevent an exception.

Change-Id: I3110f8e03e287a6ff067b992ed8631e34121a8d2
2016-11-14 13:40:03 +00:00
Darragh Bailey 949a3a61e1 Rename JenkinsManager tests
Change-Id: I3d372dd4697e65ba6a539d1e04c54a7d0143f62e
2016-11-14 13:16:57 +00:00