diff options
author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2025-05-08 05:52:44 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 05:52:44 +1000 |
commit | 098f31c6fe7a6310594656efc0af5a2739ede82b (patch) | |
tree | a459e02e00c8848638e66a6ff121853a3f6a217c /tests/integration | |
parent | 7a4f22fc4a63bad749b4128495d7dae8917d0b0e (diff) | |
download | vyos.vyos-main.tar.gz vyos.vyos-main.zip |
* T7259 get_config() fix
* fix get_config calls
* vyos_config match=none integration test case
* get_config() update
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/targets/vyos_config/tests/cli/save.yaml | 4 | ||||
-rw-r--r-- | tests/integration/targets/vyos_config/tests/cli/simple.yaml | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/tests/integration/targets/vyos_config/tests/cli/save.yaml b/tests/integration/targets/vyos_config/tests/cli/save.yaml index e8a9035b..b39ef957 100644 --- a/tests/integration/targets/vyos_config/tests/cli/save.yaml +++ b/tests/integration/targets/vyos_config/tests/cli/save.yaml @@ -6,7 +6,7 @@ lines: set system host-name {{ inventory_hostname_short }} match: none -- name: configure hostaname and save +- name: configure hostname and save register: result vyos.vyos.vyos_config: lines: set system host-name foo @@ -17,7 +17,7 @@ - result.changed == true - "'set system host-name foo' in result.commands" -- name: configure hostaname and don't save +- name: configure hostname and don't save register: result vyos.vyos.vyos_config: lines: set system host-name bar diff --git a/tests/integration/targets/vyos_config/tests/cli/simple.yaml b/tests/integration/targets/vyos_config/tests/cli/simple.yaml index 3db59270..1559fa2b 100644 --- a/tests/integration/targets/vyos_config/tests/cli/simple.yaml +++ b/tests/integration/targets/vyos_config/tests/cli/simple.yaml @@ -25,6 +25,17 @@ that: - result.changed == false +- name: configure simple config command while match = 'none' + register: result + vyos.vyos.vyos_config: + lines: set system host-name foo + match: none + +- assert: + that: + - result.changed == true + - "'set system host-name foo' in result.commands" + - name: Delete services vyos.vyos.vyos_config: &id001 lines: |