summaryrefslogtreecommitdiff
path: root/test/integration/targets/cnos_command/tests/cli/contains.yaml
blob: 87a4035e72150b3750712847b0dbea18daef17e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- debug: msg="START cli/contains.yaml"

- name: test contains operator
  cnos_command:
    commands:
      - display version
      - display process memory 
    wait_for:
      - "result[0] contains 'Lenovo'"
      - "result[1] contains 'Mem:'"
  register: result

- assert:
    that:
      - "result.changed == false"
      - "result.stdout is defined"

- debug: msg="END cli/contains.yaml"