Page MenuHomeVyOS Platform

Smoketest policy fail in CI
Closed, ResolvedPublicBUG

Description

The main reason it trying to find value without "seq x" in config that contain "seq x"
Find value

bgp community-list 100 permit .*

Config value

'bgp community-list 100 seq 5 permit .*\nbgp community-list 200 seq 5 deny ^1:201$\nbgp community-list 200 seq 10 deny 1:101$\nbgp community-list 200 seq 15 deny ^1:100$\n!'

Test

07:19:39  DEBUG - FAIL: test_community_list (__main__.TestPolicy)
07:19:39  DEBUG - ----------------------------------------------------------------------
07:19:39  DEBUG - Traceback (most recent call last):
07:19:39  DEBUG -   File "/usr/libexec/vyos/tests/smoke/cli/test_policy.py", line 382, in test_community_list
07:19:39  DEBUG -     self.assertIn(tmp, config)
07:19:39  DEBUG - AssertionError: 'bgp community-list 100 permit .*' not found in 'bgp community-list 100 seq 5 permit .*\nbgp community-list 200 seq 5 deny ^1:201$\nbgp community-list 200 seq 10 deny 1:101$\nbgp community-list 200 seq 15 deny ^1:100$\n!'
07:19:39  DEBUG - 
07:19:39  DEBUG - ======================================================================

Details

Difficulty level
Easy (less than an hour)
Version
1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Related Objects