Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

End to End tests have OpenShift dependencies #8

Closed
etsauer opened this issue May 29, 2019 · 1 comment
Closed

End to End tests have OpenShift dependencies #8

etsauer opened this issue May 29, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@etsauer
Copy link
Contributor

etsauer commented May 29, 2019

Running the e2e test script on minikube fails as there are openshift dependencies in the test. We should remove them.

What happens?

$ ./e2e-test.sh 
namespace/test-gitops-operator created
Now using project "test-gitops-operator" on server "https://192.168.39.158:8443".
configmap/gitops-templates created
clusterrole.rbac.authorization.k8s.io/gitops-operator created
clusterrolebinding.rbac.authorization.k8s.io/gitops-operator created
service/gitops-operator created
serviceaccount/gitops-operator created
error: unable to recognize "test/deploy/route.yaml": no matches for kind "Route" in version "route.openshift.io/v1"
INFO[0000] Testing operator locally.                    
# github.com/KohlsTechnology/eunomia/test/e2e
test/e2e/ocp_template_test.go:22:2: cannot find package "gitops-operator/pkg/apis/eunomia/v1alpha1" in any of:
	/home/esauer/go/src/github.com/KohlsTechnology/eunomia/vendor/gitops-operator/pkg/apis/eunomia/v1alpha1 (vendor tree)
	/usr/local/go/src/gitops-operator/pkg/apis/eunomia/v1alpha1 (from $GOROOT)
	/home/esauer/go/src/gitops-operator/pkg/apis/eunomia/v1alpha1 (from $GOPATH)
FAIL	github.com/KohlsTechnology/eunomia/test/e2e [setup failed]
Error: failed to exec []string{"go", "test", "./test/e2e/...", "-namespacedMan", "deploy/test/empty.yaml", "-globalMan", "deploy/test/empty.yaml", "-root", "/home/esauer/go/src/github.com/KohlsTechnology/eunomia", "-singleNamespace", "-parallel=1"}: exit status 1

What were you expecting to happen?

Script succeeds and exits 0

Steps to reproduce:

minikube start
./e2e-test.sh

Any errors, stacktrace, logs?

...

Environment:

  • Runtime version(Java, Go, Python, etc): go version go1.10.8 linux/amd64
  • Desktop OS/version: Fedora 29

Additional comments:

...

@etsauer etsauer mentioned this issue May 30, 2019
Closed
@seanmalloy seanmalloy added the bug Something isn't working label May 30, 2019
@seanmalloy seanmalloy added this to the 0.0.1 milestone May 30, 2019
@cnuland cnuland self-assigned this May 31, 2019
@seanmalloy
Copy link
Contributor

Closed by #69

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants