Conversation
|
I think you'd also need to add 'expected_files' related files and facts to fib.yml, otherwise it will break. |
|
Please fix following:
|
|
|
||
| - block: | ||
| - name: Test file input. | ||
| include: "{{ tests_location }}/acl_input_test/acl_input_test.yml" |
There was a problem hiding this comment.
What is the purpose of {{ tests_location }} ?
Are you going to change the tests location?
For me it is a constant.
There was a problem hiding this comment.
The using of path to the ACL tests occurs pretty often during the tests execution, so I decided to put it into variable.
| failed_when: ping_result.rc != 0 | ||
|
|
||
| - name: Wait for counters to update (it updates every 10 sec) ... | ||
| shell: sleep 10 |
There was a problem hiding this comment.
Better use "pause:" instead of shell: sleep 10
1) syntax testing
2) configuration removing testing
1) syntax test 2) traffic test
1) fixed common_match.txt (removed empty line in the end, which caused loganalyzer error) 2) changed init- and analyze-scripts according to expect-errors-functionality
1) Removed "set_fact" blocks and moved vars into separated files per each test. 2) Replaced "command: sleep" with "pause". 3) Removed brackets around constants declarations.
3ca186b to
54f2c4c
Compare
…t_hop [Chassis] Fix flakiness of nhop_group, routes not programmed into hardware after port toggle (sonic-net#16959) Description of PR Summary: Fixes flakiness nhop_group failures on chassis. Approach What is the motivation for this PR? Fixes flakiness nhop_group failures on chassis. We observe flakiness failure on chassis devices Suspect it's because the route is not programmed into hardware Add external sleep to make sure route is in hardware How did you do it? Add extra waiting time for chassis device port toggle tests. How did you verify/test it? Run on PR test, and physical test passes ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%] ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%] ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%] ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%] ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%] authorized by: jianquanye@microsoft.com
[Submodule]: update sonic-restapi bd97dfe Fix urllib3 CVE-2021-33503 issue (sonic-net#104) f159bfa Upgrade the containers to be based on Debian Buster (sonic-net#103) a1830c1 Fix OpenAPI spec to be readable by autorest (sonic-net#101) 94805a3 Identify and report Vnet GUID for conflicting VNI (sonic-net#99) 4832dfd Static route expiry if not specified as persistent (sonic-net#98) 5cc4358 Add support for overlay ECMP (sonic-net#96) 6822a46 [CI] Set diff cover threshold to 50% (sonic-net#97) dcc826a Add PR diff coverage (sonic-net#95) e842c5f Generate code coverage for Unit Tests (sonic-net#94) f9bbed3 Convert Unit Tests from unittest framework to pytest framework (sonic-net#93) e466ac2 Reject incorrect CIDR addresses while configuring routes (sonic-net#91) 07cf59d [CI] Set up Azure pipeline (sonic-net#89) 47476ac Upgrade Go version to 1.14 (sonic-net#90) ee887c7 Added flag to make go/pkg/ folder writable (removable) (sonic-net#87) 6cfc8fe (origin/shilongliu/azp) Default Vrf static route support (sonic-net#85) d3e8b8e Add BFD config to subinterface and neighbor (sonic-net#68) 8d4fd4a Fix WS-2018-0594 potential non-random UUIDs security issue (sonic-net#78) fad87fa Update API description for default vrf and ecmp routes (sonic-net#82) Some of them have been updated in 202012 branch, should be added in 202106 as well.
Why I did it Update sonic-telemetry submodules (to fix CVE-2021-3121 alert). e56e9b4 Fix CVE-2021-3121 warning (sonic-net#96) bf1be4f [ci]: Support code diff coverage threshold 50% (sonic-net#94) 64e516c Ported Marvell armhf build on x86 for debian buster to use cross-compilation instead of qemu emulation (sonic-net#80) e426388 [ci]: Support azp code coverage (sonic-net#87) 0443e66 Remove DB Directory removal as part of make clean (sonic-net#84) 085f29d Fix unhandled nil err check to prevent rpc causing a crash (sonic-net#78)
e56e9b4 Fix CVE-2021-3121 warning (sonic-net#96) bf1be4f [ci]: Support code diff coverage threshold 50% (sonic-net#94) 64e516c Ported Marvell armhf build on x86 for debian buster to use cross-compilation instead of qemu emulation (sonic-net#80) e426388 [ci]: Support azp code coverage (sonic-net#87)
[MultiDB] shoule use multiDB API (sonic-net#57) [Thermal] Fix for 'show platform fan' command (sonic-net#71) [xcvrd] Return non-zero error code on SFP error (sonic-net#67) Multi-asic changes commit (PR sonic-net#64 ) into 201911 [ledd][multi-ASIC] Update to ledd based on sonic-swss-common updates (sonic-net#87) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
e466ac226c48cf87f83aa5564efd7155ac97a0c1 (HEAD -> master, origin/master, origin/HEAD) Reject incorrect CIDR addresses while configuring routes (sonic-net#91) 07cf59d866914ef7cb6901d51f289f0bee721e44 [CI] Set up Azure pipeline (sonic-net#89) 47476acdfaf668ab0cd9ae2443205a3bdc2e9ef9 Upgrade Go version to 1.14 (sonic-net#90) ee887c785c10d8b4f70db90ca50cc398327c5d73 Added flag to make go/pkg/ folder writable (removable) (sonic-net#87) 6cfc8fe110c46a1ee5a8430e02a440b5a7b4006d (origin/shilongliu/azp) Default Vrf static route support (sonic-net#85) d3e8b8e4aee278fa11d7d86acabdab3fffc70d5a Add BFD config to subinterface and neighbor (sonic-net#68) 8d4fd4a56b637d3b7403c321aef36b8dff58cd62 Fix WS-2018-0594 potential non-random UUIDs security issue (sonic-net#78) fad87fa20f6b15e28c90e02a131c44d236d6a751 Update API description for default vrf and ecmp routes (sonic-net#82) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
A number of tests, which perform testing the ACL functionality and its' ability to react to incorrect configurations.