Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init framework for integration tests #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nirvanagit
Copy link

@nirvanagit nirvanagit commented Jul 28, 2019

Goal

Initial integration test framework, includes

  • Ginkgo files for create/update/delete athenzDomain.
  • Instantiation of kubernetes cluster, setting kube, istio and athenzDomain clients.
  • Instantiation of athenz controller.
  • Creates crds -> ServiceRole, ServiceRoleBinding and AthenzDomains.
  • Runs dummy tests and prints all the clients to ensure they are instantiated correctly.

Travis CI configuration

Pending

  1. When trying to AthenzDomain resource using code it throws an error
 the server could not find the requested resource

Which according to existing issues on the internet means that we are trying to use a client which is off by more than 1 of the kuberntes server.

Although, when we use the cluster setup by the test and run kubectl create -f athenzDomain.yaml (with the following content)

kind: AthenzDomain
apiVersion: "athenz.io/v1"
metadata:
  name: "foo"
spec:
  # redis version
  hello: "world"

I am successfully able to create the resource.

I've tried installing kubernetes cluster 1.12, 1.13 and 1.15 and was not able to create AthenzDomain in any of them.

I've tested the connection to the cluster by using a kubernetes client to query a configmap successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant