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
patchback[bot] 82225e5850
jenkins_build: Support stop a running Jenkins build (#2850) (#2861)
* 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>
(cherry picked from commit 860b2b89a3)

Co-authored-by: Tong He <68936428+unnecessary-username@users.noreply.github.com>
2021-06-24 05:22:41 +00:00
..
cloud proxmox_kvm: Fix ZFS device string parsing (#2841) (#2846) 2021-06-20 13:05:16 +02:00
database Add module hana_query to make SAP HANA administration easier. (#2623) (#2651) 2021-05-27 19:07:04 +02:00
files Add module sapcar_extract to make SAP administration easier. (#2596) (#2705) 2021-06-04 07:55:41 +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) (#2842) 2021-06-19 15:00:21 +02:00
notification discord.py: Add new module for discord notifications (#2398) (#2493) 2021-05-11 20:05:59 +02:00
packaging npm - fix updating version specific modules (#2830) (#2839) 2021-06-18 22:50:24 +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) (#2506) 2021-05-14 10:34:47 +02:00
storage sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
system [PR #2731/6a41fba2 backport][stable-3] ModuleHelper - also uses LC_ALL to force language (#2736) 2021-06-07 13:27:30 +02:00
web_infrastructure jenkins_build: Support stop a running Jenkins build (#2850) (#2861) 2021-06-24 05:22:41 +00: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