debian-forge-composer/cmd/osbuild-image-tests/constants.go
Ondřej Budai 00f903b879 tests/image: refactor constants
It's not very clear that the constants are indeed constants. This commit moves
them to a new struct. This way it should be more clear that those values are
constants.
2020-04-06 16:38:28 +02:00

28 lines
717 B
Go

// +build integration,!travis
package main
import "os/exec"
func getOsbuildCommand(store string) *exec.Cmd {
return exec.Command(
"osbuild",
"--store", store,
"--json",
"-",
)
}
var testPaths = struct {
imageInfo string
privateKey string
testCasesDirectory string
userData string
metaData string
}{
imageInfo: "/usr/libexec/osbuild-composer/image-info",
privateKey: "/usr/share/tests/osbuild-composer/keyring/id_rsa",
testCasesDirectory: "/usr/share/tests/osbuild-composer/cases",
userData: "/usr/share/tests/osbuild-composer/cloud-init/user-data",
metaData: "/usr/share/tests/osbuild-composer/cloud-init/meta-data",
}