Repository: jclouds-labs Updated Branches: refs/heads/master 4e3972023 -> 5742745e0
http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/predicate/server-inprocess.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/predicate/server-inprocess.json b/profitbricks-rest/src/test/resources/compute/predicate/server-inprocess.json new file mode 100644 index 0000000..a2da24a --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/predicate/server-inprocess.json @@ -0,0 +1,173 @@ +{ + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "BUSY" + }, + "properties": { + "name": "docker001", + "cores": 1, + "ram": 1024, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "items": [] + }, + "volumes": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "items": [ + { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + }, + { + "id": "5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "metadata": { + "createdDate": "2015-03-18T21:31:10Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Docker Registry Volume", + "type": "HDD", + "size": 50, + "image": null, + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 2 + } + } + ] + }, + "nics": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "items": [ + { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "metadata": { + "createdDate": "2015-02-09T22:46:38Z", + "createdBy": "[email protected]", + "etag": "b4854a82738079d2c7f43b5324bd92e3", + "lastModifiedDate": "2015-02-09T22:46:38Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:94:9e:f4:a9", + "ips": [ + "208.94.39.76" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "items": [] + } + } + } + ] + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/predicate/server.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/predicate/server.json b/profitbricks-rest/src/test/resources/compute/predicate/server.json new file mode 100644 index 0000000..84620e5 --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/predicate/server.json @@ -0,0 +1,173 @@ +{ + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "docker001", + "cores": 1, + "ram": 1024, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "items": [] + }, + "volumes": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "items": [ + { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + }, + { + "id": "5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "metadata": { + "createdDate": "2015-03-18T21:31:10Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Docker Registry Volume", + "type": "HDD", + "size": 50, + "image": null, + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 2 + } + } + ] + }, + "nics": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "items": [ + { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "metadata": { + "createdDate": "2015-02-09T22:46:38Z", + "createdBy": "[email protected]", + "etag": "b4854a82738079d2c7f43b5324bd92e3", + "lastModifiedDate": "2015-02-09T22:46:38Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:94:9e:f4:a9", + "ips": [ + "208.94.39.76" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "items": [] + } + } + } + ] + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/predicate/snapshot-inprocess.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/predicate/snapshot-inprocess.json b/profitbricks-rest/src/test/resources/compute/predicate/snapshot-inprocess.json new file mode 100644 index 0000000..a17fb43 --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/predicate/snapshot-inprocess.json @@ -0,0 +1,30 @@ +{ + "id": "615458b6-55cc-4907-a700-24b6bc1bf8ae", + "type": "snapshot", + "href": "https://api.profitbricks.com/rest/snapshots/615458b6-55cc-4907-a700-24b6bc1bf8ae", + "metadata": { + "createdDate": "2015-12-23T22:03:31Z", + "createdBy": "[email protected]", + "etag": "fbed4e509c2704919ac05f185377a95d", + "lastModifiedDate": "2015-12-23T22:03:31Z", + "lastModifiedBy": "[email protected]", + "state": "BUSY" + }, + "properties": { + "name": "snapshot desc...", + "description": "Created from \"apache-node\" in Data Center \"test-data-center\"", + "location": "us/lasdev", + "size": 3, + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/predicate/snapshot.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/predicate/snapshot.json b/profitbricks-rest/src/test/resources/compute/predicate/snapshot.json new file mode 100644 index 0000000..9af8d1e --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/predicate/snapshot.json @@ -0,0 +1,30 @@ +{ + "id": "615458b6-55cc-4907-a700-24b6bc1bf8ae", + "type": "snapshot", + "href": "https://api.profitbricks.com/rest/snapshots/615458b6-55cc-4907-a700-24b6bc1bf8ae", + "metadata": { + "createdDate": "2015-12-23T22:03:31Z", + "createdBy": "[email protected]", + "etag": "fbed4e509c2704919ac05f185377a95d", + "lastModifiedDate": "2015-12-23T22:03:31Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "snapshot desc...", + "description": "Created from \"apache-node\" in Data Center \"test-data-center\"", + "location": "us/lasdev", + "size": 3, + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/server.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/server.json b/profitbricks-rest/src/test/resources/compute/server.json new file mode 100644 index 0000000..3056b4a --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/server.json @@ -0,0 +1,140 @@ +{ + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "docker001", + "cores": 4, + "ram": 4096, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/mock/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 100, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "items": [] + }, + "volumes": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "items": [ + { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/mock/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 40, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + ] + }, + "nics": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "items": [ + { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "metadata": { + "createdDate": "2015-02-09T22:46:38Z", + "createdBy": "[email protected]", + "etag": "b4854a82738079d2c7f43b5324bd92e3", + "lastModifiedDate": "2015-02-09T22:46:38Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:94:9e:f4:a9", + "ips": [ + "173.252.120.6" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/mock/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "items": [] + } + } + } + ] + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/snapshot1.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/snapshot1.json b/profitbricks-rest/src/test/resources/compute/snapshot1.json new file mode 100644 index 0000000..6f25c6f --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/snapshot1.json @@ -0,0 +1,30 @@ +{ + "id": "615458b6-55cc-4907-a700-24b6bc1bf8ae", + "type": "snapshot", + "href": "https://api.profitbricks.com/rest/snapshots/615458b6-55cc-4907-a700-24b6bc1bf8ae", + "metadata": { + "createdDate": "2015-12-23T22:03:31Z", + "createdBy": "[email protected]", + "etag": "fbed4e509c2704919ac05f185377a95d", + "lastModifiedDate": "2015-12-23T22:03:31Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "placeholder-snapshot-04/13/2015", + "description": "Created from \"apache-node\" in Data Center \"test-data-center\"", + "location": "us/las", + "size": 3, + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/snapshot2.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/snapshot2.json b/profitbricks-rest/src/test/resources/compute/snapshot2.json new file mode 100644 index 0000000..c7ee29e --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/snapshot2.json @@ -0,0 +1,30 @@ +{ + "id": "d80bf9c0-ce6e-4283-9ea4-2906635f6137", + "type": "snapshot", + "href": "https://api.profitbricks.com/rest/snapshots/615458b6-55cc-4907-a700-24b6bc1bf8ae", + "metadata": { + "createdDate": "2015-12-23T22:03:31Z", + "createdBy": "[email protected]", + "etag": "fbed4e509c2704919ac05f185377a95d", + "lastModifiedDate": "2015-12-23T22:03:31Z", + "lastModifiedBy": "[email protected]", + "state": "BUSY" + }, + "properties": { + "name": "jclouds-ubuntu14.10-template", + "description": "Created from \"jclouds-ubuntu14.10 Storage\" in Data Center \"jclouds-computeservice\"", + "location": "us/las", + "size": 3, + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/compute/volume.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/compute/volume.json b/profitbricks-rest/src/test/resources/compute/volume.json new file mode 100644 index 0000000..c0be4a6 --- /dev/null +++ b/profitbricks-rest/src/test/resources/compute/volume.json @@ -0,0 +1,33 @@ +{ + "id": "5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "metadata": { + "createdDate": "2015-03-18T21:31:10Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "hdd-1", + "type": "HDD", + "size": 40, + "image": null, + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/ipblock/get.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/ipblock/get.json b/profitbricks-rest/src/test/resources/ipblock/get.json new file mode 100644 index 0000000..3765061 --- /dev/null +++ b/profitbricks-rest/src/test/resources/ipblock/get.json @@ -0,0 +1,19 @@ +{ + "id": "6c53515b-8557-44a8-9339-ea34e7e5baa2", + "type": "ipblock", + "href": "https://api.profitbricks.com/rest/v2/ipblocks/6c53515b-8557-44a8-9339-ea34e7e5baa2", + "metadata": { + "createdDate": "2016-06-18T21:38:20Z", + "createdBy": "[email protected]", + "etag": "1c9daa2e2f8238b530ea808bf71ad10d", + "lastModifiedDate": "2016-06-18T21:38:20Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "ips": ["158.222.103.141", "158.222.103.142"], + "location": "us/las", + "size": 2, + "name": "jclouds-block" + } +} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/ipblock/list.depth-5.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/ipblock/list.depth-5.json b/profitbricks-rest/src/test/resources/ipblock/list.depth-5.json new file mode 100644 index 0000000..c4cb2b7 --- /dev/null +++ b/profitbricks-rest/src/test/resources/ipblock/list.depth-5.json @@ -0,0 +1,42 @@ +{ + "id": "ipblocks", + "type": "collection", + "href": "https://api.profitbricks.com/rest/v2/ipblocks", + "items": [{ + "id": "6c53515b-8557-44a8-9339-ea34e7e5baa2", + "type": "ipblock", + "href": "https://api.profitbricks.com/rest/v2/ipblocks/6c53515b-8557-44a8-9339-ea34e7e5baa2", + "metadata": { + "createdDate": "2016-06-18T21:38:20Z", + "createdBy": "[email protected]", + "etag": "1c9daa2e2f8238b530ea808bf71ad10d", + "lastModifiedDate": "2016-06-18T21:38:20Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "ips": ["158.222.103.141", "158.222.103.142"], + "location": "us/las", + "size": 2, + "name": "jclouds-block" + } + }, { + "id": "b6f3be55-d7e1-4a62-835a-0c4a64dda433", + "type": "ipblock", + "href": "https://api.profitbricks.com/rest/v2/ipblocks/b6f3be55-d7e1-4a62-835a-0c4a64dda433", + "metadata": { + "createdDate": "2016-06-09T21:27:26Z", + "createdBy": "[email protected]", + "etag": "1e353f4f79dabd6c99cbc47a9d6afba6", + "lastModifiedDate": "2016-06-09T21:27:26Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "ips": ["158.222.103.138"], + "location": "us/las", + "size": 1, + "name": "IP_BLOCK_1465507646163" + } + }] +} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/5742745e/profitbricks-rest/src/test/resources/ipblock/list.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/ipblock/list.json b/profitbricks-rest/src/test/resources/ipblock/list.json new file mode 100644 index 0000000..f1478b1 --- /dev/null +++ b/profitbricks-rest/src/test/resources/ipblock/list.json @@ -0,0 +1,14 @@ +{ + "id": "ipblocks", + "type": "collection", + "href": "https://api.profitbricks.com/rest/v2/ipblocks", + "items": [{ + "id": "6c53515b-8557-44a8-9339-ea34e7e5baa2", + "type": "ipblock", + "href": "https://api.profitbricks.com/rest/v2/ipblocks/6c53515b-8557-44a8-9339-ea34e7e5baa2" + }, { + "id": "b6f3be55-d7e1-4a62-835a-0c4a64dda433", + "type": "ipblock", + "href": "https://api.profitbricks.com/rest/v2/ipblocks/b6f3be55-d7e1-4a62-835a-0c4a64dda433" + }] +} \ No newline at end of file
