diff options
author | 2020-04-03 16:38:20 -0400 | |
---|---|---|
committer | 2020-04-03 16:49:34 -0400 | |
commit | 492a7c0434170d29c2b45d81e0c96fc940b754d0 (patch) | |
tree | 3d065d90483055cc133295bcc87d610b73ad0c2f /nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java | |
parent | d313b58558c9c6d30ea66132b16949b7f7063cc3 (diff) |
version should not be a string
Issue-ID: SO-2786
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Id4065c5138a93abf3ffcb4c744e784d6b683fe5e
Diffstat (limited to 'nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java')
-rw-r--r-- | nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java index 62212ee..87789ff 100644 --- a/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java +++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java @@ -39,16 +39,15 @@ public class ServerTest { private static final String JSON_FULL = "{" + EOL + " \"server\" : {" + EOL + " \"id\" : \"id\"," + EOL + " \"name\" : \"name\"," + EOL + " \"addresses\" : {" + EOL + " \"addresses-k1\" : [ {" + EOL - + " \"version\" : \"version\"," + EOL + " \"addr\" : \"addr\"," + EOL + + " \"version\" : 4," + EOL + " \"addr\" : \"addr\"," + EOL + " \"OS-EXT-IPS-MAC:mac_addr\" : \"macaddr\"," + EOL + " \"OS-EXT-IPS:type\" : \"type\"" - + EOL + " }, {" + EOL + " \"version\" : \"version\"," + EOL - + " \"addr\" : \"addr\"," + EOL + " \"OS-EXT-IPS-MAC:mac_addr\" : \"macaddr\"," + EOL - + " \"OS-EXT-IPS:type\" : \"type\"" + EOL + " } ]," + EOL + " \"addresses-k2\" : [ {" - + EOL + " \"version\" : \"version\"," + EOL + " \"addr\" : \"addr\"," + EOL + + EOL + " }, {" + EOL + " \"version\" : 4," + EOL + " \"addr\" : \"addr\"," + EOL + " \"OS-EXT-IPS-MAC:mac_addr\" : \"macaddr\"," + EOL + " \"OS-EXT-IPS:type\" : \"type\"" - + EOL + " }, {" + EOL + " \"version\" : \"version\"," + EOL + + EOL + " } ]," + EOL + " \"addresses-k2\" : [ {" + EOL + " \"version\" : 4," + EOL + " \"addr\" : \"addr\"," + EOL + " \"OS-EXT-IPS-MAC:mac_addr\" : \"macaddr\"," + EOL - + " \"OS-EXT-IPS:type\" : \"type\"" + EOL + " } ]" + EOL + " }," + EOL + + " \"OS-EXT-IPS:type\" : \"type\"" + EOL + " }, {" + EOL + " \"version\" : 4," + + EOL + " \"addr\" : \"addr\"," + EOL + " \"OS-EXT-IPS-MAC:mac_addr\" : \"macaddr\"," + + EOL + " \"OS-EXT-IPS:type\" : \"type\"" + EOL + " } ]" + EOL + " }," + EOL + " \"links\" : [ {" + EOL + " \"rel\" : \"rel\"," + EOL + " \"href\" : \"href\"," + EOL + " \"type\" : \"type\"" + EOL + " }, {" + EOL + " \"rel\" : \"rel\"," + EOL + " \"href\" : \"href\"," + EOL + " \"type\" : \"type\"" + EOL + " } ]," + EOL @@ -155,7 +154,7 @@ public class ServerTest { List<Address> address = addresses.get("addresses-k1"); Assert.assertEquals(2, address.size()); - Assert.assertEquals("version", address.get(0).getVersion()); + Assert.assertEquals(4, address.get(0).getVersion()); Map<String, String> metadata = server.getMetadata(); Assert.assertNotNull(metadata); |