~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
..
chef_client.rb.tmpl 578 12 years ago Scott Moser add header/explanation to templates/chef_client.rb 892 bytes Diff Download File
hosts.redhat.tmpl 577 12 years ago Scott Moser Revert back to using cheetah + adjust resultant co 906 bytes Diff Download File
hosts.ubuntu.tmpl 577 12 years ago Scott Moser Revert back to using cheetah + adjust resultant co 934 bytes Diff Download File
sources.list.tmpl 628.1.1 12 years ago Scott Moser rework package mirror selection There are several 2.7 KB Diff Download File