diff options
author | GomathiselviS <gomathiselvi@gmail.com> | 2022-03-09 20:20:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 01:20:40 +0000 |
commit | 87c5dcb6a147738d2b1ea60993018822a5baf21e (patch) | |
tree | db52c89beb42a4eb3242d059c79dbf3dcc6c3140 /tests/integration/targets/vyos_hostname | |
parent | 8208b02f6f5d5956ccd8d28fdf925cf580011712 (diff) | |
download | vyos-ansible-collection-87c5dcb6a147738d2b1ea60993018822a5baf21e.tar.gz vyos-ansible-collection-87c5dcb6a147738d2b1ea60993018822a5baf21e.zip |
Change preconfig hostname in integration test (#243)
Change preconfig hostname in integration test
SUMMARY
ISSUE TYPE
Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: None <None>
Diffstat (limited to 'tests/integration/targets/vyos_hostname')
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml index 4d33289..b8cb5f4 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml @@ -2,7 +2,7 @@ - name: setup vyos.vyos.vyos_config: lines: - - set system host-name 'vyos' + - set system host-name 'vyosuser' ignore_errors: true vars: ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml index 229c79c..9850e2f 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml @@ -1,8 +1,8 @@ --- -- name: Remove pre-existing hostname config - vyos.vyos.vyos_hostname: - config: - state: deleted +- name: Delete Hostname vyosuser + vyos.vyos.vyos_config: + lines: + - delete system host-name 'vyosuser' ignore_errors: true vars: ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/vars/main.yaml b/tests/integration/targets/vyos_hostname/vars/main.yaml index a6b4986..615da43 100644 --- a/tests/integration/targets/vyos_hostname/vars/main.yaml +++ b/tests/integration/targets/vyos_hostname/vars/main.yaml @@ -8,5 +8,5 @@ merged: deleted: commands: - - delete system host-name vyos + - delete system host-name vyosuser after: {} |