Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-02 | pep8 | Scott Moser | |
2015-02-26 | Fix traceback with no arguments on Python 3. | Daniel Watkins | |
Fixes bug 1424277. | |||
2015-02-25 | move towards user-data being binary | Scott Moser | |
UrlResponse: biggest change... make readurl return bytes, making user know what to do with it. util: add load_tfile_or_url for loading text file or url as read_file_or_url now returns bytes ec2_utils: all meta-data is text, remove non-obvious string translations DigitalOcean: adjust for ec2_utils DataSourceGCE, DataSourceMAAS: user-data is binary other fields are text. openstack.py: read paths without decoding to text. This is ok as paths other than user-data are json, and load_json will handle load_file still returns text, and that is what most things use. | |||
2015-02-24 | move recently added test_udprocess tests to test_data, improve a bit | Scott Moser | |
explicitly test compressed user-data. | |||
2015-02-24 | Azure: Fix consumption of user-data | Scott Moser | |
This was previously broken in python3 as the userdata would be bytes rather than a string. LP: #1423972 | |||
2015-02-24 | use util.decode_binary rather than str, add tests. | Scott Moser | |
just seems to make more sense to decode here. Add a test showing the previous failure (testBytesInPayload) And one that should pass (testStringInPayload) Also, add a test for unencoded content in the ovf xml (test_userdata_plain) And explicitly set encoding on another test (test_userdata_found). | |||
2015-02-24 | merge from trunk | Scott Moser | |
2015-02-20 | Add automated tests for CloudStack passwords. | Daniel Watkins | |
2015-02-18 | Read ovf-env.xml as bytes. | Daniel Watkins | |
This should fix the Azure data source on Python 3, and is appropriate as XML shouldn't really be read as a string. | |||
2015-02-13 | tests/unittests/test_util.py: pep8 | Scott Moser | |
2015-02-11 | pep8 | Scott Moser | |
2015-02-11 | Add unittests for util.multi_log. | Daniel Watkins | |
2015-02-11 | Add helpers for patching open and stdout/stderr. | Daniel Watkins | |
2015-02-11 | Fix import ordering in test_util.py. | Daniel Watkins | |
2015-02-10 | pep8 | Scott Moser | |
2015-02-10 | pep8 | Scott Moser | |
2015-02-10 | skip cheetah dependent test | Scott Moser | |
2015-02-10 | make bddeb work with python3 or python2 | Scott Moser | |
painful, and not perfect, but at this point the output builds on a vivid system python2 (bddeb --python2) or python3. * remove use of cheetah by bddeb in favor of builtin renderer * add '--python2' flag to bddeb and knowledge of python 2 and python3 package names. * read-dependencies can now read test-requirements also. * differenciate from build-requirements and runtime requirements. | |||
2015-01-27 | Respond to review: | Barry Warsaw | |
- Refactor both the base64 encoding and decoding into utility functions. Also: - Mechanically fix some other broken untested code. | |||
2015-01-26 | super() works in all of Python 2.6, 2.7, and 3.4. | Barry Warsaw | |
2015-01-26 | Repair the Python 2.6 tests. | Barry Warsaw | |
2015-01-26 | Trunk merged and ported. | Barry Warsaw | |
2015-01-26 | Port the MAAS code to oauthlib. | Barry Warsaw | |
2015-01-26 | Down to it. | Barry Warsaw | |
2015-01-26 | * More str/bytes fixes. | Barry Warsaw | |
* Temporarily skip the MAAS tests in py3 since they need to be ported to oauthlib. | |||
2015-01-26 | More Python 3 test fixes. | Barry Warsaw | |
2015-01-26 | More test repairs. | Barry Warsaw | |
2015-01-22 | Low hanging Python 3 fruit. | Barry Warsaw | |
2015-01-22 | Conversion from mocker to mock completed. | Barry Warsaw | |
2015-01-22 | More conversions from mocker to mock. | Barry Warsaw | |
2015-01-22 | More conversions from mocker to mock. | Barry Warsaw | |
2015-01-22 | More test ports from mocker to mock. | Barry Warsaw | |
2015-01-22 | Clean up. | Barry Warsaw | |
2015-01-22 | Convert helpers.py and test_data.py from mocker to mock. | Barry Warsaw | |
2015-01-22 | Use .addCleanup() instead of a .tearDown() where appropriate, although we | Barry Warsaw | |
might have to rewrite this for Python 2.6. Disable Cepko tests (test_cs_util.py) since they are essentially worthless. Convert test_azure to unittest.mock. | |||
2015-01-22 | merge from trunk | Scott Moser | |
2015-01-22 | Port test__init__.py to unittest.mock. | Barry Warsaw | |
2015-01-21 | Largely merge lp:~harlowja/cloud-init/py2-3 albeit manually because it seemed | Barry Warsaw | |
to be behind trunk. `tox -e py27` passes full test suite. Now to work on replacing mocker. | |||
2015-01-21 | Use either syspath or dmidecode based on the availability. | Ben Howard | |
2015-01-21 | More octal literal fixes. | Barry Warsaw | |
2015-01-21 | Fix file modes to be Python 2/3 compatible. | Barry Warsaw | |
2015-01-21 | Only install cheetah (and only run the cheetah templating test) when in Python | Barry Warsaw | |
2. Cheetah is not compatible with Python 3. | |||
2015-01-14 | Drop reliance on dmidecode executable. | Ben Howard | |
2015-01-14 | Use the short name for GCE hostnames per GCE's request (LP: #1383794). | Ben Howard | |
2015-01-06 | remove the user-data-encoding from test meta-data | Scott Moser | |
just so we don't come to rely on it being set to 'base64' or ''. rather the default case is that it wont be present at all. | |||
2015-01-06 | merge from trunk | Scott Moser | |
2015-01-06 | tools/run-pep8: remove leading ',' fed to --ignore | Scott Moser | |
--ignore was being called with ',E121,E...' rather than 'E121,E...'. that resulted in odd behavior, missing the pep8 errors that are fixed here. | |||
2015-01-06 | pep8 | Scott Moser | |
2014-12-19 | add user-data encoding support for gce | Wayne Witzel III | |
2014-11-24 | Use assertNotEqual which exists on python2.6 | Joshua Harlow | |
Instead of using assertGreater which is new on python2.7 just use assertNotEqual which does exist on python2.6 to perform the same/similar operation. This makes the unittest not break on python2.6 |