<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/unittests/test_cli.py, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2021-12-16T02:16:38+00:00</updated>
<entry>
<title>Adopt Black and isort (SC-700) (#1157)</title>
<updated>2021-12-16T02:16:38+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2021-12-16T02:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf'/>
<id>urn:sha1:bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf</id>
<content type='text'>
Applied Black and isort, fixed any linting issues, updated tox.ini
and CI.
</content>
</entry>
<entry>
<title>Add miraclelinux support (#1128)</title>
<updated>2021-12-07T14:23:45+00:00</updated>
<author>
<name>Haruki TSURUMOTO</name>
<email>fortune.rocket42@gmail.com</email>
</author>
<published>2021-12-07T14:23:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=0ed00ad9cdebc2d4dabd8bd6d7c901584963def5'/>
<id>urn:sha1:0ed00ad9cdebc2d4dabd8bd6d7c901584963def5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add Strict Metaschema Validation (#1101)</title>
<updated>2021-12-06T22:27:12+00:00</updated>
<author>
<name>Brett Holman</name>
<email>bholman.devel@gmail.com</email>
</author>
<published>2021-12-06T22:27:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=bedac77e9348e7a54c0ec364fb61df90cd893972'/>
<id>urn:sha1:bedac77e9348e7a54c0ec364fb61df90cd893972</id>
<content type='text'>
Improve schema validation.

This adds strict validation of config module definitions at testing
time, with plumbing included for future runtime validation. This
eliminates a class of bugs resulting from schemas that have definitions
that are incorrect, but get interpreted by jsonschema as
"additionalProperties" that are therefore ignored.

- Add strict meta-schema for jsonschema unit test validation
- Separate schema from module metadata structure
- Improve type annotations for various functions and data types

Cleanup:
- Remove unused jsonschema "required" elements 
- Eliminate manual memoization in schema.py:get_schema(),
        reference module.__doc__ directly</content>
</entry>
<entry>
<title>Reorganize unit test locations under tests/unittests (#1126)</title>
<updated>2021-12-03T20:11:46+00:00</updated>
<author>
<name>Brett Holman</name>
<email>bholman.devel@gmail.com</email>
</author>
<published>2021-12-03T20:11:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=039c40f9b3d88ee8158604bb18ca4bf2fb5d5e51'/>
<id>urn:sha1:039c40f9b3d88ee8158604bb18ca4bf2fb5d5e51</id>
<content type='text'>
This attempts to standardize unit test file location under test/unittests/
such that any source file located at cloudinit/path/to/file.py may have a
corresponding unit test file at test/unittests/path/to/test_file.py.

Noteworthy Comments:
====================
Four different duplicate test files existed:
test_{gpg,util,cc_mounts,cc_resolv_conf}.py
Each of these duplicate file pairs has been merged together. This is a
break in git history for these files.

The test suite appears to have a dependency on test order. Changing test
order causes some tests to fail. This should be rectified, but for now
some tests have been modified in
tests/unittests/config/test_set_passwords.py.

A helper class name starts with "Test" which causes pytest to try
executing it as a test case, which then throws warnings "due to Class
having __init__()".  Silence by changing the name of the class.

# helpers.py is imported in many test files, import paths change
cloudinit/tests/helpers.py -&gt; tests/unittests/helpers.py

# Move directories:
cloudinit/distros/tests -&gt; tests/unittests/distros
cloudinit/cmd/devel/tests -&gt; tests/unittests/cmd/devel
cloudinit/cmd/tests -&gt; tests/unittests/cmd/
cloudinit/sources/helpers/tests -&gt; tests/unittests/sources/helpers
cloudinit/sources/tests -&gt; tests/unittests/sources
cloudinit/net/tests -&gt; tests/unittests/net
cloudinit/config/tests -&gt; tests/unittests/config
cloudinit/analyze/tests/ -&gt; tests/unittests/analyze/

# Standardize tests already in tests/unittests/
test_datasource -&gt; sources
test_distros -&gt; distros
test_vmware -&gt; sources/vmware
test_handler -&gt; config        # this contains cloudconfig module tests
test_runs -&gt; runs</content>
</entry>
<entry>
<title>Support openEuler OS (#1012)</title>
<updated>2021-09-13T18:21:28+00:00</updated>
<author>
<name>zhuzaifangxuele</name>
<email>52022596+zhuzaifangxuele@users.noreply.github.com</email>
</author>
<published>2021-09-13T18:21:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=f4c47e3e25d1fb79e2673e37f8fc67750d025be2'/>
<id>urn:sha1:f4c47e3e25d1fb79e2673e37f8fc67750d025be2</id>
<content type='text'>
openEuler Homepage: https://www.openeuler.org/en/</content>
</entry>
<entry>
<title>Add CloudLinux OS support (#1003)</title>
<updated>2021-09-01T19:01:09+00:00</updated>
<author>
<name>Alexandr Kravchenko</name>
<email>sasha121196@mail.ru</email>
</author>
<published>2021-09-01T19:01:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=f6c71fd758a3589ac5f62fd251d60b00edf5bb1c'/>
<id>urn:sha1:f6c71fd758a3589ac5f62fd251d60b00edf5bb1c</id>
<content type='text'>
https://www.cloudlinux.com/</content>
</entry>
<entry>
<title>Add support for EuroLinux 7 &amp;&amp; EuroLinux 8 (#957)</title>
<updated>2021-08-05T16:32:36+00:00</updated>
<author>
<name>Aleksander Baranowski</name>
<email>aleksander.baranowski@yahoo.pl</email>
</author>
<published>2021-08-05T16:32:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3d9c862b6ded798031fad827328fa437bc14ac97'/>
<id>urn:sha1:3d9c862b6ded798031fad827328fa437bc14ac97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add VZLinux support (#951)</title>
<updated>2021-07-21T20:48:05+00:00</updated>
<author>
<name>eb3095</name>
<email>45504889+eb3095@users.noreply.github.com</email>
</author>
<published>2021-07-21T20:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=4257e30ac4b8730af35c078f2df0a2234dd19ffa'/>
<id>urn:sha1:4257e30ac4b8730af35c078f2df0a2234dd19ffa</id>
<content type='text'>
Virtuozzo Linux is a distro based off of CentOS 8, similar to Alma Linux and Rocky Linux.</content>
</entry>
<entry>
<title>Add support for VMware PhotonOS (#909)</title>
<updated>2021-06-18T16:53:44+00:00</updated>
<author>
<name>sshedi</name>
<email>53473811+sshedi@users.noreply.github.com</email>
</author>
<published>2021-06-18T16:53:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=35aa9db6f8e2ba05d366776c0e8d97f52217e930'/>
<id>urn:sha1:35aa9db6f8e2ba05d366776c0e8d97f52217e930</id>
<content type='text'>
Also added a new (currently experimental) systemd-networkd renderer,
and includes a small refactor to cc_resolv_conf.py to support the
resolved.conf used by systemd-resolved.</content>
</entry>
<entry>
<title>Add Rocky Linux support to cloud-init (#906)</title>
<updated>2021-05-25T13:25:41+00:00</updated>
<author>
<name>Louis Abel</name>
<email>nazunalika@users.noreply.github.com</email>
</author>
<published>2021-05-25T13:25:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=7c1d27b8836c266f6db1e179b98ef32effeb750e'/>
<id>urn:sha1:7c1d27b8836c266f6db1e179b98ef32effeb750e</id>
<content type='text'>
Rocky Linux is a RHEL-compatible distribution so all changes that have
been made should be trivial.</content>
</entry>
</feed>
