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

simple e2e test tool #47

Closed
p0lyn0mial opened this issue Feb 1, 2018 · 2 comments · Fixed by #69
Closed

simple e2e test tool #47

p0lyn0mial opened this issue Feb 1, 2018 · 2 comments · Fixed by #69
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. priority/high

Comments

@p0lyn0mial
Copy link
Contributor

having a simple command line tool that would verify whether a node has been created serves not only as a good warm up exercise but also as a handy test tool.

the idea is that we would have a list of predefined machine manifests that would need some customisation in terms of credentials. The credentials could be accepted as a command line arguments and passed all the way down to the manifests. After POST'ing the given manifests to the kube-api server the test tool would read the current cluster state in order to determine the correctness of machine-controller

the test tool would use the standard client-go library to talk to the api server and would read the kubeconfig configuration file to discover where the cluster is actually located.

assumptions:

  • cluster was created manually
  • kube config is accessible
  • there is a list of predefined machine manifests

for example, running the following command: verify -input path_to_manifest -parameters key=value, key2=value would print a machine "node-docker" has been crated to stdout.

@p0lyn0mial
Copy link
Contributor Author

/cc @mrIncompetent

@p0lyn0mial p0lyn0mial self-assigned this Feb 1, 2018
@p0lyn0mial p0lyn0mial added the good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. label Feb 1, 2018
@mrIncompetent
Copy link
Contributor

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. priority/high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants