test: Update tests to support embeded container image feature

Container image can only be embeded on commit Use fedora image
instead of ubi8 and only run embeded image checking on  RHEL
8.7, 9.1, CS8 and CS9.
This commit is contained in:
Xiaofeng Wang 2022-07-22 17:40:43 +08:00 committed by Christian Kellner
parent 89c2bb0d3e
commit c71ae8f455
4 changed files with 82 additions and 6 deletions

View file

@ -2,7 +2,6 @@ package container_test
import (
"context"
"fmt"
"io/ioutil"
"os"
"testing"
@ -95,7 +94,6 @@ func TestClientAuthFilePath(t *testing.T) {
os.Unsetenv("XDG_RUNTIME_DIR")
authFilePath := container.GetDefaultAuthFile()
fmt.Printf("auth file path: %s", authFilePath)
assert.NotEmpty(t, authFilePath)
_, err = ioutil.ReadFile(authFilePath)
assert.True(t, err == nil || os.IsNotExist(err))