Skip to content

Commit

Permalink
Merge pull request #182 from sergenyalcin/backport-to-rel-0.11
Browse files Browse the repository at this point in the history
[Backport release-0.11] Fix skip update mechanism
  • Loading branch information
sergenyalcin authored Feb 26, 2024
2 parents b0ebd2a + feb7d4e commit 12f1097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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

}
}

Expand Down

0 comments on commit 12f1097

Please sign in to comment.