Skip to content

Commit 71976f4

Browse files
committed
test fixes
Signed-off-by: LucaNicosia <[email protected]>
1 parent d2f0572 commit 71976f4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/integration/sqcmds/cumulus-samples/badquery.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ tests:
7575
- command: path show --src='172.16.1.101' --dest='172.16.3.202' --namespace='ospf-ibgp'
7676
--query-str='vendor == "Cisco" and mtu==1500' --format=json
7777
data-directory: tests/data/parquet/
78+
error:
79+
error: '[{"error": "ERROR: UserQueryError: name ''vendor'' is not defined"}]'
7880
marks: path show badquery cumulus
79-
output: '[]'
8081
- command: topology show --query-str='vendor == "Cisco" and mtu==1500' --format=json
8182
--namespace='ospf-single dual-evpn ospf-ibgp'
8283
data-directory: tests/data/parquet/
@@ -158,8 +159,9 @@ tests:
158159
- command: path summarize --src='172.16.1.101' --dest='172.16.3.202' --namespace='ospf-ibgp'
159160
--query-str='vendor == "Cisco" and mtu==1500' --format=json
160161
data-directory: tests/data/parquet/
162+
error:
163+
error: '{"error": {"0": "ERROR: UserQueryError: name ''vendor'' is not defined"}}'
161164
marks: path summarize badquery cumulus
162-
output: '[]'
163165
- command: topology summarize --query-str='vendor == "Cisco" and mtu==1500' --format=json
164166
--namespace='ospf-single dual-evpn ospf-ibgp' --columns='hostname'
165167
data-directory: tests/data/parquet/
@@ -241,8 +243,9 @@ tests:
241243
- command: path unique --src='172.16.1.101' --dest='172.16.3.202' --namespace='ospf-ibgp'
242244
--query-str='vendor == "Cisco" and mtu==1500' --format=json --columns='hostname'
243245
data-directory: tests/data/parquet/
246+
error:
247+
error: '[{"error": "ERROR: UserQueryError: name ''vendor'' is not defined"}]'
244248
marks: path unique badquery cumulus
245-
output: '[]'
246249
- command: topology unique --query-str='vendor == "Cisco" and mtu==1500' --format=json
247250
--namespace='ospf-single dual-evpn ospf-ibgp' --columns='hostname'
248251
data-directory: tests/data/parquet/

0 commit comments

Comments
 (0)