1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/modules
Tong He 860b2b89a3
jenkins_build: Support stop a running Jenkins build (#2850)
* Support stop a running Jenkins build. Meanwhile enrich document content and test cases.

* Fix the inconsistencies regarding the function name.

* Submit the changelog and fix a PEP8 issue.

* Remedy whitespace related PEP8 issues.

* Implement the idempotent test case for the stop build function.

* Make sure it returns proper changed status when we stop a build repeatedly.

* Fix incorrect usages on comparison with True or False and incorrect usages on validating the changed status.

* In this mocking situation, adjust the mock return value and test case to perform unit testing.

* Implement JenkinsMockIdempotent() to mock return value in idempotent test cases.

* Fix issues reported by CI.

* Refactor the code to avoid CI exception and remove get_build_status() from mock function as they should not be there.

* Update plugins/modules/web_infrastructure/jenkins_build.py

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-06-23 23:29:50 +02:00
..
cloud proxmox_kvm: Fix ZFS device string parsing (#2841) 2021-06-20 12:42:19 +02:00
database Add module hana_query to make SAP HANA administration easier. (#2623) 2021-05-27 18:46:12 +02:00
files Add module sapcar_extract to make SAP administration easier. (#2596) 2021-06-04 07:36:35 +02:00
identity Keycloak: add realm management (#2155) 2021-04-21 12:42:28 +02:00
messaging Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
monitoring StatsD Module (#1793) 2021-02-16 11:46:39 +01:00
net_tools Nmcli add options (#2732) 2021-06-19 14:42:05 +02:00
notification discord.py: Add new module for discord notifications (#2398) 2021-05-11 19:31:46 +02:00
packaging npm - fix updating version specific modules (#2830) 2021-06-18 22:08:46 +02:00
remote_management add new module xcc_redfish_command to manage Lenovo servers using Redfish APIs (#2007) 2021-03-24 15:07:17 +01:00
source_control gitlab_user: add expires_at option (#2450) 2021-05-14 10:00:59 +02:00
storage sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
system ModuleHelper - also uses LC_ALL to force language (#2731) 2021-06-07 13:06:23 +02:00
web_infrastructure jenkins_build: Support stop a running Jenkins build (#2850) 2021-06-23 23:29:50 +02:00
__init__.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
conftest.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
utils.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00