summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorRohit Thakur <rohitthakur2590@outlook.com>2020-05-11 13:48:29 +0530
committerRohit Thakur <rohitthakur2590@outlook.com>2020-05-11 13:48:29 +0530
commit44a2e8c885b1d050f9a36fc095403c1568cc1cfd (patch)
treea798b78bcc39d3c94d5fe50afdd526e414a2cfe3 /tests/integration
parente584c5ce7db0adbdcced3427411bbd82c6dc1b68 (diff)
downloadvyos-ansible-old-44a2e8c885b1d050f9a36fc095403c1568cc1cfd.tar.gz
vyos-ansible-old-44a2e8c885b1d050f9a36fc095403c1568cc1cfd.zip
comments incorporated
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/targets/vyos_ospfv3/tests/cli/deleted.yaml4
-rw-r--r--tests/integration/targets/vyos_ospfv3/tests/cli/merged_update.yaml2
-rw-r--r--tests/integration/targets/vyos_ospfv3/vars/main.yaml64
3 files changed, 36 insertions, 34 deletions
diff --git a/tests/integration/targets/vyos_ospfv3/tests/cli/deleted.yaml b/tests/integration/targets/vyos_ospfv3/tests/cli/deleted.yaml
index d400ff1..55bec18 100644
--- a/tests/integration/targets/vyos_ospfv3/tests/cli/deleted.yaml
+++ b/tests/integration/targets/vyos_ospfv3/tests/cli/deleted.yaml
@@ -7,7 +7,7 @@
- block:
- - name: Delete attributes of firewall.
+ - name: Delete ospfv3 routes
register: result
vyos.vyos.vyos_ospfv3: &id001
config:
@@ -29,7 +29,7 @@
that:
- "{{ deleted['after'] == result['after'] }}"
- - name: Delete attributes of given interfaces (IDEMPOTENT)
+ - name: Delete ospfv3 routes (IDEMPOTENT)
register: result
vyos.vyos.vyos_ospfv3: *id001
diff --git a/tests/integration/targets/vyos_ospfv3/tests/cli/merged_update.yaml b/tests/integration/targets/vyos_ospfv3/tests/cli/merged_update.yaml
index a65cfaf..0d506b3 100644
--- a/tests/integration/targets/vyos_ospfv3/tests/cli/merged_update.yaml
+++ b/tests/integration/targets/vyos_ospfv3/tests/cli/merged_update.yaml
@@ -58,4 +58,4 @@
- "{{ merged_update['after'] == result['before'] }}"
always:
- - include_tasks: _remove_config.yaml \ No newline at end of file
+ - include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_ospfv3/vars/main.yaml b/tests/integration/targets/vyos_ospfv3/vars/main.yaml
index d384e2a..6ded89a 100644
--- a/tests/integration/targets/vyos_ospfv3/vars/main.yaml
+++ b/tests/integration/targets/vyos_ospfv3/vars/main.yaml
@@ -13,42 +13,44 @@ merged:
- set protocols ospfv3 area '3'
- set protocols ospfv3 area 3 range 2001:db40::/32
after:
- areas:
- - area_id: '2'
- export_list: 'export1'
- import_list: 'import1'
- range:
- - address: '2001:db10::/32'
- - address: '2001:db20::/32'
- - address: '2001:db30::/32'
- - area_id: '3'
- range:
- - address: '2001:db40::/32'
- parameters:
- router_id: '192.0.2.10'
- redistribute:
- - route_type: 'bgp'
+ areas:
+ - area_id: '2'
+ export_list: 'export1'
+ import_list: 'import1'
+ range:
+ - address: '2001:db10::/32'
+ - address: '2001:db20::/32'
+ - address: '2001:db30::/32'
+ - area_id: '3'
+ range:
+ - address: '2001:db40::/32'
+ parameters:
+ router_id: '192.0.2.10'
+ redistribute:
+ - route_type: 'bgp'
+
merged_update:
commands:
- set protocols ospfv3 area 3 range 2001:db70::/32
after:
- areas:
- - area_id: '2'
- export_list: 'export1'
- import_list: 'import1'
- range:
- - address: '2001:db10::/32'
- - address: '2001:db20::/32'
- - address: '2001:db30::/32'
- - area_id: '3'
- range:
- - address: '2001:db40::/32'
- - address: '2001:db70::/32'
- parameters:
- router_id: '192.0.2.10'
- redistribute:
- - route_type: 'bgp'
+ areas:
+ - area_id: '2'
+ export_list: 'export1'
+ import_list: 'import1'
+ range:
+ - address: '2001:db10::/32'
+ - address: '2001:db20::/32'
+ - address: '2001:db30::/32'
+ - area_id: '3'
+ range:
+ - address: '2001:db40::/32'
+ - address: '2001:db70::/32'
+ parameters:
+ router_id: '192.0.2.10'
+ redistribute:
+ - route_type: 'bgp'
+
populate:
areas:
- area_id: '2'