Issue #39860: Add 'not_contains' method to parsing.py (#39874)

* Issue #39860: Add 'not_contains' method to parsing.py

* Issue #30860 Adds self.negate to Conditional class in lib/ansible/module_utils/network/common/parsing.py

* Issue #39860 Fix singleton-comparison issue per sanity tests

* Issue #39860 'test/integration/targets/nxos_command/tests/cli/not_comparison_operator.yaml' integration test

* Issue #39860 Add unit tests to '../../test/units/module_utils/network/common/test_parsing.py'

* Issue #39860 Fix singleton comparison issue

* Fix E302 expected 2 blank lines, found 1

* Issue #39860 Add license header to unit tests

* Issue #39860 Move integration test to 'test/integration/targets/nxos_command/tests/common/'; remove unnecessary comment from unit test

* Issue #39860 remove unnecessary comment from unit test
This commit is contained in:
Eitan Akman 2018-06-27 00:51:17 -04:00 committed by Trishna Guha
commit fb7882bf86
3 changed files with 76 additions and 3 deletions

View file

@ -0,0 +1,18 @@
---
- debug: msg="START common/not_comparison_operator.yaml on connection={{ ansible_connection }}"
- name: test 'not' keyword in wait_for
nxos_command:
commands:
- show version
wait_for:
- "result[0] not contains QWERTYQWERTYQWERTY"
- "result[0] == not QWERTYQWERTYQWERTY"
- "result[0] matches not QWERTYQWERTYQWERTY"
register: result
- assert:
that:
- "result.changed == false"
- debug: msg="END common/not_comparison_operator.yaml on connection={{ ansible_connection }}"