forked from ansible/ansible
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "commented out check tests (ansible#35788)" This reverts commit 3df2561. * `discard_changes()` now uses `exit discard` instead of just `discard`. Also a slight tweak to avoid a second `exit` after `exit discard`
- Loading branch information
Showing
3 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
test/integration/targets/vyos_smoke/tests/cli/misc_tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# hit check conditional in module_utils.network.vyos -> load_config() | ||
# - name: configure simple config command | ||
# vyos_config: | ||
# lines: set system host-name check-test | ||
# check_mode: yes | ||
# | ||
# - name: get host name | ||
# vyos_command: | ||
# commands: show host name | ||
# register: result | ||
# | ||
# - assert: | ||
# that: '"check-test" not in result.stdout' | ||
- name: configure simple config command | ||
vyos_config: | ||
lines: set system host-name check-test | ||
check_mode: yes | ||
|
||
- name: get host name | ||
vyos_command: | ||
commands: show host name | ||
register: result | ||
|
||
- assert: | ||
that: '"check-test" not in result.stdout' |