> +
> + try {
> + NeutronApi neutronApi = api(server.getUrl("/").toString(),
> "openstack-neutron", overrides);
> + SecurityGroupRuleApi api =
> neutronApi.getSecurityGroupRuleApi("RegionOne").get();
> +
> + SecurityGroupRule.CreateOptions createSecurityGroupRule =
> SecurityGroupRule.createOptions(
> + SecurityGroupRuleDirection.INGRESS,
> "a7734e61-b545-452d-a3cd-0189cbd9747a")
> + .portRangeMin(80)
> + .portRangeMax(80)
> + .ethertype(SecurityGroupRuleEthertype.IPV4)
> + .protocol(SecurityGroupRuleProtocol.TCP)
> + .remoteGroupId("85cc3048-abc3-43cc-89b3-377341426ac5")
> + .build();
> +
> + SecurityGroupRule securityGroupRule =
> api.create(createSecurityGroupRule);
> + fail("Should have failed with not found exception");
Same as above, remember to verify the generated request.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r16708646