File: remote_name.yml

package info (click to toggle)
python-mitogen 0.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,728 kB
  • sloc: python: 24,644; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (37 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
# issue #581: ensure mitogen_mask_remote_name is respected.

- name: integration/context_service/remote_name.yml
  hosts: test-targets[0]
  tasks:
  - include_tasks: ../_mitogen_only.yml

  # Too much hassle to make this work for OSX
  - meta: end_play
    when: ansible_system != 'Linux'

  - name: Get cmdline
    shell: 'cat /proc/$PPID/cmdline | tr \\0 \\n'
    register: out
  - debug: var=out

  - assert:
      that:
      - out.stdout is match('.*python([0-9.]+)?\(mitogen:[a-z]+@[^:]+:[0-9]+\)')
      fail_msg: |
        out={{ out }}

  - name: Get cmdline, with mitogen_mask_remote_name
    shell: 'cat /proc/$PPID/cmdline | tr \\0 \\n'
    register: out
    vars:
      mitogen_mask_remote_name: true
  - debug: var=out

  - assert:
      that:
      - out.stdout is match('.*python([0-9.]+)?\(mitogen:ansible\)')
      fail_msg: |
        out={{ out }}
  tags:
    - mitogen_only
    - remote_name