Skip to content

Commit

Permalink
Fix skip update mechanism
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
  • Loading branch information
sergenyalcin committed Feb 26, 2024
1 parent b0ebd2a commit feb7d4e
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 feb7d4e

Please sign in to comment.