From 3611befbe4fbe8cddd39ffe6d0c05545d59177d7 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Wed, 19 May 2021 12:14:06 -0500 Subject: Add integration test for #868 (#901) Ensure no Traceback when 'chef_license' is set --- tests/integration_tests/bugs/test_gh868.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/integration_tests/bugs/test_gh868.py (limited to 'tests/integration_tests') 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 -- cgit v1.2.3