-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix the search for VIPs in cilium service list
In several different service tests, we check that cilium is handling or not handling a service VIP. To that end, we search for the given VIP in the output of 'cilium service list'. That output looks something like: ID Frontend Service Type Backend 1 10.87.240.1:443 ClusterIP 1 => 35.247.116.7:443 2 10.87.245.217:443 ClusterIP 1 => 10.84.1.94:443 3 10.87.240.10:53 ClusterIP 1 => 10.84.1.175:53 2 => 10.84.1.28:53 4 10.87.241.252:80 ClusterIP 1 => 10.84.1.104:8080 Searching for the VIP directly in the output may return false positives however. For instance, searching for 10.87.241.25 in the above would match the last line when the IP doesn't actually match. Instead we should search for " VIP:", that is, with anchors at the beginning and end of the VIP. Signed-off-by: Paul Chaignon <paul@cilium.io>
- Loading branch information
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters