<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/cloud_tests/testcases, branch 20.1</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.1</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2020-01-10T14:56:03+00:00</updated>
<entry>
<title>ssh_auth_key_fingerprints_disable test: fix capitalization (#165)</title>
<updated>2020-01-10T14:56:03+00:00</updated>
<author>
<name>Paride Legovini</name>
<email>paride.legovini@canonical.com</email>
</author>
<published>2020-01-10T14:56:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=3f6192b39894761e8ddecefa3736ea0abbc35b90'/>
<id>urn:sha1:3f6192b39894761e8ddecefa3736ea0abbc35b90</id>
<content type='text'>
Adapt the test to the new capitalization introduced in
8116493950e7c47af0ce66fc1bb5d799ce5e477a.</content>
</entry>
<entry>
<title>modules: drop cc_snap_config config module (#134)</title>
<updated>2019-12-20T20:34:30+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2019-12-20T20:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=c7dca877c1fa3dc8b63486bb88022ee23a31bebe'/>
<id>urn:sha1:c7dca877c1fa3dc8b63486bb88022ee23a31bebe</id>
<content type='text'>
cloud-init has moved to cc_snap module and a top-level
config key 'snap'. cc_snap_config was deprecated in
cloud-init version 18.2

Co-authored-by: Daniel Watkins &lt;daniel@daniel-watkins.co.uk&gt;
</content>
</entry>
<entry>
<title>cc_snappy: remove deprecated module (#127)</title>
<updated>2019-12-20T00:00:27+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2019-12-20T00:00:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=87f2cb0acc7e802f93fa71ff3432dfd6708717ca'/>
<id>urn:sha1:87f2cb0acc7e802f93fa71ff3432dfd6708717ca</id>
<content type='text'>
* cc_snappy: remove deprecated module
* cloud_tests: remove cc_snappy tests (and references)

This module was deprecated in favor of cc_snap in cloud-init v.18.2</content>
</entry>
<entry>
<title>cloud_tests: fix apt_pipelining test-cases</title>
<updated>2019-04-01T14:24:26+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2019-04-01T14:24:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=47c53002ea7a661c674c3e409357db7e8a00297a'/>
<id>urn:sha1:47c53002ea7a661c674c3e409357db7e8a00297a</id>
<content type='text'>
The apt_pipelining test-cases were broken but until cloud-init
changed it's default behavior to not disable, these silently passed
as both only ever checked if pipelinging was disabled.

First, the tests used the 'apt' namespace, which is not for
configuring pipelining, rather that requires 'apt_pipelining'
 as the namespace.

Second, the 'os' variant needs to check that cloud-init does not
write a configuration file; it was a copy-and-paste error from the
disable test-case.

This branch fixes the config and collection to validate both
scenarios.
</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>
</feed>
