Closed etsauer closed 5 years ago
@etsauer: Need to add a couple entries to the requirements.txt
[root@master01 validation]# git diff
diff --git a/validation/requirements.txt b/validation/requirements.txt
index 807e21b..cb7411f 100644
--- a/validation/requirements.txt
+++ b/validation/requirements.txt
@@ -1 +1,3 @@
kubernetes
+pytest
+jsonpath_ng
[root@master01 validation]#
@sabre1041 agree, I think this thing could use some way to configure the tests. For now I would say this works as a "good example" to start from, and probably requires some reworking to fit a cluster in the wild. Do you think we should explore the configuration as part of this PR?
@etsauer We can look into the addoption
functionality.
https://docs.pytest.org/en/latest/example/simple.html
However, this would be an effort in a subsequent PR
Tested on a fresh environment this morning and script is working.
Merging
@etsauer can you create an issue to track future enhancements that were called out in this PR?
This addition attempts to answer the question, "how can I confirm that the cluster is in the architectural state I expect it to be in". I've put together a small set (to start) of test cases that can be run using the
kubernetes
Python client andpytest
framework.