Run all
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml
2024-04-16T07:37:40.108-0400 INFO e2e/main_test.go:139 TestSuites
2024-04-16T07:37:40.108-0400 INFO e2e/basic_suite.go:11 TestSuites/Basic
2024-04-16T07:37:40.108-0400 INFO e2e/basic_suite.go:22 TestSuites/Basic/Deploy
2024-04-16T07:37:40.108-0400 INFO e2e/basic_suite.go:26 TestSuites/Basic/Enable
2024-04-16T07:37:40.108-0400 INFO e2e/basic_suite.go:30 TestSuites/Basic/Failover
...
2024-04-16T07:37:40.109-0400 INFO e2e/basic_suite.go:38 TestSuites/Exhaustive/DaemonSet#02/Imperative/Disable
2024-04-16T07:37:40.109-0400 INFO e2e/basic_suite.go:42 TestSuites/Exhaustive/DaemonSet#02/Imperative/Undeploy
PASS
ok github.com/ramendr/ramen/e2e 0.012s
Run a specific suite
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Validate'
2024-04-16T07:40:35.758-0400 INFO e2e/main_test.go:139 TestSuites
2024-04-16T07:40:35.758-0400 INFO e2e/validation_suite.go:11 TestSuites/Validate
2024-04-16T07:40:35.758-0400 INFO e2e/validation_suite.go:19 TestSuites/Validate/RamenHub
2024-04-16T07:40:35.758-0400 INFO e2e/validation_suite.go:23 TestSuites/Validate/RamenSpokes
2024-04-16T07:40:35.758-0400 INFO e2e/validation_suite.go:27 TestSuites/Validate/Ceph
PASS
ok github.com/ramendr/ramen/e2e 0.010s
Run step by step
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Deploy
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Failover
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Enable
Some quick notes on usage and abilities:
$ cd e2e
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Validate'
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Deploy
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Failover
e2e$ go test -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -run 'TestSuites/Basic/Enable
e2e$ go test -c -o e2e
e2e$ ./e2e -kubeconfig-c1 ~/kc.yaml -kubeconfig-c2 ~/kc.yaml -kubeconfig-hub ~/kc.yaml -test.run 'TestSuites/Basic/Enable'