Skip to content

Commit

Permalink
Add integration test for canonical#868
Browse files Browse the repository at this point in the history
Ensure no Traceback when 'chef_license' is set
  • Loading branch information
TheRealFalcon committed May 12, 2021
1 parent 899bfaa commit 7cb1a8e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/integration_tests/bugs/test_gh868.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7cb1a8e

Please sign in to comment.