<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/cloud_tests/platforms/lxd, branch crux</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=crux</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=crux'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2018-07-27T16:04:08+00:00</updated>
<entry>
<title>tests: improve LXDInstance trying to workaround or catch bug.</title>
<updated>2018-07-27T16:04:08+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-07-27T16:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=361ae34d3fd2f5784ddac23c6650ac5a8f2e14cd'/>
<id>urn:sha1:361ae34d3fd2f5784ddac23c6650ac5a8f2e14cd</id>
<content type='text'>
Described in bug 1783198 we have seen some transient failures when
using pylxd -&gt; lxd api.
This does:
 * adds a str() representation of LXDInstance
 * checks the value of the pylxd_container object on instantion
 * sets pylxd_container object to None on deletion.
 * adds retry logic to shutdown()
</content>
</entry>
<entry>
<title>cloud_tests: help pylint</title>
<updated>2018-05-17T15:57:37+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2018-05-17T15:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=2dab7046f88e540836498b363c90ad46302a7cc4'/>
<id>urn:sha1:2dab7046f88e540836498b363c90ad46302a7cc4</id>
<content type='text'>
pylint missed finding a typo in the lxd platform because it could not
determine that the variable was being used was a string.  The variable
was set by loading a yaml file which pylint couldn't know that it
would be a string.  In these cases, we can be more explicit.
</content>
</entry>
<entry>
<title>pylint: pay attention to unused variable warnings.</title>
<updated>2018-04-20T03:30:08+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-04-20T03:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1081962eacf2814fea6f4fa3255c530de14e4a24'/>
<id>urn:sha1:1081962eacf2814fea6f4fa3255c530de14e4a24</id>
<content type='text'>
This enables warnings produced by pylint for unused variables (W0612),
and fixes the existing errors.
</content>
</entry>
<entry>
<title>tests: fix integration tests to support lxd 3.0 release</title>
<updated>2018-04-03T22:52:13+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-04-03T22:52:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=05926e48eae0fa70a26da6449617e04e87c4e704'/>
<id>urn:sha1:05926e48eae0fa70a26da6449617e04e87c4e704</id>
<content type='text'>
Integration tests previously had a logic path that was unexercised on
jenkins because we were on an older version of lxc. With an upgrade to lxd
version 3.0 we need to bump pylxd dependency pin and fix a typo in
integration tests which checked the lxd version.
</content>
</entry>
<entry>
<title>tests: Fix some warnings in tests that popped up with newer python.</title>
<updated>2018-03-15T15:45:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-03-15T15:45:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=bef2f2c945fdee4a1141c3177b3e48b1537027e4'/>
<id>urn:sha1:bef2f2c945fdee4a1141c3177b3e48b1537027e4</id>
<content type='text'>
When running 'tox -e pylint' on a bionic system (python 3.6.4) I started
seeing errors today like:
  tests/cloud_tests/platforms/__init__.py:5: [E0401(import-error), ]
      Unable to import 'tests.cloud_tests.platforms.ec2'

The fix for those first errors was simply to create the __init__.py.
The second set of changes fixes fallout found from actually now having
pylint properly run on more of the cloud_tests.
</content>
</entry>
<entry>
<title>tests: add support for logs with lxd from snap and future lxd 3.</title>
<updated>2018-02-12T15:53:49+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-26T21:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=f576b2a24b8014e91087933d19a7a0d396787c30'/>
<id>urn:sha1:f576b2a24b8014e91087933d19a7a0d396787c30</id>
<content type='text'>
This puts in place detection for if 'show-log' will work with lxc
client, and uses that if present. The 'lxc console --show-log' is
not expected to work until lxd/liblxc3.0. That should come in a
few months. The hope is that when that function arrives, this
code will move over to using it.

For other scenarios (all current lxd installs) this will now
support getting logs from a snap installed lxd or a package installed
lxd via the old 'lxc.console.logfile'.

If installed from snap, a platform error will be raised until
the user does:
   sudo mkdir --mode=1777 -p /var/snap/lxd/common/consoles

LP: #1745663
</content>
</entry>
<entry>
<title>tests: Collect script output as binary, collect systemd journal, fix lxd.</title>
<updated>2018-01-25T19:26:34+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-25T19:26:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=bc84f5023f795c261e32cf0690b2d29e12cfaedd'/>
<id>urn:sha1:bc84f5023f795c261e32cf0690b2d29e12cfaedd</id>
<content type='text'>
This adds collection a gzip compressed systemd journal on systemd systems.
The file can later be reviewed with:
  zcat system.journal.gz &gt; system.journal
  journalctl --file=system.journal [-o short-monotonic ..]

To support this:
  * modify test harness infrastructure to not assume content is utf-8.
  * fix lxd platform to support make '_execute' return bytes rather
    than a string. https://github.com/lxc/pylxd/issues/268

Also switched the base collectors to use /bin/sh as others already did.
</content>
</entry>
<entry>
<title>tests: consolidate platforms into specific dirs</title>
<updated>2017-12-05T22:05:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-12-05T22:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=47016791ca5e97d80e45d3f100bc4e5d0b88627d'/>
<id>urn:sha1:47016791ca5e97d80e45d3f100bc4e5d0b88627d</id>
<content type='text'>
This groups up each test platform into its own directory rather
than having files spread between four different directories for
one platform. Platforms tend to be worked on one at a time and
so having the platforms together makes more sense than apart.
</content>
</entry>
</feed>
