mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
jenkins_job: extend integration tests (#17558)
This commit is contained in:
parent
da4c3ebeac
commit
28feba2fb3
1 changed files with 15 additions and 0 deletions
|
@ -13,6 +13,21 @@
|
||||||
that:
|
that:
|
||||||
- result|success
|
- result|success
|
||||||
|
|
||||||
|
- name: test fail on missing params
|
||||||
|
local_action:
|
||||||
|
module: jenkins_job
|
||||||
|
name: test.job
|
||||||
|
url: "{{ jenkins_url }}"
|
||||||
|
user: "{{ jenkins_user }}"
|
||||||
|
password: "{{ jenkins_password }}"
|
||||||
|
register: result
|
||||||
|
ignore_errors: true
|
||||||
|
- name: verify test fail on missing params
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- result|failed
|
||||||
|
- 'result.msg == "one of the following params is required on state=present: config,enabled"'
|
||||||
|
|
||||||
- name: test create a job
|
- name: test create a job
|
||||||
local_action:
|
local_action:
|
||||||
module: jenkins_job
|
module: jenkins_job
|
||||||
|
|
Loading…
Add table
Reference in a new issue