summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kubectl/molecule/default/tests/test_default.py
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/kubectl/molecule/default/tests/test_default.py')
-rw-r--r--ansible/roles/kubectl/molecule/default/tests/test_default.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/kubectl/molecule/default/tests/test_default.py b/ansible/roles/kubectl/molecule/default/tests/test_default.py
new file mode 100644
index 00000000..4f799b95
--- /dev/null
+++ b/ansible/roles/kubectl/molecule/default/tests/test_default.py
@@ -0,0 +1,11 @@
+import os
+
+import testinfra.utils.ansible_runner
+
+testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
+ os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
+
+
+def test_kubectl(host):
+ assert host.file('/usr/local/bin/kubectl').exists
+ assert host.run('kubectl').rc != 127