[ 
https://issues.apache.org/jira/browse/JCLOUDS-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14377586#comment-14377586
 ] 

Ignasi Barrera commented on JCLOUDS-849:
----------------------------------------

The DeploymentApi calls are direct calls to the provider so unless the response 
already contains the CloudService information you won't be able to do that.

As you say, I see two options:

* Perform the call to retrieve the CloudService information in the 
transformation function, as you already said, or
* Change the ComputeService to return a "DeploymentWithCloudService" instead of 
a Deployment, and adapt the listNodes and getNode method to return such an 
object. You can make the calls you need in the adapter to populate that 
transport object with the fields you need.

> Add the live test that extends the BaseComputeServiceLiveTest
> -------------------------------------------------------------
>
>                 Key: JCLOUDS-849
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-849
>             Project: jclouds
>          Issue Type: Sub-task
>          Components: jclouds-compute, jclouds-labs
>            Reporter: Ignasi Barrera
>            Assignee: fabio martelli
>              Labels: azure
>             Fix For: 2.0.0
>
>
> The BaseComputeServiceLiveTest provides the contract of the ComputeService 
> abstraction. All compute providers must have a test that extends the base one 
> with all live tests passing.
> An example implemention can be the DigitalOcean one:
> https://github.com/jclouds/jclouds-labs/blob/master/digitalocean/src/main/java/org/jclouds/digitalocean/compute/strategy/DigitalOceanComputeServiceAdapter.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to