Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanks committed Feb 7, 2025
1 parent 2039b0f commit 2214388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/version_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ var _ = Describe("Controller Suite", func() {

json, _ := json.Marshal(object.Obj.(*k8s.Object).Obj.(*batchv1.Job))
expectedJson, err := ioutil.ReadFile("testdata/pre_upgrade_job.json")
fmt.Println("🔹 EXPECTED JOB JSON FILE CONTENT:")
fmt.Println(string(expectedJson))
opts := jsondiff.DefaultConsoleOptions()
diff, text := jsondiff.Compare(expectedJson, json, &opts)
Expect(diff.String()).To(Equal(jsondiff.SupersetMatch.String()), text)
Expand Down

0 comments on commit 2214388

Please sign in to comment.