mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

qcow2) Fixed 'unexpected EOF' when reading test output (use io.Copy instead of ioutil.ReadAll), Test that input and output byte slices contain the same data Extracted slice vars from loop Fixed CreateTarXz/Gz funcs with correct calls (currently unimplemented) Moved datastream tests to separate directory in prep for container work Distinguish tests with build tags (unit v functional) Add make recipe to functional test compilation, image build, and run Improved Makefile output Converted gz in-mem test to file read test, paremeterized importer Dockerfile to enable use as test env, added build-args to Makefile for binary specific options. Added xz test, condenced BeforeEach into It block (looping over BeforeEach causes unwanted behaviours) Abstracted compression to single function, removed FileExt type (back to strings), added tar test Support nested format, add extention to convert function map create base file with name provided in test table, no constant added qcow2 conversion (broken: decompressed file is bigger than original) Extracted some setup to helper, add .tar.xz test
16 lines
219 B
Go
16 lines
219 B
Go
// +build unit
|
|
|
|
package controller_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"testing"
|
|
)
|
|
|
|
func TestController(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Controller Suite")
|
|
}
|