console: use Dst1stAS/Dst2ndAS/Dst3rdAS/DstASPath

DstASPath is not available in filters.
This commit is contained in:
Vincent Bernat
2022-09-25 15:40:42 +02:00
parent 7e876902d7
commit 9c90ee89f6
11 changed files with 51 additions and 20 deletions

View File

@@ -45,6 +45,9 @@ func TestQueryColumnSQLSelect(t *testing.T) {
}, {
Input: queryColumnDstAS,
Expected: `concat(toString(DstAS), ': ', dictGetOrDefault('asns', 'name', DstAS, '???'))`,
}, {
Input: queryColumnDst2ndAS,
Expected: `concat(toString(Dst2ndAS), ': ', dictGetOrDefault('asns', 'name', Dst2ndAS, '???'))`,
}, {
Input: queryColumnProto,
Expected: `dictGetOrDefault('protocols', 'name', Proto, '???')`,
@@ -60,6 +63,9 @@ func TestQueryColumnSQLSelect(t *testing.T) {
}, {
Input: queryColumnPacketSizeBucket,
Expected: `PacketSizeBucket`,
}, {
Input: queryColumnDstASPath,
Expected: `arrayStringConcat(DstASPath, ' ')`,
},
}
for _, tc := range cases {