summaryrefslogtreecommitdiffstats
path: root/nova-model/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'nova-model/src/test/java')
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZoneTest.java5
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZonesTest.java7
2 files changed, 5 insertions, 7 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZoneTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZoneTest.java
index a7adc13..930b40f 100644
--- a/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZoneTest.java
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZoneTest.java
@@ -32,8 +32,8 @@ public class AvailabilityZoneTest {
private static final String EOL = System.lineSeparator();
- private static final String JSON_FULL = "{" + EOL + "\"hosts\": null," + EOL + "\"zoneName\": \"zoneName1\"," + EOL
- + "\"zoneState\": {" + EOL + "\"available\": true" + EOL + "}" + EOL + "}";
+ private static final String JSON_FULL = "{" + EOL + "\"zoneName\": \"zoneName1\"," + EOL + "\"zoneState\": {" + EOL
+ + "\"available\": true" + EOL + "}" + EOL + "}";
private ObjectMapper objectMapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT)
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
@@ -55,6 +55,5 @@ public class AvailabilityZoneTest {
Assert.assertEquals("zoneName1", az.getName());
Assert.assertTrue(az.getState().isAvailable());
- Assert.assertNull(az.getHosts());
}
}
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZonesTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZonesTest.java
index cebc748..8b6a533 100644
--- a/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZonesTest.java
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/AvailabilityZonesTest.java
@@ -34,10 +34,9 @@ public class AvailabilityZonesTest {
private static final String EOL = System.lineSeparator();
private static final String JSON_FULL = "{" + EOL + "\"availabilityZoneInfo\": [" + EOL + "{" + EOL
- + "\"hosts\": null," + EOL + "\"zoneName\": \"zoneName1\"," + EOL + "\"zoneState\": {" + EOL
- + "\"available\": true" + EOL + "}" + EOL + "}," + EOL + "{" + EOL + "\"hosts\": null," + EOL
- + "\"zoneName\": \"zoneName2\"," + EOL + "\"zoneState\": {" + EOL + "\"available\": true" + EOL + "}" + EOL
- + "}" + EOL + "]" + EOL + "}";
+ + "\"zoneName\": \"zoneName1\"," + EOL + "\"zoneState\": {" + EOL + "\"available\": true" + EOL + "}" + EOL
+ + "}," + EOL + "{" + EOL + "\"zoneName\": \"zoneName2\"," + EOL + "\"zoneState\": {" + EOL
+ + "\"available\": true" + EOL + "}" + EOL + "}" + EOL + "]" + EOL + "}";
private ObjectMapper objectMapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT)
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)