opscode/knife-rackspace — pull request #45 by maxlinc (2013-05-31 22:15:45+00:00)
Title: A framework for integration tests

I've added a framework that makes simple integration testing possible. The tests:

Invoke the same knife commands a user would and capture the output.
Uses VCR to record the calls to the Rackspace API. This gives you the option of running the tests against live services or using recorded responses. The recorded responses are much faster (servers start instantly instead of taking several minutes) and lets you test even if you are offline or do not have a Rackspace account with all the required features.

I only concentrated on the Rackspace integration and end-user experience. I didn't focus on bootstrapping since it is common across all provisioners (manual, knife-rackspace, knife-openstack, etc) as long as they pass the required options and server information to Chef::Knife::Bootstrap.