Skip to content

Commit

Permalink
Merge pull request upbound#180 from sergenyalcin/fix-skip-update
Browse files Browse the repository at this point in the history
Fix skip update mechanism
  • Loading branch information
sergenyalcin authored Feb 26, 2024
2 parents ac36a0c + 87db4d7 commit 2eb3bf5
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 2eb3bf5

Please sign in to comment.