summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2021-05-19 12:14:06 -0500
committerGitHub <noreply@github.com>2021-05-19 11:14:06 -0600
commit3611befbe4fbe8cddd39ffe6d0c05545d59177d7 (patch)
tree2402d7c79c40f579497d6ee32986d905a60d75a1 /tests
parent1793b8b70ca2e3587c271155033ef943207136ae (diff)
downloadvyos-cloud-init-3611befbe4fbe8cddd39ffe6d0c05545d59177d7.tar.gz
vyos-cloud-init-3611befbe4fbe8cddd39ffe6d0c05545d59177d7.zip
Add integration test for #868 (#901)
Ensure no Traceback when 'chef_license' is set
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests/bugs/test_gh868.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/integration_tests/bugs/test_gh868.py b/tests/integration_tests/bugs/test_gh868.py
new file mode 100644
index 00000000..31052dcb
--- /dev/null
+++ b/tests/integration_tests/bugs/test_gh868.py
@@ -0,0 +1,19 @@
+"""Ensure no Traceback when 'chef_license' is set"""
+import pytest
+from tests.integration_tests.instances import IntegrationInstance
+
+
+USERDATA = """\
+#cloud-config
+chef:
+ install_type: omnibus
+ chef_license: accept
+ server_url: https://chef.yourorg.invalid
+ validation_name: some-validator
+"""
+
+
+@pytest.mark.user_data(USERDATA)
+def test_chef_license(client: IntegrationInstance):
+ log = client.read_from_file('/var/log/cloud-init.log')
+ assert 'Traceback' not in log