<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/unittests/test_userdata.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>2014-01-09T00:16:24+00:00</updated>
<entry>
<title>Significant re-working of the userdata handling and introduction of</title>
<updated>2014-01-09T00:16:24+00:00</updated>
<author>
<name>Ben Howard</name>
<email>ben.howard@canonical.com</email>
</author>
<published>2014-01-09T00:16:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a5727fe1477c9cc4288d1ac41f70bd1ab7d7928a'/>
<id>urn:sha1:a5727fe1477c9cc4288d1ac41f70bd1ab7d7928a</id>
<content type='text'>
vendordata.

Vendordata is a datasource provided userdata-like blob that is parsed
similiarly to userdata, execept at the user's pleasure.


cloudinit/config/cc_scripts_vendor.py: added vendor script cloud config

cloudinit/config/cc_vendor_scripts_per_boot.py: added vendor per boot
    cloud config

cloudinit/config/cc_vendor_scripts_per_instance.py: added vendor per
    instance vendor cloud config

cloudinit/config/cc_vendor_scripts_per_once.py: added per once vendor
    cloud config script

doc/examples/cloud-config-vendor-data.txt: documentation of vendor-data
    examples

doc/vendordata.txt: documentation of vendordata for vendors

(RENAMED) tests/unittests/test_userdata.py =&gt; tests/unittests/test_userdata.py
      TO: tests/unittests/test_userdata.py =&gt; tests/unittests/test_data.py:
    userdata test cases are not expanded to confirm superiority over vendor
    data.

bin/cloud-init: change instances of 'consume_userdata' to 'consume_data'

cloudinit/handlers/cloud_config.py: Added vendor script handling to default
    cloud-config modules

cloudinit/handlers/shell_script.py: Added ability to change the path key to
    support vendor provided 'vendor-scripts'. Defaults to 'script'.

cloudinit/helpers.py:
    - Changed ConfigMerger to include handling of vendordata.
    - Changed helpers to include paths for vendordata.

cloudinit/sources/__init__.py: Added functions for helping vendordata
    - get_vendordata_raw(): returns vendordata unprocessed
    - get_vendordata(): returns vendordata through userdata processor
    - has_vendordata(): indicator if vendordata is present
    - consume_vendordata(): datasource directive for indicating explict
        user approval of vendordata consumption. Defaults to 'false'

cloudinit/stages.py: Re-jiggered for handling of vendordata
    - _initial_subdirs(): added vendor script definition
    - update(): added self._store_vendordata()
    - [ADDED] _store_vendordata(): store vendordata
    - _get_default_handlers(): modified to allow for filtering
        which handlers will run against vendordata
    - [ADDED] _do_handlers(): moved logic from consume_userdata
        to _do_handlers(). This allows _consume_vendordata() and
        _consume_userdata() to use the same code path.
    - [RENAMED] consume_userdata() to _consume_userdata()
    - [ADDED] _consume_vendordata() for handling vendordata
        - run after userdata to get user cloud-config
        - uses ConfigMerger to get the configuration from the
            instance perspective about whether or not to use
            vendordata
    - [ADDED] consume_data() to call _consume_{user,vendor}data

cloudinit/util.py:
    - [ADDED] get_nested_option_as_list() used by cc_vendor* for
        getting a nested value from a dict and returned as a list
    - runparts(): added 'exe_prefix' for running exe with a prefix,
        used by cc_vendor*

config/cloud.cfg: Added vendor script execution as default

tests/unittests/test_runs/test_merge_run.py: changed consume_userdata() to
    consume_data()

tests/unittests/test_runs/test_simple_run.py: changed consume_userdata() to
    consume_data()
</content>
</entry>
<entry>
<title>fix permission changes</title>
<updated>2013-10-02T13:25:36+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2013-10-02T13:25:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=c8abc4a6dc53624809a1fcd065ac132678f376ef'/>
<id>urn:sha1:c8abc4a6dc53624809a1fcd065ac132678f376ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reordered several imports in order for test suite to pass.</title>
<updated>2013-10-01T21:19:43+00:00</updated>
<author>
<name>Eric Nordlund</name>
<email>nrdlngr@gmail.com</email>
</author>
<published>2013-10-01T21:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1aa4d4ea6835221719a12134a8314d6d4b8eeb61'/>
<id>urn:sha1:1aa4d4ea6835221719a12134a8314d6d4b8eeb61</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add test case for mime gzipped message segments</title>
<updated>2013-07-24T17:15:59+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2013-07-24T17:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=724ff70e6a0d737844a1a4261f8786a5dc9099b5'/>
<id>urn:sha1:724ff70e6a0d737844a1a4261f8786a5dc9099b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix small prefix bug + jsonp tests.</title>
<updated>2013-07-24T15:39:03+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2013-07-24T15:39:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=851906b6acde33fddcbdd1d41f366d6652d1e84d'/>
<id>urn:sha1:851906b6acde33fddcbdd1d41f366d6652d1e84d</id>
<content type='text'>
Fix the wrong usage of the prefix removal array action
by just using the new util function that does these
actions correctly. 

Add in a couple of unit tests to verify the jsonp merging
and usage works as expected.
</content>
</entry>
<entry>
<title>Add test for mime gzipped message segments.</title>
<updated>2013-07-24T07:34:58+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2013-07-24T07:34:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1750c756e0d4a63747ffdcd0040958622e3caf58'/>
<id>urn:sha1:1750c756e0d4a63747ffdcd0040958622e3caf58</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the cloud config merging so that it is backwards compat.</title>
<updated>2013-05-10T05:34:31+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2013-05-10T05:34:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=2b351c5435939d16ba06ec0c45847d47f4b21d51'/>
<id>urn:sha1:2b351c5435939d16ba06ec0c45847d47f4b21d51</id>
<content type='text'>
The new change for merging works well in the mergedict case
but the default merging type for cloud config needs to reflect
how yaml was loaded in bulk, which is the same as the replacing
keys merging type that is now provided.
</content>
</entry>
<entry>
<title>More merging adjustments.</title>
<updated>2013-05-03T21:41:28+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2013-05-03T21:41:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=4a669649b17cf01b6f89f7902b6683d02ef0bee1'/>
<id>urn:sha1:4a669649b17cf01b6f89f7902b6683d02ef0bee1</id>
<content type='text'>
Looks like this should be in pretty good shape and has passed some
of the basic backwards compat. merging tests that I added.
</content>
</entry>
<entry>
<title>more pep8/pylint. all clean now</title>
<updated>2013-03-07T22:13:05+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2013-03-07T22:13:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=5da3984c2ca9e94b2483ab89ecdb5c93b5afb9f8'/>
<id>urn:sha1:5da3984c2ca9e94b2483ab89ecdb5c93b5afb9f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix pep8 and pylint</title>
<updated>2013-03-07T21:47:54+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2013-03-07T21:47:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=aae7fe638f61aaf02c6579d5b691a8641455c875'/>
<id>urn:sha1:aae7fe638f61aaf02c6579d5b691a8641455c875</id>
<content type='text'>
</content>
</entry>
</feed>
