jcloudsLocation.getConfig(JcloudsLocation.INBOUND_PORTS) is returning null


On 6 August 2013 15:56, Aled Sage <notifications@github.com> wrote:

> In
> locations/jclouds/src/test/java/brooklyn/location/jclouds/SingleMachineProvisioningLocationJcloudsTest.java:
>
> > +            }
> > +        }
> > +        if (managementContext != null) managementContext.terminate();
> > +        if (exceptions.size() > 0) {
> > +            throw new CompoundRuntimeException("Exception during tear down", exceptions);
> > +        }
> > +    }
> > +
> > +    @SuppressWarnings("unchecked")
> > +    @Test(groups="Live")
> > +    public void testJcloudsSingle() throws Exception {
> > +        location = (SingleMachineProvisioningLocation<MachineLocation>)
> > +            managementContext.getLocationRegistry().resolve("single:(target='jclouds:aws-ec2:us-east-1')");
> > +        location.setManagementContext(managementContext);
> > +
> > +        MachineLocation m1 = location.obtain();
>
> You mentioned over skype about how to check if inboundPorts=... was being
> picked up properly.
>
> You could (probably?!) do:
>
> JcloudsLocation jcloudsLocation = ((JcloudsSshMachineLocation)m1).getParent();
> assertEquals(jcloudsLocation.getConfig(JcloudsLocation.INBOUND_PORTS), somethingOrOther);
>
> same for other config being passed in.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/brooklyncentral/brooklyn/pull/857/files#r5606137>
> .
>



-- 
Martin Harris
Lead Software Engineer, AgriWise Solutions
Cloudsoft Corporation Ltd
www.cloudsoftcorp.com
Mobile: +44 (0)7989 047-855