mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
This patch adds basic test data to run integration level tests on the holos cli command. Tests are structured similar to how the go and cue maintainers test their own cli tools using the testscripts package. Fixture data is loaded into a fake kubernetes.Clientset. The holos root command is executed without using a full sub-process so the fake kubernetes interface persists across multiple holos commands in the same test case. The fake kubernetes interface is reset after the testcase script concludes and a new one starts. Take care to read and write absolute paths from the test scripts, the current working directory of the test runner is not set to $WORK when executing the custom holos command.
66 lines
2.7 KiB
Modula-2
66 lines
2.7 KiB
Modula-2
module github.com/holos-run/holos
|
|
|
|
go 1.21.5
|
|
|
|
require (
|
|
cuelang.org/go v0.7.0
|
|
github.com/mattn/go-isatty v0.0.20
|
|
github.com/spf13/cobra v1.7.0
|
|
golang.org/x/tools v0.18.0
|
|
k8s.io/apimachinery v0.29.2
|
|
k8s.io/client-go v0.29.2
|
|
)
|
|
|
|
require (
|
|
cuelabs.dev/go/oci/ociregistry v0.0.0-20231103182354-93e78c079a13 // indirect
|
|
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
|
|
github.com/emicklei/proto v1.10.0 // indirect
|
|
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
|
|
github.com/go-logr/logr v1.3.0 // indirect
|
|
github.com/go-openapi/jsonpointer v0.19.6 // indirect
|
|
github.com/go-openapi/jsonreference v0.20.2 // indirect
|
|
github.com/go-openapi/swag v0.22.3 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
|
github.com/google/gnostic-models v0.6.8 // indirect
|
|
github.com/google/gofuzz v1.2.0 // indirect
|
|
github.com/google/uuid v1.3.0 // indirect
|
|
github.com/imdario/mergo v0.3.6 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/mailru/easyjson v0.7.7 // indirect
|
|
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.1.0-rc4 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/protocolbuffers/txtpbfmt v0.0.0-20230328191034-3462fbc510c0 // indirect
|
|
github.com/rogpeppe/go-internal v1.12.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
golang.org/x/net v0.21.0 // indirect
|
|
golang.org/x/oauth2 v0.10.0 // indirect
|
|
golang.org/x/sys v0.17.0 // indirect
|
|
golang.org/x/term v0.17.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
golang.org/x/time v0.3.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/protobuf v1.31.0 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
k8s.io/api v0.29.2 // indirect
|
|
k8s.io/klog/v2 v2.110.1 // indirect
|
|
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
|
|
k8s.io/kubectl v0.29.2 // indirect
|
|
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
|
|
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
|
|
sigs.k8s.io/yaml v1.3.0 // indirect
|
|
)
|