diff --git a/cnf-certification-test/platform/isredhat/isredhat.go b/cnf-certification-test/platform/isredhat/isredhat.go index b88e79149..1ef160284 100644 --- a/cnf-certification-test/platform/isredhat/isredhat.go +++ b/cnf-certification-test/platform/isredhat/isredhat.go @@ -45,6 +45,7 @@ func NewBaseImageTester(client clientsholder.Command, ctx clientsholder.Context) func (b *BaseImageInfo) TestContainerIsRedHatRelease() (bool, error) { output, err := b.runCommand(`if [ -e /etc/redhat-release ]; then cat /etc/redhat-release; else echo \"Unknown Base Image\"; fi`) + log.Info("Output from /etc/redhat-release: %q", output) if err != nil { return false, err } diff --git a/cnf-certification-test/platform/isredhat/isredhat_test.go b/cnf-certification-test/platform/isredhat/isredhat_test.go index ddbf85410..b5f88235d 100644 --- a/cnf-certification-test/platform/isredhat/isredhat_test.go +++ b/cnf-certification-test/platform/isredhat/isredhat_test.go @@ -82,6 +82,13 @@ func TestTestContainerIsRedHatRelease(t *testing.T) { expectedResult: false, expectedErr: errors.New("random error"), }, + { // Test Case #4 - Add UBI9 output + resultStdOut: "Red Hat Enterprise Linux release 9.4 (Plow)", + resultStdErr: "", + resultErr: nil, + expectedResult: true, + expectedErr: nil, + }, } for _, tc := range testCases {