The directory with image-tests test cases has been renamed from `cases` to `manifests`. This has not been previously reflected in the test/README.md and osbuild-image-tests code. osbuild-image-tests hardcodes the test cases directory path and uses it in case no test case are passed to it on the command line. Since the image_tests.sh CI test case looks for image-tests test cases in the correct directory and passes the relevant ones to osbuild-image-tests, the CI didn't detect this issue. Running osbuild-images-tests without any argument and let it run all test cases from the default test cases directory as part of CI probably does not make sense. Due to this reason, I'm not adding any new test. Signed-off-by: Tomas Hozza <thozza@redhat.com>
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// +build integration
|
|
|
|
package constants
|
|
|
|
import "os/exec"
|
|
|
|
func GetOsbuildCommand(store, outputDirectory string) *exec.Cmd {
|
|
return exec.Command(
|
|
"osbuild",
|
|
"--store", store,
|
|
"--output-directory", outputDirectory,
|
|
"--json",
|
|
"-",
|
|
)
|
|
}
|
|
|
|
func GetImageInfoCommand(imagePath string) *exec.Cmd {
|
|
return exec.Command(
|
|
"/usr/libexec/osbuild-composer-test/image-info",
|
|
imagePath,
|
|
)
|
|
}
|
|
|
|
var TestPaths = struct {
|
|
ImageInfo string
|
|
PrivateKey string
|
|
TestCasesDirectory string
|
|
UserData string
|
|
MetaData string
|
|
AzureDeploymentTemplate string
|
|
}{
|
|
ImageInfo: "/usr/libexec/osbuild-composer-test/image-info",
|
|
PrivateKey: "/usr/share/tests/osbuild-composer/keyring/id_rsa",
|
|
TestCasesDirectory: "/usr/share/tests/osbuild-composer/manifests",
|
|
UserData: "/usr/share/tests/osbuild-composer/cloud-init/user-data",
|
|
MetaData: "/usr/share/tests/osbuild-composer/cloud-init/meta-data",
|
|
AzureDeploymentTemplate: "/usr/share/tests/osbuild-composer/azure/deployment-template.json",
|
|
}
|