Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread mirza-spc
Sorry about that, these are basically still the PRs that were completed in december last year and sometimes things get overlooked while applying all of the changes because it's all a bit of mechanical repetition. > On Apr 11, 2016, at 11:43 PM, Ignasi Barrera wrote: > > Thanks @mirza-spc! > Mo

[jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm LocationApi (#256)

2016-04-11 Thread Rita Zhang
@nacx @andreaturli This PR is part of the foundations needed for interacting with Azure Resource Manager (ARM) Rest APIs. The Location API is the second API. FYI @jmspring @jtjk @isalento You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds-labs/p

[jira] [Commented] (JCLOUDS-1077) Fix ProjectApiLiveTest in GCE

2016-04-11 Thread Ignasi Barrera (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236138#comment-15236138 ] Ignasi Barrera commented on JCLOUDS-1077: - Fix: https://github.com/jclouds/jclou

[jclouds/jclouds] JCLOUDS-1077: Fix ProjectApiLiveTest in Google Compute Engine (#944)

2016-04-11 Thread Ignasi Barrera
https://issues.apache.org/jira/browse/JCLOUDS-1077 You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds/pull/944 -- Commit Summary -- * JCLOUDS-1077: Fix ProjectApiLiveTest in Google Compute Engine -- File Changes -- M providers/google-com

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
Thanks @mirza-spc! Most of the comments are exactly the same that were made in the previous LAN api pull request. Please, take your time to review and understand them in order to avoid repeating those patterns in upcoming pull requests. --- You are receiving this because you are subscribed to th

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> + @Test > + public void testGetFirewallRule() throws InterruptedException { > + MockResponse response = new MockResponse(); > + response.setBody(stringFromResource("/firewall/get.json")); > + response.setHeader("Content-Type", > "application/vnd.profitbricks.resource+json"); >

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> + } > + > + private void assertFirewallRuleRemoved(FirewallRule firewallRule) { > + assertPredicate(new Predicate() { > + @Override > + public boolean apply(FirewallRule testRule) { > +return firewallApi().getFirewallRule(testRule.dataCenterId(), > testRul

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> +import org.jclouds.rest.annotations.PATCH; > +import org.jclouds.rest.annotations.PayloadParam; > +import org.jclouds.rest.annotations.RequestFilters; > +import org.jclouds.rest.annotations.ResponseParser; > +import org.jclouds.rest.annotations.SelectJson; > +import org.jclouds.util.Strings2; >

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> + FirewallRule firewallRule = > firewallApi().getFirewallRule(dataCenter.id(), testServer.id(), testNic.id(), > testFirewallRule.id()); > + > + assertNotNull(firewallRule); > + assertEquals(firewallRule.id(), testFirewallRule.id()); > + } > + > + @Test(dependsOnMethods = "tes

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> + > + @Test(dependsOnMethods = "testCreateFirewallRule") > + public void testGetFirewallRule() { > + FirewallRule firewallRule = > firewallApi().getFirewallRule(dataCenter.id(), testServer.id(), testNic.id(), > testFirewallRule.id()); > + > + assertNotNull(firewallRule); > +

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> +import org.apache.jclouds.profitbricks.rest.ids.ServerRef; > +import > org.apache.jclouds.profitbricks.rest.internal.BaseProfitBricksLiveTest; > +import org.testng.annotations.AfterClass; > +import org.testng.annotations.BeforeClass; > +import org.testng.annotations.Test; > +import static org.t

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> +requestBuilder.put("sourceIp", payload.sourceIp()); > + > + if (payload.targetIp() != null) > +requestBuilder.put("targetIp", payload.targetIp()); > + > + if (payload.icmpCode() != null) > +requestBuilder.put("icmpCode", payload.icmpCode()); > + > + if (pay

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Ignasi Barrera
> > -public abstract int portRangeEnd(); > +public abstract Integer portRangeEnd(); Any reason to convert to Integer if it is not marked as `@Nullable`? --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https

Re: [jclouds/jclouds-labs] Profitbricks REST - Firewall API (#255)

2016-04-11 Thread Matt Baldwin
hey @nacx let me know if you need anything from our end to merge these PRs on into the project. We'd like to wrap them up soon :) --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull