omaciel/robottelo — pull request #1206 by Ichimonji10 (2014-08-18 15:37:35+00:00)
Title: [DO NOT MERGE] Flesh out ComputeResource entity, test it.

When creating a new "compute resource" entity, a variable set of values must be
provided to the Foreman server. The exact set of values depends on the specified
provider. (e.g. EC2, Rackspace, etc.) Flesh out the ComputeResource entity with
logic necessary for handling this variability in requirements.

Add some API tests for the ComputeResource entity All tests for the
ComputeResource currently fail. These tests fail for a variety of reasons. For
example:

* Creating a compute resource with a provider of 'Rackspace' causes Foreman to
throw an HTTP 500 with the message "undefined method `upcase' for
nil:NilClass".
* Creating a compute resource with a provider of 'GCE' fails because Foreman
needs more data. However, the types of data needed are not discussed in the
API docs.
* Creating a compute resource with several other providers causes Foreman to
return the following error: "getaddrinfo: Name or service not known".

These issues should be tackled by someone who knows more about compute
resources.