jclouds/jclouds-chef — pull request #19 by nacx (2012-07-02 14:24:12+00:00)
Title: Enabled base Chef api tests in Private Chef 

Enabled basic Chef api tests in Private Chef api (user and organization specific tests are still disabled):

* Refactored BaseChefClientLiveTest to allow the use of different
context types such as PrivateChefContext, etc.
* Added delegate methods to PrivateChef*Clients to access the
Chef*Clients.
* Removed the hardcoded Chef Server version in tests and read it from
the system properties.

Running live tests in private chef now results in:

_testUpdateCookbook(org.jclouds.privatechef.PrivateChefClientLiveTest): command: PUT https://api.opscode.com/organizations/nacx/cookbooks/quick-start/0.0.1 HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [Manifest has checksum (path ) but it hasn't yet been uploaded]_
_testNodeExists(org.jclouds.privatechef.PrivateChefClientLiveTest): command: HEAD https://api.opscode.com/organizations/nacx/nodes/ibarrera-jcloudstest HTTP/1.1 failed with response: HTTP/1.1 405 Method Not Allowed; content: [null]_

_Tests run: 31, Failures: 2, Errors: 0, Skipped: 1_

There are a couple of things to note here:

1. The uploadCookbook test that is failing in Chef community is working in the private chef. The results of the Chef community tests can be checked out here: [here](http://pastie.org/pastes/4186287). I am still waiting for a response in #chef-hacking.
2. The nodeExists method works in the community Chef api but it seems to be failing in private Chef.

Once I've got a chance to take a deeper look to these failures I'll enable the User and Organization tests.