<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/cloud_tests, branch crux</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=crux</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2018-12-11T23:05:39+00:00</updated>
<entry>
<title>tests: add Disco release</title>
<updated>2018-12-11T23:05:39+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>josh.powers@canonical.com</email>
</author>
<published>2018-12-11T23:05:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=e1da348a968567a765c34a8c6f04f6ea9930721b'/>
<id>urn:sha1:e1da348a968567a765c34a8c6f04f6ea9930721b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: meta_data key changed to meta-data in ec2 instance-data.json</title>
<updated>2018-10-10T21:04:43+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-10-10T21:04:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=4652b196e04b68d7c335e64766e3a0140157417c'/>
<id>urn:sha1:4652b196e04b68d7c335e64766e3a0140157417c</id>
<content type='text'>
LP: #1797231
</content>
</entry>
<entry>
<title>tests: fix kvm integration test to assert flexible config-disk path</title>
<updated>2018-10-10T19:29:55+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-10-10T19:29:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=9f88125a25338b70b53a2f5b0af59499f334f261'/>
<id>urn:sha1:9f88125a25338b70b53a2f5b0af59499f334f261</id>
<content type='text'>
Make integration test for flexible using regexp in case disk changes.

LP: #1797199
</content>
</entry>
<entry>
<title>instance-data: Add standard keys platform and subplatform. Refactor ec2.</title>
<updated>2018-10-09T21:46:35+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-10-09T21:46:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=f0bc02d7e221c9aa5982b267739481420c761ead'/>
<id>urn:sha1:f0bc02d7e221c9aa5982b267739481420c761ead</id>
<content type='text'>
Add the following instance-data.json standardized keys:
* v1._beta_keys: List any v1 keys in beta development,
  e.g. ['subplatform'].
* v1.public_ssh_keys: List of any cloud-provided ssh keys for the
  instance.
* v1.platform: String representing the cloud platform api supporting the
  datasource. For example: 'ec2' for aws, aliyun and brightbox cloud
  names.
* v1.subplatform: String with more details about the source of the
  metadata consumed. For example, metadata uri, config drive device path
  or seed directory.

To support the new platform and subplatform standardized instance-data,
DataSource and its subclasses grew platform and subplatform attributes.
The platform attribute defaults to the lowercase string datasource name at
self.dsname. This method is overridden in NoCloud, Ec2 and ConfigDrive
datasources.

The subplatform attribute calls a _get_subplatform method which will
return a string containing a simple slug for subplatform type such as
metadata, seed-dir or config-drive followed by a detailed uri, device or
directory path where the datasource consumed its configuration.

As part of this work, DatasourceEC2 methods _get_data and _crawl_metadata
have been refactored for a few reasons:
- crawl_metadata is now a read-only operation, persisting no attributes on
  the datasource instance and returns a dictionary of consumed metadata.
- crawl_metadata now closely represents the raw stucture of the ec2
  metadata consumed, so that end-users can leverage public ec2 metadata
  documentation where possible.
- crawl_metadata adds a '_metadata_api_version' key to the crawled
  ds.metadata to advertise what version of EC2's api was consumed by
  cloud-init.
- _get_data now does all the processing of crawl_metadata and saves
  datasource instance attributes userdata_raw, metadata etc.

Additional drive-bys:
* unit test rework for test_altcloud and test_azure to simplify mocks
  and make use of existing util and test_helpers functions.
</content>
</entry>
<entry>
<title>tests: fix apt_configure_primary to be more flexible</title>
<updated>2018-10-07T19:31:50+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-10-07T19:31:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=638f09e82260ea3256c387cd55408e0411f36c23'/>
<id>urn:sha1:638f09e82260ea3256c387cd55408e0411f36c23</id>
<content type='text'>
Commit d3e803ad316e6796e5d83e7e8f8f4f7224b92df9 added deb-src comments to
the cloud-init apt templates. This doubled the number of matching entries
seen in /etc/apt/sources.list in apt_configure_primary integration test.

This test was really asserting that GaTech urls were present in
/etc//apt/sources.list instead of archive.ubuntu.com. Fix the test to be a
bit more flexible in case cloud-init changes its bas apt template again.
</content>
</entry>
<entry>
<title>tests: allow skipping an entire cloud_test without running.</title>
<updated>2018-10-01T18:23:34+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-10-01T18:23:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=40768bad4c7eb966b2a8c1308cdae22e578b2413'/>
<id>urn:sha1:40768bad4c7eb966b2a8c1308cdae22e578b2413</id>
<content type='text'>
Individual skipTest or setUp SkipTest will still launch the instance.
This allows us to stop the running of the instance so we don't
waste cycles or boot systems that are known to fail.

Also replace remaining unittest usage in tests/cloud_tests/
with unittest2.
</content>
</entry>
<entry>
<title>tests: disable lxd tests on cosmic</title>
<updated>2018-09-28T20:47:28+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-09-28T20:47:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=c239eb82f1bfe1d0c4b79f2a733f04cfb3277fbf'/>
<id>urn:sha1:c239eb82f1bfe1d0c4b79f2a733f04cfb3277fbf</id>
<content type='text'>
Skip lxd tests on cosmic for two reasons:
a.) bug 1795036 - 'lxd init' fails on cosmic kernel.
b.) apt install lxd installs via snap which can be slow
    as that will download core snap and lxd.
</content>
</entry>
<entry>
<title>cii-tests: use unittest2.SkipTest in ntp_chrony due to new deps</title>
<updated>2018-09-27T21:02:28+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-09-27T21:02:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=fb5015fe3f5078149463838b7974523646f94eab'/>
<id>urn:sha1:fb5015fe3f5078149463838b7974523646f94eab</id>
<content type='text'>
Git commitish fc4b966ba928b30b1c586407e752e0b51b1031e8 changed integration
test dependencies from unittest to unittest2.  Use unittest2.SkipTest in
test_chrony to avoid causing tracebacks.
</content>
</entry>
<entry>
<title>lxd: adjust to snap installed lxd.</title>
<updated>2018-09-26T21:29:27+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-09-26T21:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=facb92c5b55f4d27ee971eaf49c580fbf92ac2c3'/>
<id>urn:sha1:facb92c5b55f4d27ee971eaf49c580fbf92ac2c3</id>
<content type='text'>
Relax expectation on path to lxc and lxd.  The deb path still does
install them in /usr/bin/ but that is overly pedantic.

Add a 'lxd waitready' (present since lxd 0.5) to wait until lxd
is ready before operating on it.
</content>
</entry>
<entry>
<title>tests: fix ec2 integration tests. process meta_data instead of meta-data</title>
<updated>2018-09-26T19:29:34+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-09-26T19:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=27ff9c45744d4d5de44046b8b85ba0d10cd3e3f6'/>
<id>urn:sha1:27ff9c45744d4d5de44046b8b85ba0d10cd3e3f6</id>
<content type='text'>
Commitish c7555762f3a30190ce7726b4d013bc3e83c7e4b6 changed the variable
names in instance-data.json from hyphenated to underscore delimited. In
the shuffle, meta-data -&gt; meta_data was missed.
</content>
</entry>
</feed>
