<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/cloudinit/tests, branch 20.4</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.4</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.4'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2020-11-18T16:11:58+00:00</updated>
<entry>
<title>test_persistence: simplify VersionIsPoppedFromState (#674)</title>
<updated>2020-11-18T16:11:58+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-11-18T16:11:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=96d21dfbee308cd8fe00809184f78da9231ece4a'/>
<id>urn:sha1:96d21dfbee308cd8fe00809184f78da9231ece4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test_persistence: add VersionIsPoppedFromState test (#673)</title>
<updated>2020-11-17T21:55:55+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-11-17T21:55:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=e1bde919923ff1f9d1d197f64ea43b976f034062'/>
<id>urn:sha1:e1bde919923ff1f9d1d197f64ea43b976f034062</id>
<content type='text'>
</content>
</entry>
<entry>
<title>introduce an upgrade framework and related testing (#659)</title>
<updated>2020-11-17T21:37:29+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-11-17T21:37:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=4f2da1cc1d24cbc47025cc8613c0d3ec287a20f9'/>
<id>urn:sha1:4f2da1cc1d24cbc47025cc8613c0d3ec287a20f9</id>
<content type='text'>
This commit does the following:

* introduces the `cloudinit.persistence` module, containing
  `CloudInitPickleMixin` which provides lightweight versioning of
  objects' pickled representations (and associated testing)
* introduces a basic upgrade testing framework (in
  `cloudinit.tests.test_upgrade`) which unpickles pickles from previous
  versions of cloud-init (stored in `tests/data/old_pickles`) and tests
  invariants that the current cloud-init codebase expects
* uses the versioning framework to address an upgrade issue where
  `Distro.networking` could get into an unexpected state, and uses the
  upgrade testing framework to confirm that the issue is addressed</content>
</entry>
<entry>
<title>add --no-tty option to gpg (#669)</title>
<updated>2020-11-17T19:54:14+00:00</updated>
<author>
<name>Till Riedel</name>
<email>riedel@teco.edu</email>
</author>
<published>2020-11-17T19:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=a925b5a0ca4aa3e63b084c0f6664fe815c2c9db0'/>
<id>urn:sha1:a925b5a0ca4aa3e63b084c0f6664fe815c2c9db0</id>
<content type='text'>
Make sure that gpg works even if the instance has no /dev/tty.  This has
been observed on Debian.

LP: #1813396</content>
</entry>
<entry>
<title>replace usage of dmidecode with kenv on FreeBSD (#621)</title>
<updated>2020-11-06T18:49:05+00:00</updated>
<author>
<name>Mina Galić</name>
<email>me+git@igalic.co</email>
</author>
<published>2020-11-06T18:49:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=d83c0bb4baca0b57166a74055f410fa4f75a08f5'/>
<id>urn:sha1:d83c0bb4baca0b57166a74055f410fa4f75a08f5</id>
<content type='text'>
FreeBSD lets us read out kernel parameters with kenv(1), a user-space
utility that's shipped in "base" We can use it in place of dmidecode(8),
thus removing the dependency on sysutils/dmidecode, and the restrictions
to i386 and x86_64 architectures that this utility imposes on FreeBSD.

Co-authored-by: Scott Moser &lt;smoser@brickies.net&gt;</content>
</entry>
<entry>
<title>cloudinit: move dmi functions out of util (#622)</title>
<updated>2020-11-02T20:41:11+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2020-11-02T20:41:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=0af1ff1eaf593c325b4f53181a572110eb016c50'/>
<id>urn:sha1:0af1ff1eaf593c325b4f53181a572110eb016c50</id>
<content type='text'>
This just separates the reading of dmi values into its own file.

Some things of note:
 * left import of util in dmi.py only for 'is_container'
   It'd be good if is_container was not in util.
 * just the use of 'util.is_x86' to dmi.py
 * open() is used directly rather than load_file.</content>
</entry>
<entry>
<title>util: fix mounting of vfat on *BSD (#637)</title>
<updated>2020-11-02T17:01:41+00:00</updated>
<author>
<name>Mina Galić</name>
<email>me+git@igalic.co</email>
</author>
<published>2020-11-02T17:01:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=34f8e2213c42106b3e1568b5c5aac5565df954e3'/>
<id>urn:sha1:34f8e2213c42106b3e1568b5c5aac5565df954e3</id>
<content type='text'>
Fix mounting of vfat filesystems by normalizing the different names for
vfat to "msdos" which works across BSDs.</content>
</entry>
<entry>
<title>stages: don't reset permissions of cloud-init.log every boot (#624)</title>
<updated>2020-10-23T19:20:18+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-10-23T19:20:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=f5b3ad741679cd42d2c145e574168dafe3ac15c1'/>
<id>urn:sha1:f5b3ad741679cd42d2c145e574168dafe3ac15c1</id>
<content type='text'>
ensure_file needed modification to support doing this, so this commit
also includes the following changes:

test_util: add tests for util.ensure_file
util: add preserve_mode parameter to ensure_file
util: add (partial) type annotations to ensure_file

LP: #1900837</content>
</entry>
<entry>
<title>tests: use markers to configure disable_subp_usage (#473)</title>
<updated>2020-07-02T17:51:28+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-07-02T17:51:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=2b727914e8cbee6810b1bb9a1cfdb90ad521ceb6'/>
<id>urn:sha1:2b727914e8cbee6810b1bb9a1cfdb90ad521ceb6</id>
<content type='text'>
This is an improvement over indirect parameterisation for a few reasons:

* The test code is much easier to read, the mark names are much more
  intuitive than the indirect parameterisation invocation, and there's
  less boilerplate to boot
* The fixture no longer has to overload the single parameter that
  fixtures can take with multiple meanings</content>
</entry>
<entry>
<title>test_util: add (partial) testing for util.mount_cb (#463)</title>
<updated>2020-06-29T13:10:50+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-06-29T13:10:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=597be5e0722395638582ba541f61b29c6a7b444d'/>
<id>urn:sha1:597be5e0722395638582ba541f61b29c6a7b444d</id>
<content type='text'>
</content>
</entry>
</feed>
