From 7869d3804310b203f84190dca1ecb22fa106609b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 16 Feb 2021 13:58:19 +0200 Subject: [PATCH] lib/protoparser/influx: make sure that escaped whitespace can be put in measurement, tag names and field names --- lib/protoparser/influx/parser_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/protoparser/influx/parser_test.go b/lib/protoparser/influx/parser_test.go index 50c625b9fc..5240a78c67 100644 --- a/lib/protoparser/influx/parser_test.go +++ b/lib/protoparser/influx/parser_test.go @@ -344,15 +344,15 @@ func TestRowsUnmarshalSuccess(t *testing.T) { }) // Escape chars - f(`fo\,bar\=baz,x\=\b=\\a\,\=\q\ \\\a\=\,=4.34`, &Rows{ + f(`fo\,bar\=b\ az,x\=\ b=\\a\,\=\q\ \\\a\ b\=\,=4.34`, &Rows{ Rows: []Row{{ - Measurement: `fo,bar=baz`, + Measurement: `fo,bar=b az`, Tags: []Tag{{ - Key: `x=\b`, + Key: `x= b`, Value: `\a,=\q `, }}, Fields: []Field{{ - Key: `\\a=,`, + Key: `\\a b=,`, Value: 4.34, }}, }},