From 87db4d736ea3aaa1f01b20c6754ba6a84ebd357c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Sun, 18 Feb 2024 23:42:22 +0300 Subject: [PATCH] Fix skip update mechanism MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- internal/tester.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/tester.go b/internal/tester.go index 77fdc64..21c0464 100644 --- a/internal/tester.go +++ b/internal/tester.go @@ -139,8 +139,6 @@ func (t *tester) prepareConfig() (*config.TestCase, []config.Resource, error) { return nil, nil, errors.Wrapf(err, "cannot unmarshal JSON object: %s", updateParameter) } example.UpdateAssertKey, example.UpdateAssertValue = convertToJSONPath(data, "") - } else { - tc.SkipUpdate = true } disableImport, ok := annotations[config.AnnotationKeyDisableImport] if ok && disableImport == "true" { @@ -152,8 +150,10 @@ func (t *tester) prepareConfig() (*config.TestCase, []config.Resource, error) { if disableImport == "true" { tc.SkipImport = true } + if updateParameter == "" { + tc.SkipUpdate = true + } example.Root = true - } }