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:
parent
89c2bb0d3e
commit
c71ae8f455
4 changed files with 82 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue