diff options
author | lucasmoura <lucas.moura@canonical.com> | 2020-06-29 13:21:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 10:21:04 -0600 |
commit | b0eba6a4c3a25a13259c01ac4c9a35720fecfdd2 (patch) | |
tree | 64efe2efde5654f52a56515721e349d074d69728 /tests/unittests | |
parent | 597be5e0722395638582ba541f61b29c6a7b444d (diff) | |
download | vyos-cloud-init-b0eba6a4c3a25a13259c01ac4c9a35720fecfdd2.tar.gz vyos-cloud-init-b0eba6a4c3a25a13259c01ac4c9a35720fecfdd2.zip |
Add schema for cc_chef module (#375)
Create a schema object for the chef module and validate this schema in the handle function of the module.
Some of the config keys description, so I tried looking at the code and chef documentation to provide an information to the user. However, I don't know if I have the best description for all fields. For example, for the key show_time I could not find an accurate description of what it did, so I used what was in our code base to infer what it should do.
LP: #1858888
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_handler/test_schema.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_schema.py b/tests/unittests/test_handler/test_schema.py index e19d13b8..99f0b06c 100644 --- a/tests/unittests/test_handler/test_schema.py +++ b/tests/unittests/test_handler/test_schema.py @@ -34,7 +34,8 @@ class GetSchemaTest(CiTestCase): 'cc_ubuntu_advantage', 'cc_ubuntu_drivers', 'cc_write_files', - 'cc_zypper_add_repo' + 'cc_zypper_add_repo', + 'cc_chef' ], [subschema['id'] for subschema in schema['allOf']]) self.assertEqual('cloud-config-schema', schema['id']) |