~smoser/cloud-init/lp-1077700

  • Committer: Scott Moser
  • Date: 2012-10-23 16:36:41 UTC
  • mfrom: (669.1.3 cloud-init)
  • Revision ID: smoser@brickies.net-20121023163641-wzwuuy0dgfjfu0fm
Add helpers for wrapping file operations

Add a new example test that will patch utils and os
functions so that they can be 'retargeted' to a temporary
directory, which allows us the ability to run a full set
of cloud-init stages.

Neat things:

1. All cloud-init code is unchanged (as long as it goes
   through the utils functions for most functionality)
2. Allows for a natural way to setup a temporary directory
   then patch the new directory as the new 'root' and then
   run cloud-init stages and then check the contents of
   what was placed as desired.

Note:
 This is now exposing what I think was just an issue in 
 ./tools/run-pylint.
 ./tools/run-pylint ./tests/unittests/test_filters/test_launch_index.py
and
 ./tools/run-pylint ./tests/unittests/test_simple_run 
 was always failing, but now I'm seeing errors.

need to fix that.  any tests that 'import helper' have issues.
Filename Latest Rev Last Changed Committer Comment Size
..
sysvinit 559.2.435 12 years ago Scott Moser setup.py: rename "daemon type" to "init system" T Diff
tools 82 14 years ago Scott Moser add tools/ directory and 'write-mime-multipart' w Diff
doc 133 14 years ago Scott Moser add doc/userdata.txt, move examples to doc/. Diff
config 271 13 years ago Scott Moser remove 'biultin' config, separate cloud.cfg This Diff
systemd 465 12 years ago Scott Moser Add sample/example systemd config files This impo Diff
templates 14 15 years ago Bazaar Package Importer * ec2-set-apt-sources.py: - Use a template to ge Diff
upstart 80 14 years ago Scott Moser put upstart files in upstart/, minor other changes Diff
tests 499.1.1 12 years ago Mike Milner Add initial unit test framework. Add initial tests Diff
bin 559.2.1 12 years ago Joshua Harlow Move binaries to an actual binary dir. Diff
cloudinit 144 14 years ago Scott Moser globally remove ec2init and rename to cloudinit Diff
packages 559.2.335 12 years ago Joshua Harlow 1. Moving around the packages dir. 2. Adjusting th Diff
Makefile 617 12 years ago Scott Moser fix pylint in all files used by ./tools/run-pylint 475 bytes Diff Download File
Requires 577 12 years ago Scott Moser Revert back to using cheetah + adjust resultant co 855 bytes Diff Download File
TODO 585.1.1 12 years ago Joshua Harlow Add a comment/todo for the future, that instead of 2.6 KB Diff Download File
File setup.py 616.1.1 12 years ago Scott Moser pylint: setup.py 4.5 KB Diff Download File
ChangeLog 693 11 years ago Scott Moser multipart or cloud-config-archive, do not fail on 24.7 KB Diff Download File
LICENSE 450 13 years ago Scott Moser add LICENSE file 34.3 KB Diff Download File