From cf8d067feaac613edb1f7e956c8bdad06402cfc4 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Thu, 3 Jul 2025 17:28:55 +0200 Subject: [PATCH] fixing test --- pkg/input/formats/testdata/ytt/ginandjuice.ytt.yaml | 2 +- pkg/input/formats/yaml/multidoc_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/input/formats/testdata/ytt/ginandjuice.ytt.yaml b/pkg/input/formats/testdata/ytt/ginandjuice.ytt.yaml index b409ad214..b40ece639 100644 --- a/pkg/input/formats/testdata/ytt/ginandjuice.ytt.yaml +++ b/pkg/input/formats/testdata/ytt/ginandjuice.ytt.yaml @@ -16,7 +16,7 @@ request: raw: |+ POST /users/3 HTTP/1.1 Host: ginandjuice.shop - Authorization: Bearer (@= get_value("token") @) + Authorization: Bearer (@= get_value("token", "3x4mpl3t0k3n") @) Accept-Encoding: gzip Content-Type: application/x-www-form-urlencoded Connection: close diff --git a/pkg/input/formats/yaml/multidoc_test.go b/pkg/input/formats/yaml/multidoc_test.go index 1d9c44f2e..54efe0326 100644 --- a/pkg/input/formats/yaml/multidoc_test.go +++ b/pkg/input/formats/yaml/multidoc_test.go @@ -66,7 +66,7 @@ Content-Type: application/x-www-form-urlencoded Connection: close User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 -foo=catalog&bar=product` +foo="catalog"&bar=product&debug=false` normalised := strings.ReplaceAll(request.Request.Raw, "\r\n", "\n") require.Equal(t, expectedRaw, strings.TrimSuffix(normalised, "\n"), "request raw does not match expected value")