From b7bc61c7df66b3c8885683abfaeaecc2f1548053 Mon Sep 17 00:00:00 2001 From: rahushen Date: Tue, 6 Mar 2018 23:45:56 -0500 Subject: [PATCH] fix nxos_l2_interface tests for fretta (#37086) --- .../targets/nxos_l2_interface/tests/common/agg.yaml | 12 ++++++++++++ .../nxos_l2_interface/tests/common/sanity.yaml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml b/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml index b7c1b04dc1..1ea069f14e 100644 --- a/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml +++ b/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml @@ -27,6 +27,10 @@ state: absent provider: "{{ connection }}" +- name: Sleep for 2 seconds on Fretta Platform + wait_for: timeout=2 + when: platform is match("N9K-F") + - block: - name: Configure interface for access_vlan aggregate nxos_l2_interface: &conf_agg @@ -40,6 +44,10 @@ that: - "result.changed == true" + - name: Sleep for 2 seconds on Fretta Platform + wait_for: timeout=2 + when: platform is match("N9K-F") + - name: Configure interface for access_vlan aggregate(Idempotence) nxos_l2_interface: *conf_agg register: result @@ -61,6 +69,10 @@ that: - "result.changed == true" + - name: Sleep for 2 seconds on Fretta Platform + wait_for: timeout=2 + when: platform is match("N9K-F") + - name: Remove interface aggregate(Idempotence) nxos_l2_interface: *rm_agg register: result diff --git a/test/integration/targets/nxos_l2_interface/tests/common/sanity.yaml b/test/integration/targets/nxos_l2_interface/tests/common/sanity.yaml index 243c035ba3..cd6fc07e7f 100644 --- a/test/integration/targets/nxos_l2_interface/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_l2_interface/tests/common/sanity.yaml @@ -45,6 +45,10 @@ that: - "result.changed == true" + - name: Sleep for 2 seconds on Fretta Platform + wait_for: timeout=2 + when: platform is match("N9K-F") + - name: "access vlan Idempotence" nxos_l2_interface: *acc_vl register: result