summaryrefslogtreecommitdiffstats
path: root/heat-client/src
diff options
context:
space:
mode:
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-05-02 09:42:55 -0400
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-05-07 10:02:17 -0400
commit3f9a0c3183480d150089c0d5a6e507c877f7d121 (patch)
treeb3db04cbe2cef23f81503177a50edc5360ffa486 /heat-client/src
parente153f0adfbed711ce1e215748594a4d04fd1edaf (diff)
Enhance Openstack Client
Update Openstack Client to support additional fields Updat all formatting issues Issue-ID: SO-1844 Change-Id: I1369e0c18cc25274db8df7e12855a020b8da38da Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
Diffstat (limited to 'heat-client/src')
-rw-r--r--heat-client/src/main/java/com/woorea/openstack/heat/Heat.java2
-rw-r--r--heat-client/src/main/java/com/woorea/openstack/heat/StackEvents.java30
-rw-r--r--heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java2
-rw-r--r--heat-client/src/test/java/com/woorea/openstack/heat/ResourcesResourceTest.java2
-rw-r--r--heat-client/src/test/java/com/woorea/openstack/heat/StackResourceTest.java3
5 files changed, 20 insertions, 19 deletions
diff --git a/heat-client/src/main/java/com/woorea/openstack/heat/Heat.java b/heat-client/src/main/java/com/woorea/openstack/heat/Heat.java
index e12f9f7..76991e1 100644
--- a/heat-client/src/main/java/com/woorea/openstack/heat/Heat.java
+++ b/heat-client/src/main/java/com/woorea/openstack/heat/Heat.java
@@ -47,7 +47,7 @@ public class Heat extends OpenStackClient {
public ResourcesResource getResources() {
return resources;
}
-
+
public StackEvents getEvents() {
return events;
}
diff --git a/heat-client/src/main/java/com/woorea/openstack/heat/StackEvents.java b/heat-client/src/main/java/com/woorea/openstack/heat/StackEvents.java
index ca54d73..cf680b9 100644
--- a/heat-client/src/main/java/com/woorea/openstack/heat/StackEvents.java
+++ b/heat-client/src/main/java/com/woorea/openstack/heat/StackEvents.java
@@ -25,22 +25,22 @@ import com.woorea.openstack.heat.model.Events;
* v1/{tenant_id}/stacks/{stack_name}/{stack_id}/events
*/
public class StackEvents {
- private final OpenStackClient client;
+ private final OpenStackClient client;
- public StackEvents(OpenStackClient client) {
- this.client = client;
- }
+ public StackEvents(OpenStackClient client) {
+ this.client = client;
+ }
- public ListEvents listEvents(String name, String id) {
- return new ListEvents(name, id);
- }
+ public ListEvents listEvents(String name, String id) {
+ return new ListEvents(name, id);
+ }
- /**
- * v1/​{tenant_id}​/stacks/​{stack_name}​/resources
- */
- public class ListEvents extends OpenStackRequest<Events> {
- public ListEvents(String name, String id) {
- super(client, HttpMethod.GET, "/stacks/" + name + "/" + id + "/events", null, Events.class);
- }
- }
+ /**
+ * v1/​{tenant_id}​/stacks/​{stack_name}​/resources
+ */
+ public class ListEvents extends OpenStackRequest<Events> {
+ public ListEvents(String name, String id) {
+ super(client, HttpMethod.GET, "/stacks/" + name + "/" + id + "/events", null, Events.class);
+ }
+ }
}
diff --git a/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java b/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java
index 9aff4cc..e0b1134 100644
--- a/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java
+++ b/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java
@@ -35,4 +35,4 @@ public class HeatTest {
heat.getResources();
}
-} \ No newline at end of file
+}
diff --git a/heat-client/src/test/java/com/woorea/openstack/heat/ResourcesResourceTest.java b/heat-client/src/test/java/com/woorea/openstack/heat/ResourcesResourceTest.java
index 380b016..7093c57 100644
--- a/heat-client/src/test/java/com/woorea/openstack/heat/ResourcesResourceTest.java
+++ b/heat-client/src/test/java/com/woorea/openstack/heat/ResourcesResourceTest.java
@@ -31,4 +31,4 @@ public class ResourcesResourceTest {
resourcesResource.listResources("resource");
}
-} \ No newline at end of file
+}
diff --git a/heat-client/src/test/java/com/woorea/openstack/heat/StackResourceTest.java b/heat-client/src/test/java/com/woorea/openstack/heat/StackResourceTest.java
index 8831c76..c280132 100644
--- a/heat-client/src/test/java/com/woorea/openstack/heat/StackResourceTest.java
+++ b/heat-client/src/test/java/com/woorea/openstack/heat/StackResourceTest.java
@@ -27,6 +27,7 @@ import org.junit.Test;
public class StackResourceTest {
StackResource stackResource = new StackResource(new OpenStackClient("os"));
+
@Test
public void create() throws Exception {
stackResource.create(new CreateStackParam());
@@ -52,4 +53,4 @@ public class StackResourceTest {
stackResource.deleteByName("test");
}
-} \ No newline at end of file
+}