diff options
author | Scott Moser <smoser@brickies.net> | 2017-10-17 16:12:59 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-10-18 16:10:06 -0400 |
commit | 41152f10ddbd8681cdac44b408038a4f23ab02df (patch) | |
tree | a2edb9a13b16340c980643e476482de4166a70c7 /tests/cloud_tests/testcases/modules/user_groups.yaml | |
parent | d4f70470b7c3af89d4bf97123f4d61ad8a58805b (diff) | |
download | vyos-cloud-init-41152f10ddbd8681cdac44b408038a4f23ab02df.tar.gz vyos-cloud-init-41152f10ddbd8681cdac44b408038a4f23ab02df.zip |
schema: Log debug instead of warning when jsonschema is not available.
When operating in expected path, cloud-init should avoid logging with
warning. That causes 'WARNING' messages in /var/log/cloud-init.log.
By default, warnings also go to the console.
Since jsonschema is a optional dependency, and not present on xenial
and zesty, cloud-init should not warn there.
Also here:
* Add a test to integration tests to assert that there are no
warnings in /var/log/cloud-init.log.
* Update one integration test that did show warning and the related
documentation and examples.
LP: #1724354
Diffstat (limited to 'tests/cloud_tests/testcases/modules/user_groups.yaml')
-rw-r--r-- | tests/cloud_tests/testcases/modules/user_groups.yaml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cloud_tests/testcases/modules/user_groups.yaml b/tests/cloud_tests/testcases/modules/user_groups.yaml index 71cc9da3..22b5d706 100644 --- a/tests/cloud_tests/testcases/modules/user_groups.yaml +++ b/tests/cloud_tests/testcases/modules/user_groups.yaml @@ -7,7 +7,7 @@ cloud_config: | #cloud-config # Add groups to the system groups: - - secret: [foobar,barfoo] + - secret: [root] - cloud-users # Add users to the system. Users are added after groups are added. @@ -23,7 +23,7 @@ cloud_config: | - name: barfoo gecos: Bar B. Foo sudo: ALL=(ALL) NOPASSWD:ALL - groups: cloud-users + groups: [cloud-users, secret] lock_passwd: true - name: cloudy gecos: Magic Cloud App Daemon User @@ -48,5 +48,8 @@ collect_scripts: user_cloudy: | #!/bin/bash getent passwd cloudy + root_groups: | + #!/bin/bash + groups root # vi: ts=4 expandtab |