File: custom_perl_want_json_module.yml

package info (click to toggle)
python-mitogen 0.3.26-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,456 kB
  • sloc: python: 22,134; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (25 lines) | stat: -rw-r--r-- 681 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- name: integration/runner/custom_perl_want_json_module.yml
  hosts: test-targets
  tasks:
    - custom_perl_want_json_module:
        foo: true
      with_sequence: start=1 end={{end|default(1)}}
      register: out

    - assert:
        that:
        - out.results[0].input.foo
        - out.results[0].message == 'I am a want JSON perl script! Here is my input.'
        fail_msg: |
          out={{ out }}

    - assert:
        that:
        - (not out.changed)
        - (not out.results[0].changed)
        fail_msg: |
          out={{ out }}
      when:
        - ansible_version_major_minor is version('2.4', '>=', strict=True)
  tags:
    - custom_perl_want_json_module