spiegel_podman/test/utils
Tushar Verma d685b5a87b test/utils: BeValidJSON should not error on invalid json
Match() returned the unmarshal error for input that is simply not json.
Gomega treats a non nil error as a failure to evaluate, so it fails the
assertion either way and ToNot(BeValidJSON()) fails on exactly the input
it is meant to accept:

  Expect("{not json").ToNot(BeValidJSON())
  --> invalid character 'n' looking for beginning of object key string

A non match is (false, nil), the error return is for input the matcher
cannot evaluate, which is the wrong type case above it.

Signed-off-by: Tushar Verma <tusharmyself06@gmail.com>
2026-08-26 22:51:51 +05:30
..
common_function_test.go test/e2e: rework GetHostDistributionInfo 2026-06-30 10:32:33 +02:00
matchers.go test/utils: BeValidJSON should not error on invalid json 2026-08-26 22:51:51 +05:30
podmansession_test.go test/e2e: remove LineInOutputContainsTag 2026-08-25 19:19:39 +05:30
podmantest_test.go test/e2e: remove WaitForContainer 2026-06-22 20:08:36 +02:00
utils.go test/e2e: remove LineInOutputContainsTag 2026-08-25 19:19:39 +05:30
utils_suite_test.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00