From 642a5713e84f61ecc08fff06540808397138e385 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Sun, 14 Nov 2021 17:30:00 +0200 Subject: [PATCH] fixed test Signed-off-by: Noam Gal --- utils/analysis/factory_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/analysis/factory_test.go b/utils/analysis/factory_test.go index 5251ac8c95..a2b6eb5a2e 100644 --- a/utils/analysis/factory_test.go +++ b/utils/analysis/factory_test.go @@ -476,7 +476,7 @@ func Test_extractValueFromRollout(t *testing.T) { }, "should fail returning a label using accessor notation": { path: "metadata.labels['app']", - wantErr: "parsing error: metadata.labels['app']\t:1:17 - 1:22 could not parse string: invalid syntax", + wantErr: "invalid path metadata.labels['app'] in rollout", }, "should return a status value": { path: "status.pauseConditions[0].reason", @@ -484,7 +484,7 @@ func Test_extractValueFromRollout(t *testing.T) { }, "should return an empty string when path is inavlid": { path: "some.invalid[2].non.existing.path", - wantErr: "unknown parameter some.invalid", + wantErr: "invalid path some.invalid[2].non.existing.path in rollout", }, } for name, tt := range tests {