libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [4/9] libcloud git commit: [LIBCLOUD-873] Updated ProfitBricks Compute Driver (REST api v3)
Date Mon, 14 Nov 2016 04:18:04 GMT
http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/attach_volume.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/attach_volume.json b/libcloud/test/compute/fixtures/profitbricks/attach_volume.json
new file mode 100644
index 0000000..eda9a22
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/attach_volume.json
@@ -0,0 +1,34 @@
+{
+    "id" : "vol-2",
+    "type" : "volume",
+    "href" : "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+    "metadata" : {
+        "createdDate" : "2016-10-17T13:13:36Z",
+        "createdBy" : "test@test.te",
+        "etag" : "c1800ce349033f9cd2c095ea1ea4976a",
+        "lastModifiedDate" : "2016-10-17T13:47:52Z",
+        "lastModifiedBy" : "test@test.te",
+        "state" : "BUSY"
+    },
+    "properties" : {
+        "name" : "Updated storage name",
+        "type" : "HDD",
+        "size" : 40,
+        "image" : "bvol-img",
+        "imagePassword" : null,
+        "sshKeys": 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" : 3
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/attach_volume.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/attach_volume.xml b/libcloud/test/compute/fixtures/profitbricks/attach_volume.xml
deleted file mode 100644
index 8b2b1f5..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/attach_volume.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:connectStorageToServerResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3613039</requestId>
-            <dataCenterId>c2df1871-6aac-458e-ad1a-ef3f530cb7aa</dataCenterId>
-            <dataCenterVersion>4</dataCenterVersion>
-         </return>
-      </ns2:connectStorageToServerResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/create_node.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/create_node.json b/libcloud/test/compute/fixtures/profitbricks/create_node.json
new file mode 100644
index 0000000..b732980
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/create_node.json
@@ -0,0 +1,37 @@
+{
+    "id": "srv-2",
+    "type": "server",
+    "href": "cloudapi/v3/datacenters/f3f7ca3c-6f3d-4a4d-b3d6-15853ae5ba78/servers/srv-2",
+    "metadata": {
+        "createdDate": "2016-10-19T13:25:19Z",
+        "createdBy": "test@test.te",
+        "etag": "9bea2412ac556b402a07260fc0d1603f",
+        "lastModifiedDate": "2016-10-19T13:25:19Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Test",
+        "cores": 1,
+        "ram": 512,
+        "availabilityZone": "ZONE_1",
+        "vmState": null,
+        "bootCdrom": null,
+        "bootVolume": null,
+        "cpuFamily": "INTEL_XEON"
+    },
+    "entities": {
+        "volumes": {
+            "id": "srv-2/volumes",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/f3f7ca3c-6f3d-4a4d-b3d6-15853ae5ba78/servers/srv-2/volumes",
+            "items": [
+                {
+                    "id": "53abb4de-b37b-4025-b139-3e09141e20bb",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/srv-2/volumes/53abb4de-b37b-4025-b139-3e09141e20bb"
+                }
+            ]
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/create_node.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/create_node.xml b/libcloud/test/compute/fixtures/profitbricks/create_node.xml
deleted file mode 100644
index ad515ba..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/create_node.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:createServerReturn xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3768523</requestId>
-            <dataCenterId>3aefc31b-57e9-4af6-8348-af961ac00f74</dataCenterId>
-            <dataCenterVersion>3</dataCenterVersion>
-            <serverId>7b18b85f-cc93-4c2d-abcc-5ce732d35750</serverId>
-         </return>
-      </ns2:createServerReturn>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/create_volume.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/create_volume.json b/libcloud/test/compute/fixtures/profitbricks/create_volume.json
new file mode 100644
index 0000000..59720d9
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/create_volume.json
@@ -0,0 +1,35 @@
+{
+    "id" : "vol-2",
+    "type" : "volume",
+    "href" : "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+    "metadata" : {
+        "createdDate" : "2016-10-17T13:13:36Z",
+        "createdBy" : "test@test.te",
+        "etag" : "c1800ce349033f9cd2c095ea1ea4976a",
+        "lastModifiedDate" : "2016-10-17T13:47:52Z",
+        "lastModifiedBy" : "test@test.te",
+        "state" : "BUSY"
+    },
+    "properties" : {
+        "name": "Updated storage name",
+        "type": "HDD",
+        "size": 40,
+        "availabilityZone": "AUTO",
+        "image": "bvol-img",
+        "imagePassword": null,
+        "sshKeys": 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": 3
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/create_volume.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/create_volume.xml b/libcloud/test/compute/fixtures/profitbricks/create_volume.xml
deleted file mode 100644
index 326879a..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/create_volume.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:createStorageReturn xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3532463</requestId>
-            <dataCenterId>06eac419-c2b3-4761-aeb9-10efdd2cf292</dataCenterId>
-            <dataCenterVersion>3</dataCenterVersion>
-            <storageId>f54aeea3-667a-4460-8cf0-80909509df0c</storageId>
-         </return>
-      </ns2:createStorageReturn>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/create_volume_snapshot.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/create_volume_snapshot.json b/libcloud/test/compute/fixtures/profitbricks/create_volume_snapshot.json
new file mode 100644
index 0000000..a90f585
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/create_volume_snapshot.json
@@ -0,0 +1,30 @@
+{
+    "id": "sshot",
+    "type": "snapshot",
+    "href": "/cloudapi/v3/snapshots/sshot",
+    "metadata": {
+        "createdDate": "2016-10-26T11:38:45Z",
+        "createdBy": "test@test.te",
+        "etag": "01873262ac042b5f44ed33b4241225b4",
+        "lastModifiedDate": "2016-10-26T11:38:45Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Test Created Snapshot",
+        "description": "Test Created Snapshot",
+        "location": "us/las",
+        "size": 10,
+        "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/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/destroy_node.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/destroy_node.xml b/libcloud/test/compute/fixtures/profitbricks/destroy_node.xml
deleted file mode 100644
index 1dacfaf..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/destroy_node.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:deleteServerResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3498434</requestId>
-            <dataCenterId>782247bf-f12d-4f08-8050-302c02c4b2e0</dataCenterId>
-            <dataCenterVersion>2</dataCenterVersion>
-         </return>
-      </ns2:deleteServerResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/destroy_volume.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/destroy_volume.xml b/libcloud/test/compute/fixtures/profitbricks/destroy_volume.xml
deleted file mode 100644
index 0591e1c..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/destroy_volume.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:deleteStorageResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3616447</requestId>
-            <dataCenterId>c2df1871-6aac-458e-ad1a-ef3f530cb7aa</dataCenterId>
-            <dataCenterVersion>13</dataCenterVersion>
-         </return>
-      </ns2:deleteStorageResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/detach_volume.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/detach_volume.xml b/libcloud/test/compute/fixtures/profitbricks/detach_volume.xml
deleted file mode 100644
index fafc327..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/detach_volume.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:disconnectStorageFromServerResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3614242</requestId>
-            <dataCenterId>c2df1871-6aac-458e-ad1a-ef3f530cb7aa</dataCenterId>
-            <dataCenterVersion>6</dataCenterVersion>
-         </return>
-      </ns2:disconnectStorageFromServerResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_clear_datacenter.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_clear_datacenter.xml b/libcloud/test/compute/fixtures/profitbricks/ex_clear_datacenter.xml
deleted file mode 100644
index 5259d45..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_clear_datacenter.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:clearDataCenterResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3339052</requestId>
-            <dataCenterId>8669a69f-2274-4520-b51e-dbdf3986a476</dataCenterId>
-            <dataCenterVersion>2</dataCenterVersion>
-         </return>
-      </ns2:clearDataCenterResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.json
new file mode 100644
index 0000000..3f42689
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.json
@@ -0,0 +1,20 @@
+{
+    "id": "dc-1",
+    "type": "datacenter",
+    "href": "/cloudapi/v3/datacenters/dc-1",
+    "metadata": {
+        "createdDate": "2016-10-18T17:20:56Z",
+        "createdBy": "test@test.te",
+        "etag": "c2d3d4d9bbdc0fff7d3c5c3864a68a46",
+        "lastModifiedDate": "2016-10-18T17:20:56Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Test Data Center",
+        "description": "Test Data Center.",
+        "location": "us/las",
+        "version": null,
+        "features": []
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.xml b/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.xml
deleted file mode 100644
index f4238d8..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_create_datacenter.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:createDataCenterResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3711001</requestId>
-            <dataCenterId>0c793dd1-d4cd-4141-86f3-8b1a24b2d604</dataCenterId>
-            <dataCenterVersion>1</dataCenterVersion>
-            <location>us/las</location>
-         </return>
-      </ns2:createDataCenterResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_firewall_rule.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_firewall_rule.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_firewall_rule.json
new file mode 100644
index 0000000..a5f4210
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_firewall_rule.json
@@ -0,0 +1,24 @@
+{
+    "id": "fwr-1",
+    "type": "firewall-rule",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fwr-1",
+    "metadata": {
+        "createdDate": "2016-10-19T11:08:04Z",
+        "createdBy": "test@test.te",
+        "etag": "2a21551ba4adf85d9fb04b05a6938bcc",
+        "lastModifiedDate": "2016-10-19T11:08:04Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Test created firewall rule",
+        "protocol": "TCP",
+        "sourceMac": null,
+        "sourceIp": null,
+        "targetIp": null,
+        "icmpCode": null,
+        "icmpType": null,
+        "portRangeStart": 80,
+        "portRangeEnd": 80
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_ip_block.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_ip_block.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_ip_block.json
new file mode 100644
index 0000000..56b0544
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_ip_block.json
@@ -0,0 +1,22 @@
+{
+    "id": "ipb-1",
+    "type": "ipblock",
+    "href": "/cloudapi/v3/ipblocks/ipb-1",
+    "metadata": {
+        "createdDate": "2016-10-26T15:05:36Z",
+        "createdBy": "test@test.te",
+        "etag": "acbf00bacf7ee48d4b8bc4e7413e1f30",
+        "lastModifiedDate": "2016-10-26T15:05:36Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "ips": [
+            "11.12.13.14",
+            "15.16.17.18"
+        ],
+        "location": "de/fkb",
+        "size": 2,
+        "name": "Test Created IP Block"
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_lan.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_lan.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_lan.json
new file mode 100644
index 0000000..0e2b9cc
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_lan.json
@@ -0,0 +1,17 @@
+{
+    "id" : "10",
+    "type" : "lan",
+    "href" : "/cloudapi/v3/datacenters/dc-1/lans/10",
+    "metadata" : {
+        "createdDate": "2016-10-17T11:33:11Z",
+        "createdBy": "test@test.te",
+        "etag": "53b215b8ec0356a649955dab019845a4",
+        "lastModifiedDate": "2016-10-18T15:13:44Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties" : {
+        "name" : "Test Created Lan",
+        "public" : true
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_load_balancer.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_load_balancer.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_load_balancer.json
new file mode 100644
index 0000000..67af86b
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_load_balancer.json
@@ -0,0 +1,18 @@
+{
+    "id": "bal-1",
+    "type": "loadbalancer",
+    "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers/bal-1",
+    "metadata": {
+        "createdDate": "2016-10-26T13:02:33Z",
+        "createdBy": "test@test.te",
+        "etag": "71e8df57a58615b9e15400ede4138b41",
+        "lastModifiedDate": "2016-10-26T13:02:33Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Test load balancer",
+        "ip": null,
+        "dhcp": true
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.json b/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.json
new file mode 100644
index 0000000..5e45994
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.json
@@ -0,0 +1,22 @@
+{
+    "id": "nic-2",
+    "type": "nic",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics/nic-2",
+    "metadata": {
+        "createdDate": "2016-10-19T08:18:50Z",
+        "createdBy": "test@test.te",
+        "etag": "8679142b0b1b70c8b8c09a8b31e6ded9",
+        "lastModifiedDate": "2016-10-19T08:18:50Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties": {
+        "name": "Creating a test network interface.",
+        "mac": null,
+        "ips": [],
+        "dhcp": true,
+        "lan": 1,
+        "firewallActive": null,
+        "nat": null
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.xml b/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.xml
deleted file mode 100644
index 830d41d..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_create_network_interface.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:createNicReturn xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3633314</requestId>
-            <dataCenterId>c2df1871-6aac-458e-ad1a-ef3f530cb7aa</dataCenterId>
-            <dataCenterVersion>27</dataCenterVersion>
-            <nicId>951e1b49-5f1b-4b2b-b7d9-263dba6e2ddd</nicId>
-         </return>
-      </ns2:createNicReturn>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.json
new file mode 100644
index 0000000..4f20e63
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.json
@@ -0,0 +1,401 @@
+{
+    "id": "dc-1",
+    "type": "datacenter",
+    "href": "/cloudapi/v3/datacenters/dc-1",
+    "metadata": {
+        "createdDate": "2016-10-17T11:33:11Z",
+        "createdBy": "test@test.test",
+        "etag": "53b215b8ec0356a649955dab019845a4",
+        "lastModifiedDate": "2016-10-18T15:13:44Z",
+        "lastModifiedBy": "test@test.test",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "Test Data Center",
+        "description": "This is a test data center.",
+        "location": "de/fkb",
+        "version": 35,
+        "features": [
+            "SSD",
+            "MULTIPLE_CPU"
+        ]
+    },
+    "entities": {
+        "servers": {
+            "id": "dc-1/servers",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers",
+            "items": [
+                {
+                    "id": "srv-1",
+                    "type": "server",
+                    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1",
+                    "metadata": {
+                        "createdDate": "2016-10-18T07:28:05Z",
+                        "createdBy": "test@test.test",
+                        "etag": "53b215b8ec0356a649955dab019845a4",
+                        "lastModifiedDate": "2016-10-18T15:13:44Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Made with a stray volume and included size.",
+                        "cores": 2,
+                        "ram": 4096,
+                        "availabilityZone": "AUTO",
+                        "vmState": "RUNNING",
+                        "bootCdrom": null,
+                        "bootVolume": {
+                            "id": "bvol-1",
+                            "type": "volume",
+                            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+                            "metadata": {
+                                "createdDate": "2016-10-18T07:20:41Z",
+                                "createdBy": "test@test.test",
+                                "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                                "lastModifiedDate": "2016-10-18T07:20:41Z",
+                                "lastModifiedBy": "test@test.test",
+                                "state": "AVAILABLE"
+                            },
+                            "properties": {
+                                "name": "Bootable and linkable",
+                                "type": "HDD",
+                                "size": 10,
+                                "image": "bvol-img",
+                                "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
+                            }
+                        },
+                        "cpuFamily": "AMD_OPTERON"
+                    },
+                    "entities": {
+                        "cdroms": {
+                            "id": "srv-1/cdroms",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms",
+                            "items": []
+                        },
+                        "volumes": {
+                            "id": "srv-1/volumes",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/volumes",
+                            "items": [
+                                {
+                                    "id": "d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+                                    "type": "volume",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/d6688ced-700d-4c9c-a3a7-9f7170c5edc3"
+                                },
+                                {
+                                    "id": "vol-2",
+                                    "type": "volume",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/vol-2"
+                                },
+                                {
+                                    "id": "bvol-1",
+                                    "type": "volume",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1"
+                                }
+                            ]
+                        },
+                        "nics": {
+                            "id": "srv-1/nics",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics",
+                            "items": []
+                        }
+                    }
+                },
+                {
+                    "id": "s-3",
+                    "type": "server",
+                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3",
+                    "metadata": {
+                        "createdDate": "2016-10-17T11:33:20Z",
+                        "createdBy": "test@test.test",
+                        "etag": "f6c94daafaf8ef852e2dc4b82a903c7b",
+                        "lastModifiedDate": "2016-10-17T16:13:43Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Updated this node",
+                        "cores": 3,
+                        "ram": 3072,
+                        "availabilityZone": "AUTO",
+                        "vmState": "RUNNING",
+                        "bootCdrom": null,
+                        "bootVolume": {
+                            "id": "21d7e7de-5054-4041-b691-717aa8b3c799",
+                            "type": "volume",
+                            "href": "/cloudapi/v3/datacenters/dc-1/volumes/21d7e7de-5054-4041-b691-717aa8b3c799",
+                            "metadata": {
+                                "createdDate": "2016-10-17T11:33:20Z",
+                                "createdBy": "test@test.test",
+                                "etag": "a9d0b923527efae5e7071e9118e9eece",
+                                "lastModifiedDate": "2016-10-17T11:33:20Z",
+                                "lastModifiedBy": "test@test.test",
+                                "state": "AVAILABLE"
+                            },
+                            "properties": {
+                                "name": "Image and location and size. - volume",
+                                "type": "HDD",
+                                "size": 50,
+                                "image": "bvol-img",
+                                "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
+                            }
+                        },
+                        "cpuFamily": "INTEL_XEON"
+                    },
+                    "entities": {
+                        "cdroms": {
+                            "id": "s-3/cdroms",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/cdroms",
+                            "items": []
+                        },
+                        "volumes": {
+                            "id": "s-3/volumes",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/volumes",
+                            "items": [
+                                {
+                                    "id": "21d7e7de-5054-4041-b691-717aa8b3c799",
+                                    "type": "volume",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/21d7e7de-5054-4041-b691-717aa8b3c799"
+                                }
+                            ]
+                        },
+                        "nics": {
+                            "id": "s-3/nics",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics",
+                            "items": [
+                                {
+                                    "id": "nic-1",
+                                    "type": "nic",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1"
+                                }
+                            ]
+                        }
+                    }
+                }
+            ]
+        },
+        "volumes": {
+            "id": "dc-1/volumes",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/volumes",
+            "items": [
+                {
+                    "id": "vol-2",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+                    "metadata": {
+                        "createdDate": "2016-10-18T15:13:44Z",
+                        "createdBy": "test@test.test",
+                        "etag": "a96f7781920c2890c25f967e66e6ee91",
+                        "lastModifiedDate": "2016-10-18T15:13:44Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Unnamed HDD Storage",
+                        "type": "HDD",
+                        "size": 10,
+                        "availabilityZone": "AUTO",
+                        "image": null,
+                        "imagePassword": null,
+                        "sshKeys": null,
+                        "bus": "VIRTIO",
+                        "licenceType": null,
+                        "cpuHotPlug": false,
+                        "cpuHotUnplug": false,
+                        "ramHotPlug": false,
+                        "ramHotUnplug": false,
+                        "nicHotPlug": false,
+                        "nicHotUnplug": false,
+                        "discVirtioHotPlug": false,
+                        "discVirtioHotUnplug": false,
+                        "discScsiHotPlug": false,
+                        "discScsiHotUnplug": false,
+                        "deviceNumber": 2
+                    }
+                },
+                {
+                    "id": "bvol-1",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+                    "metadata": {
+                        "createdDate": "2016-10-18T07:20:41Z",
+                        "createdBy": "test@test.test",
+                        "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                        "lastModifiedDate": "2016-10-18T07:20:41Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Bootable and linkable",
+                        "type": "HDD",
+                        "size": 10,
+                        "availabilityZone": "AUTO",
+                        "image": "bvol-img",
+                        "imagePassword": null,
+                        "sshKeys": 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": "d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+                    "metadata": {
+                        "createdDate": "2016-10-17T13:13:36Z",
+                        "createdBy": "test@test.test",
+                        "etag": "c1800ce349033f9cd2c095ea1ea4976a",
+                        "lastModifiedDate": "2016-10-17T13:47:52Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Updated storage name",
+                        "type": "HDD",
+                        "size": 40,
+                        "availabilityZone": "AUTO",
+                        "image": "bvol-img",
+                        "imagePassword": null,
+                        "sshKeys": 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": 3
+                    }
+                },
+                {
+                    "id": "21d7e7de-5054-4041-b691-717aa8b3c799",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/21d7e7de-5054-4041-b691-717aa8b3c799",
+                    "metadata": {
+                        "createdDate": "2016-10-17T11:33:20Z",
+                        "createdBy": "test@test.test",
+                        "etag": "a9d0b923527efae5e7071e9118e9eece",
+                        "lastModifiedDate": "2016-10-17T11:33:20Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Image and location and size. - volume",
+                        "type": "HDD",
+                        "size": 50,
+                        "availabilityZone": "AUTO",
+                        "image": "bvol-img",
+                        "imagePassword": null,
+                        "sshKeys": 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
+                    }
+                }
+            ]
+        },
+        "loadbalancers": {
+            "id": "dc-1/loadbalancers",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers",
+            "items": []
+        },
+        "lans": {
+            "id": "dc-1/lans",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/lans",
+            "items": [
+                {
+                    "id": "2",
+                    "type": "lan",
+                    "href": "/cloudapi/v3/datacenters/dc-1/lans/2",
+                    "metadata": {
+                        "createdDate": "2016-10-17T18:19:43Z",
+                        "createdBy": "test@test.test",
+                        "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                        "lastModifiedDate": "2016-10-18T07:20:41Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "Switch for LAN 2",
+                        "public": false
+                    },
+                    "entities": {
+                        "nics": {
+                            "id": "2/nics",
+                            "type": "collection",
+                            "href": "/cloudapi/v3/datacenters/dc-1/lans/2/nics",
+                            "items": [
+                                {
+                                    "id": "nic-1",
+                                    "type": "nic",
+                                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1"
+                                }
+                            ]
+                        }
+                    }
+                }
+            ]
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.xml b/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.xml
deleted file mode 100644
index cb4a1a0..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_describe_datacenter.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:getDataCenterResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3719240</requestId>
-            <dataCenterId>a3e6f83a-8982-4d6a-aebc-60baf5755ede</dataCenterId>
-            <dataCenterVersion>1</dataCenterVersion>
-            <dataCenterName>StackPointCloud</dataCenterName>
-            <provisioningState>AVAILABLE</provisioningState>
-            <location>us/las</location>
-         </return>
-      </ns2:getDataCenterResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_firewall_rule.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_firewall_rule.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_firewall_rule.json
new file mode 100644
index 0000000..523245d
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_firewall_rule.json
@@ -0,0 +1,24 @@
+{
+    "id": "fw2",
+    "type": "firewall-rule",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fw2",
+    "metadata": {
+        "createdDate": "2016-10-19T09:55:10Z",
+        "createdBy": "test@test.te",
+        "etag": "00bb5b86562db1ed19ca38697e485160",
+        "lastModifiedDate": "2016-10-19T09:55:10Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "HTTPs (SSL)",
+        "protocol": "TCP",
+        "sourceMac": null,
+        "sourceIp": null,
+        "targetIp": null,
+        "icmpCode": null,
+        "icmpType": null,
+        "portRangeStart": 443,
+        "portRangeEnd": 443
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_image.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_image.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_image.json
new file mode 100644
index 0000000..a6977ac
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_image.json
@@ -0,0 +1,32 @@
+{
+    "id": "img-2",
+    "type": "image",
+    "href": "/cloudapi/v3/images/img-2",
+    "metadata": {
+        "createdDate": "2015-10-09T12:06:34Z",
+        "createdBy": "test@test.te",
+        "etag": "bbf76112358af2fc5dd1bf21de8988db",
+        "lastModifiedDate": "2015-11-11T15:23:20Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "vivid-server-cloudimg-amd64-disk1.img",
+        "description": null,
+        "location": "de/fkb",
+        "size": 2,
+        "cpuHotPlug": false,
+        "cpuHotUnplug": false,
+        "ramHotPlug": false,
+        "ramHotUnplug": false,
+        "nicHotPlug": false,
+        "nicHotUnplug": false,
+        "discVirtioHotPlug": false,
+        "discVirtioHotUnplug": false,
+        "discScsiHotPlug": false,
+        "discScsiHotUnplug": false,
+        "licenceType": "UNKNOWN",
+        "imageType": "HDD",
+        "public": false
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_ip_block.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_ip_block.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_ip_block.json
new file mode 100644
index 0000000..63f59e5
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_ip_block.json
@@ -0,0 +1,21 @@
+{
+    "id": "ipb-2",
+    "type": "ipblock",
+    "href": "/cloudapi/v3/ipblocks/ipb-2",
+    "metadata": {
+        "createdDate": "2016-10-26T15:05:12Z",
+        "createdBy": "test@test.te",
+        "etag": "43e05b766899950bc8a5aeee0fd89b05",
+        "lastModifiedDate": "2016-10-26T15:05:12Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "ips": [
+            "78.137.101.250"
+        ],
+        "location": "de/fkb",
+        "size": 1,
+        "name": "Test IP Block One"
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_lan.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_lan.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_lan.json
new file mode 100644
index 0000000..459a74e
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_lan.json
@@ -0,0 +1,24 @@
+{
+    "id" : "10",
+    "type" : "lan",
+    "href" : "/cloudapi/v3/datacenters/dc-1/lans/10",
+    "metadata" : {
+        "createdDate": "2016-10-17T11:33:11Z",
+        "createdBy": "test@test.te",
+        "etag": "53b215b8ec0356a649955dab019845a4",
+        "lastModifiedDate": "2016-10-18T15:13:44Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "BUSY"
+    },
+    "properties" : {
+        "name" : "Test Created Lan",
+        "public" : true
+    },
+    "entities": {
+        "nics": {
+            "id": "10/nics",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/lans/10/nics"
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_load_balancer.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_load_balancer.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_load_balancer.json
new file mode 100644
index 0000000..bb26434
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_load_balancer.json
@@ -0,0 +1,25 @@
+{
+    "id": "bal-1",
+    "type": "loadbalancer",
+    "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/bal-1",
+    "metadata": {
+        "createdDate": "2016-10-26T13:02:33Z",
+        "createdBy": "test@test.te",
+        "etag": "71e8df57a58615b9e15400ede4138b41",
+        "lastModifiedDate": "2016-10-26T13:02:33Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "Test One",
+        "ip": "111.112.113.114",
+        "dhcp": true
+    },
+    "entities": {
+        "balancednics": {
+            "id": "bal-1/balancednics",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/bal-1/balancednics"
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_location.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_location.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_location.json
new file mode 100644
index 0000000..6cd6628
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_location.json
@@ -0,0 +1,12 @@
+{
+    "id": "de/fkb",
+    "type": "location",
+    "href": "/cloudapi/v3/locations/de/fkb",
+    "properties": {
+        "name": "karlsruhe",
+        "features": [
+            "SSD",
+            "MULTIPLE_CPU"
+        ]
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.json
new file mode 100644
index 0000000..dedecce
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.json
@@ -0,0 +1,31 @@
+{
+    "id": "nic-2",
+    "type": "nic",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2",
+    "metadata": {
+        "createdDate": "2016-10-17T15:46:38Z",
+        "createdBy": "test@test.te",
+        "etag": "dbd8216137cf0ec9951170f93fa8fa53",
+        "lastModifiedDate": "2016-10-17T18:19:43Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "Updated from LibCloud",
+        "mac": "02:01:0b:9d:4d:ce",
+        "ips": [
+            "10.15.124.11"
+        ],
+        "dhcp": false,
+        "lan": 2,
+        "firewallActive": true,
+        "nat": false
+    },
+    "entities": {
+        "firewallrules": {
+            "id": "nic-1/firewallrules",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules"
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.xml b/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.xml
deleted file mode 100644
index e2235b9..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_describe_network_interface.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:getNicResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3707226</requestId>
-            <dataCenterId>a3a2e730-0dc3-47e6-bac6-4c056d5e2aee</dataCenterId>
-            <dataCenterVersion>6</dataCenterVersion>
-            <nicId>f1c7a244-2fa6-44ee-8fb6-871f337683a3</nicId>
-            <lanId>1</lanId>
-            <internetAccess>false</internetAccess>
-            <serverId>c09f4f31-336c-4ad2-9ec7-591778513408</serverId>
-            <ips>10.10.38.12</ips>
-            <macAddress>02:01:96:d7:60:e0</macAddress>
-            <firewall>
-               <active>false</active>
-               <firewallId>01490a19-2b20-43cc-86a4-ff0b0460f076</firewallId>
-               <nicId>f1c7a244-2fa6-44ee-8fb6-871f337683a3</nicId>
-               <provisioningState>AVAILABLE</provisioningState>
-            </firewall>
-            <dhcpActive>true</dhcpActive>
-            <provisioningState>AVAILABLE</provisioningState>
-         </return>
-      </ns2:getNicResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.json
new file mode 100644
index 0000000..476a4b9
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.json
@@ -0,0 +1,111 @@
+{
+    "id": "srv-1",
+    "type": "server",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1",
+    "metadata": {
+        "createdDate": "2016-10-18T07:28:05Z",
+        "createdBy": "test@test.test",
+        "etag": "e7cf186125f51f3d9511754a40dcd12c",
+        "lastModifiedDate": "2016-10-18T07:28:05Z",
+        "lastModifiedBy": "test@test.test",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "A test node",
+        "cores": 2,
+        "ram": 4096,
+        "availabilityZone": "AUTO",
+        "vmState": "RUNNING",
+        "bootCdrom": null,
+        "bootVolume": {
+            "id": "bvol-1",
+            "type": "volume",
+            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+            "metadata": {
+                "createdDate": "2016-10-18T07:20:41Z",
+                "createdBy": "test@test.test",
+                "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                "lastModifiedDate": "2016-10-18T07:20:41Z",
+                "lastModifiedBy": "test@test.test",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "A test node boot volume",
+                "type": "HDD",
+                "size": 10,
+                "image": "bvol-img",
+                "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
+            }
+        },
+        "cpuFamily": "AMD_OPTERON"
+    },
+    "entities": {
+        "cdroms": {
+            "id": "srv-1/cdroms",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms",
+            "items": []
+        },
+        "volumes": {
+            "id": "srv-1/volumes",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/volumes",
+            "items": [
+                {
+                    "id": "bvol-1",
+                    "type": "volume",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+                    "metadata": {
+                        "createdDate": "2016-10-18T07:20:41Z",
+                        "createdBy": "test@test.test",
+                        "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                        "lastModifiedDate": "2016-10-18T07:20:41Z",
+                        "lastModifiedBy": "test@test.test",
+                        "state": "AVAILABLE"
+                    },
+                    "properties": {
+                        "name": "A test node volume",
+                        "type": "HDD",
+                        "size": 10,
+                        "availabilityZone": "AUTO",
+                        "image": "bvol-img",
+                        "imagePassword": null,
+                        "sshKeys": 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": "srv-1/nics",
+            "type": "collection",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics",
+            "items": []
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.xml b/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.xml
deleted file mode 100644
index 5567e8f..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_describe_node.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:getServerResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3706813</requestId>
-            <dataCenterId>a3a2e730-0dc3-47e6-bac6-4c056d5e2aee</dataCenterId>
-            <dataCenterVersion>6</dataCenterVersion>
-            <serverId>c09f4f31-336c-4ad2-9ec7-591778513408</serverId>
-            <serverName>server001</serverName>
-            <cores>1</cores>
-            <ram>1024</ram>
-            <internetAccess>true</internetAccess>
-            <ips>10.10.38.12</ips>
-            <ips>162.254.26.14</ips>
-            <connectedStorages>
-               <bootDevice>true</bootDevice>
-               <busType>VIRTIO</busType>
-               <deviceNumber>1</deviceNumber>
-               <size>50</size>
-               <storageId>addb19d8-e664-43c1-bd2d-ad9210edc610</storageId>
-               <storageName>storage001</storageName>
-            </connectedStorages>
-            <nics>
-               <dataCenterId>a3a2e730-0dc3-47e6-bac6-4c056d5e2aee</dataCenterId>
-               <dataCenterVersion>6</dataCenterVersion>
-               <nicId>f1c7a244-2fa6-44ee-8fb6-871f337683a3</nicId>
-               <lanId>1</lanId>
-               <internetAccess>false</internetAccess>
-               <serverId>c09f4f31-336c-4ad2-9ec7-591778513408</serverId>
-               <ips>10.10.38.12</ips>
-               <macAddress>02:01:96:d7:60:e0</macAddress>
-               <firewall>
-                  <active>false</active>
-                  <firewallId>01490a19-2b20-43cc-86a4-ff0b0460f076</firewallId>
-                  <nicId>f1c7a244-2fa6-44ee-8fb6-871f337683a3</nicId>
-                  <provisioningState>AVAILABLE</provisioningState>
-               </firewall>
-               <dhcpActive>true</dhcpActive>
-               <provisioningState>AVAILABLE</provisioningState>
-            </nics>
-            <nics>
-               <dataCenterId>a3a2e730-0dc3-47e6-bac6-4c056d5e2aee</dataCenterId>
-               <dataCenterVersion>6</dataCenterVersion>
-               <nicId>e6263870-cd70-42e4-956a-00f3bbec70e3</nicId>
-               <nicName>PUBLIC</nicName>
-               <lanId>3</lanId>
-               <internetAccess>true</internetAccess>
-               <serverId>c09f4f31-336c-4ad2-9ec7-591778513408</serverId>
-               <ips>162.254.26.14</ips>
-               <macAddress>02:01:9c:53:c3:50</macAddress>
-               <firewall>
-                  <active>false</active>
-                  <firewallId>c0fa291e-38c2-48a6-bd15-b66ba54ac18a</firewallId>
-                  <nicId>e6263870-cd70-42e4-956a-00f3bbec70e3</nicId>
-                  <provisioningState>AVAILABLE</provisioningState>
-               </firewall>
-               <dhcpActive>false</dhcpActive>
-               <gatewayIp>162.254.26.1</gatewayIp>
-               <provisioningState>AVAILABLE</provisioningState>
-            </nics>
-            <provisioningState>AVAILABLE</provisioningState>
-            <virtualMachineState>RUNNING</virtualMachineState>
-            <creationTime>2014-07-16T18:53:05.109Z</creationTime>
-            <lastModificationTime>2014-07-16T19:57:51.577Z</lastModificationTime>
-            <osType>LINUX</osType>
-            <availabilityZone>AUTO</availabilityZone>
-            <cpuHotPlug>true</cpuHotPlug>
-            <ramHotPlug>true</ramHotPlug>
-            <nicHotPlug>true</nicHotPlug>
-            <nicHotUnPlug>true</nicHotUnPlug>
-            <discVirtioHotPlug>true</discVirtioHotPlug>
-            <discVirtioHotUnPlug>true</discVirtioHotUnPlug>
-         </return>
-      </ns2:getServerResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_snapshot.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_snapshot.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_snapshot.json
new file mode 100644
index 0000000..06cce65
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_snapshot.json
@@ -0,0 +1,30 @@
+{
+    "id": "sshot",
+    "type": "snapshot",
+    "href": "/cloudapi/v3/snapshots/sshot",
+    "metadata": {
+        "createdDate": "2016-10-26T11:38:45Z",
+        "createdBy": "test@test.te",
+        "etag": "01873262ac042b5f44ed33b4241225b4",
+        "lastModifiedDate": "2016-10-26T11:38:45Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "Test Snapshot",
+        "description": "Test Snapshot",
+        "location": "us/las",
+        "size": 10,
+        "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/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.json b/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.json
new file mode 100644
index 0000000..d0eab6a
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.json
@@ -0,0 +1,35 @@
+{
+    "id": "vol-2",
+    "type": "volume",
+    "href": "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+    "metadata": {
+        "createdDate": "2016-10-17T13:13:36Z",
+        "createdBy": "test@test.te",
+        "etag": "c1800ce349033f9cd2c095ea1ea4976a",
+        "lastModifiedDate": "2016-10-17T13:47:52Z",
+        "lastModifiedBy": "test@test.te",
+        "state": "AVAILABLE"
+    },
+    "properties": {
+        "name": "Updated storage name",
+        "type": "HDD",
+        "size": 40,
+        "availabilityZone": "AUTO",
+        "image": "bvol-img",
+        "imagePassword": null,
+        "sshKeys": 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": 3
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.xml b/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.xml
deleted file mode 100644
index 050b4b5..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_describe_volume.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:getStorageResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3767716</requestId>
-            <dataCenterId>905f1346-d199-425d-a035-7dc28f6819cd</dataCenterId>
-            <dataCenterVersion>2</dataCenterVersion>
-            <storageId>00d0b9e7-e016-456f-85a0-517aa9a34bf5</storageId>
-            <size>50</size>
-            <storageName>StackPointCloud-Volume</storageName>
-            <mountImage>
-               <imageId>cd59b162-0289-11e4-9f63-52540066fee9</imageId>
-               <imageName>Debian-7-server-2014-07-01</imageName>
-            </mountImage>
-            <provisioningState>AVAILABLE</provisioningState>
-            <creationTime>2014-07-21T17:37:45.958Z</creationTime>
-            <lastModificationTime>2014-07-21T17:37:45.958Z</lastModificationTime>
-         </return>
-      </ns2:getStorageResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_destroy_datacenter.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_destroy_datacenter.xml b/libcloud/test/compute/fixtures/profitbricks/ex_destroy_datacenter.xml
deleted file mode 100644
index 4d36bdb..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_destroy_datacenter.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:deleteDataCenterResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3339313</requestId>
-         </return>
-      </ns2:deleteDataCenterResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_destroy_network_interface.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_destroy_network_interface.xml b/libcloud/test/compute/fixtures/profitbricks/ex_destroy_network_interface.xml
deleted file mode 100644
index 6584f06..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_destroy_network_interface.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:deleteNicResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <requestId>3634902</requestId>
-            <dataCenterId>c2df1871-6aac-458e-ad1a-ef3f530cb7aa</dataCenterId>
-            <dataCenterVersion>31</dataCenterVersion>
-         </return>
-      </ns2:deleteNicResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_attached_volumes.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_attached_volumes.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_attached_volumes.json
new file mode 100644
index 0000000..6777ba3
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_attached_volumes.json
@@ -0,0 +1,112 @@
+{
+    "id": "srv-1/volumes",
+    "type": "collection",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/volumes",
+    "items": [
+        {
+            "id": "d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+            "type": "volume",
+            "href": "/cloudapi/v3/datacenters/dc-1/volumes/d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+            "metadata": {
+                "createdDate": "2016-10-17T13:13:36Z",
+                "createdBy": "test@test.test",
+                "etag": "c1800ce349033f9cd2c095ea1ea4976a",
+                "lastModifiedDate": "2016-10-17T13:47:52Z",
+                "lastModifiedBy": "test@test.test",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "Volume one",
+                "type": "HDD",
+                "size": 40,
+                "availabilityZone": "AUTO",
+                "image": "bvol-img",
+                "imagePassword": null,
+                "sshKeys": 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": 3
+            }
+        },
+        {
+            "id": "vol-2",
+            "type": "volume",
+            "href": "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+            "metadata": {
+                "createdDate": "2016-10-18T15:13:44Z",
+                "createdBy": "test@test.test",
+                "etag": "a96f7781920c2890c25f967e66e6ee91",
+                "lastModifiedDate": "2016-10-18T15:13:44Z",
+                "lastModifiedBy": "test@test.test",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "Volume two",
+                "type": "HDD",
+                "size": 10,
+                "availabilityZone": "AUTO",
+                "image": null,
+                "imagePassword": null,
+                "sshKeys": null,
+                "bus": "VIRTIO",
+                "licenceType": null,
+                "cpuHotPlug": false,
+                "cpuHotUnplug": false,
+                "ramHotPlug": false,
+                "ramHotUnplug": false,
+                "nicHotPlug": false,
+                "nicHotUnplug": false,
+                "discVirtioHotPlug": false,
+                "discVirtioHotUnplug": false,
+                "discScsiHotPlug": false,
+                "discScsiHotUnplug": false,
+                "deviceNumber": 2
+            }
+        },
+        {
+            "id": "bvol-1",
+            "type": "volume",
+            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+            "metadata": {
+                "createdDate": "2016-10-18T07:20:41Z",
+                "createdBy": "test@test.test",
+                "etag": "33f6b8d506e7ad756e8554b915f29c61",
+                "lastModifiedDate": "2016-10-18T07:20:41Z",
+                "lastModifiedBy": "test@test.test",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "Volume three",
+                "type": "HDD",
+                "size": 10,
+                "availabilityZone": "AUTO",
+                "image": "bvol-img",
+                "imagePassword": null,
+                "sshKeys": 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
+            }
+        }
+    ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.json
new file mode 100644
index 0000000..912c0fc
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.json
@@ -0,0 +1,52 @@
+{
+    "id": "datacenters",
+    "type": "collection",
+    "href": "/cloudapi/v3/datacenters/",
+    "items": [
+        {
+            "id": "dc-1",
+            "type": "datacenter",
+            "href": "/cloudapi/v3/datacenters/dc-1",
+            "metadata": {
+                "createdDate": "2016-10-14T07:24:59Z",
+                "createdBy": "test@test.test",
+                "etag": "bdddec2287cb7723e86ac088bf644606",
+                "lastModifiedDate": "2016-10-17T15:27:25Z",
+                "lastModifiedBy": "test@test.test",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "Test One.",
+                "description": "A test data center",
+                "location": "de/fra",
+                "version": 3,
+                "features": [
+                    "SSD",
+                    "MULTIPLE_CPU"
+                ]
+            },
+            "entities": {
+                "servers": {
+                    "id": "983a45be-a9aa-427a-8117-271ce9f392bb/servers",
+                    "type": "collection",
+                    "href": "/cloudapi/v3/datacenters/dc-1/servers"
+                },
+                "volumes": {
+                    "id": "983a45be-a9aa-427a-8117-271ce9f392bb/volumes",
+                    "type": "collection",
+                    "href": "/cloudapi/v3/datacenters/dc-1/volumes"
+                },
+                "loadbalancers": {
+                    "id": "983a45be-a9aa-427a-8117-271ce9f392bb/loadbalancers",
+                    "type": "collection",
+                    "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers"
+                },
+                "lans": {
+                    "id": "983a45be-a9aa-427a-8117-271ce9f392bb/lans",
+                    "type": "collection",
+                    "href": "/cloudapi/v3/datacenters/dc-1/lans"
+                }
+            }
+        }
+    ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.xml b/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.xml
deleted file mode 100644
index dfb9245..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_list_datacenters.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
-   <S:Body>
-      <ns2:getAllDataCentersResponse xmlns:ns2="http://ws.api.profitbricks.com/">
-         <return>
-            <dataCenterId>a3e6f83a-8982-4d6a-aebc-60baf5755ede</dataCenterId>
-            <dataCenterName>StackPointCloud</dataCenterName>
-            <dataCenterVersion>1</dataCenterVersion>
-            <provisioningState>AVAILABLE</provisioningState>
-         </return>
-         <return>
-            <dataCenterId>c68f77b8-7ecb-40e9-8b41-79415dffc0f1</dataCenterId>
-            <dataCenterName>XYZ</dataCenterName>
-            <dataCenterVersion>2</dataCenterVersion>
-            <provisioningState>AVAILABLE</provisioningState>
-         </return>
-      </ns2:getAllDataCentersResponse>
-   </S:Body>
-</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_firewall_rules.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_firewall_rules.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_firewall_rules.json
new file mode 100644
index 0000000..7128877
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_firewall_rules.json
@@ -0,0 +1,79 @@
+{
+    "id": "nic-2/firewallrules",
+    "type": "collection",
+    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules",
+    "items": [
+        {
+            "id": "fwr-1",
+            "type": "firewall-rule",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fwr-1",
+            "metadata": {
+                "createdDate": "2016-10-19T11:08:10Z",
+                "createdBy": "test@test.te",
+                "etag": "b91a2e082a7422dafb79d84a07fb2a28",
+                "lastModifiedDate": "2016-10-19T11:19:04Z",
+                "lastModifiedBy": "test@test.te",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "Test updated firewall rule",
+                "protocol": "TCP",
+                "sourceMac": null,
+                "sourceIp": null,
+                "targetIp": null,
+                "icmpCode": null,
+                "icmpType": null,
+                "portRangeStart": 80,
+                "portRangeEnd": 80
+            }
+        },
+        {
+            "id": "fw2",
+            "type": "firewall-rule",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fw2",
+            "metadata": {
+                "createdDate": "2016-10-19T09:55:10Z",
+                "createdBy": "test@test.te",
+                "etag": "00bb5b86562db1ed19ca38697e485160",
+                "lastModifiedDate": "2016-10-19T09:55:10Z",
+                "lastModifiedBy": "test@test.te",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "HTTPs (SSL)",
+                "protocol": "TCP",
+                "sourceMac": null,
+                "sourceIp": null,
+                "targetIp": null,
+                "icmpCode": null,
+                "icmpType": null,
+                "portRangeStart": 443,
+                "portRangeEnd": 443
+            }
+        },
+        {
+            "id": "6238b1e2-c706-4dc9-80a9-307fa0bd4287",
+            "type": "firewall-rule",
+            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/6238b1e2-c706-4dc9-80a9-307fa0bd4287",
+            "metadata": {
+                "createdDate": "2016-10-19T09:55:10Z",
+                "createdBy": "test@test.te",
+                "etag": "00bb5b86562db1ed19ca38697e485160",
+                "lastModifiedDate": "2016-10-19T09:55:10Z",
+                "lastModifiedBy": "test@test.te",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "name": "HTTP Webserver",
+                "protocol": "TCP",
+                "sourceMac": null,
+                "sourceIp": null,
+                "targetIp": null,
+                "icmpCode": null,
+                "icmpType": null,
+                "portRangeStart": 80,
+                "portRangeEnd": 80
+            }
+        }
+    ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_ip_blocks.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_ip_blocks.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_ip_blocks.json
new file mode 100644
index 0000000..df3c9cb
--- /dev/null
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_ip_blocks.json
@@ -0,0 +1,50 @@
+{
+    "id": "ipblocks",
+    "type": "collection",
+    "href": "/cloudapi/v3/ipblocks",
+    "items": [
+        {
+            "id": "ipb-1",
+            "type": "ipblock",
+            "href": "/cloudapi/v3/ipblocks/ipb-1",
+            "metadata": {
+                "createdDate": "2016-10-26T15:05:36Z",
+                "createdBy": "test@test.te",
+                "etag": "acbf00bacf7ee48d4b8bc4e7413e1f30",
+                "lastModifiedDate": "2016-10-26T15:05:36Z",
+                "lastModifiedBy": "test@test.te",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "ips": [
+                    "78.137.101.252",
+                    "78.137.101.251"
+                ],
+                "location": "de/fkb",
+                "size": 2,
+                "name": "Test IP Block One"
+            }
+        },
+        {
+            "id": "ipb-2",
+            "type": "ipblock",
+            "href": "/cloudapi/v3/ipblocks/ipb-2",
+            "metadata": {
+                "createdDate": "2016-10-26T15:05:12Z",
+                "createdBy": "test@test.te",
+                "etag": "43e05b766899950bc8a5aeee0fd89b05",
+                "lastModifiedDate": "2016-10-26T15:05:12Z",
+                "lastModifiedBy": "test@test.te",
+                "state": "AVAILABLE"
+            },
+            "properties": {
+                "ips": [
+                    "78.137.101.250"
+                ],
+                "location": "de/fkb",
+                "size": 1,
+                "name": "Test IP Block One"
+            }
+        }
+    ]
+}
\ No newline at end of file


Mime
View raw message