Nope, that's not the case. Looking at
https://github.com/jclouds/jclouds/blob/master/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/extensions/AWSEC2ImageExtensionLiveTest.java#L43,
it's got the right provider, but it's barfing. I was able to get the test
to pass by changing "AWSEC2Api client = view.unwrapApi(AWSEC2Api.class)" to
"AWSEC2Api client = (AWSEC2Api)view.unwrapApi(EC2Api.class)" but that feels
like cheating, and makes me worry about actual use cases...

Erm...please ignore my question about the backend type - the error message tells us that. Looks like there's a bug in the ApiContext for AWS EC2: the backend type should surely be

org.jclouds.rest.ApiContext<org.jclouds.ec2.AWSEC2Api>

and not

org.jclouds.rest.ApiContext<org.jclouds.ec2.EC2Api>

..?

ap

Reply via email to