jclouds/jclouds — pull request #457 by aledsage (2012-03-16 14:10:05+00:00)
Title: Issue #830: VdcClient live tests

Code notes:
* an uploaded vAppTemplate starts life in a NOT_READY state. If you ask it for its files, it returns a file with size -1 (i.e. doesn't exist because stage 2-4 of upload haven't been done). I've therefore had to do a bit of unpleasant overloading of the Checks to say whether to assert the file size is >= 0.

---
Progress report:

Tests: 10
Pass: 6
Fail: 3
Skip: 1

Errors:
* clone vApp template gives 500 error (e-mailed Adrian about that yesterday; no response yet)
* clone vApp gives 500 error (possibly same as above?)
* getMetadata wants at least one entry for testing, but none exist yet
* getMetadataValue skipped because no metadata entries exist

Other notes:
* `POST /vdc/{id}/media` is not covered by any live tests yet