From c6c31ca4cb7a3c11552ca02a9ba3e9ee494275a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20L=C3=B3pez=20=28inkel=29?= Date: Wed, 21 Jun 2023 18:27:23 -0300 Subject: [PATCH] Add internal function to parse multienv step input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) --- server/core/runtime/multienv_step_runner_internal_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/core/runtime/multienv_step_runner_internal_test.go b/server/core/runtime/multienv_step_runner_internal_test.go index dcc12d3a80..40eb65aacd 100644 --- a/server/core/runtime/multienv_step_runner_internal_test.go +++ b/server/core/runtime/multienv_step_runner_internal_test.go @@ -32,6 +32,8 @@ func TestMultiEnvStepRunner_Run_parser(t *testing.T) { `FOO="bar",QUUX='baz'`: {"FOO", "bar", "QUUX", "baz"}, `FOO='bar',QUUX="baz"`: {"FOO", "bar", "QUUX", "baz"}, + "FOO=\"bar\nbaz\"": {"FOO", "bar\nbaz"}, + `KEY="foo='bar',lorem=ipsum"`: {"KEY", "foo='bar',lorem=ipsum"}, `FOO=bar,QUUX="lorem ipsum"`: {"FOO", "bar", "QUUX", "lorem ipsum"},