jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alibazlamit <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1183 oneandone-monitoringpolicy-api (#325)
Date Mon, 31 Oct 2016 12:42:18 GMT
alibazlamit commented on this pull request.



> +      MonitoringPolicy updateResult = monitoringPolicyApi().update(currentPolicy.id(),
payload);
+
+      assertNotNull(updateResult);
+      assertEquals(updateResult.name(), updatedName);
+
+   }
+
+   @Test(dependsOnMethods = "testUpdate")
+   public void testAddPort() throws InterruptedException {
+      List<MonitoringPolicy.Port.AddPort> ports = new ArrayList<MonitoringPolicy.Port.AddPort>();
+      MonitoringPolicy.Port.AddPort port = MonitoringPolicy.Port.AddPort.create(80, Types.AlertIfType.RESPONDING,
true, Types.ProtocolType.TCP);
+      ports.add(port);
+      MonitoringPolicy response = monitoringPolicyApi().addPort(currentPolicy.id(), MonitoringPolicy.Port.CreatePort.create(ports));
+      currentPort = response.ports().get(0);
+
+      assertNotNull(response);

@nacx Updated, let me know when to squash.

-- 
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/325
Mime
View raw message