You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/09/24 14:33:08 UTC

[02/10] libcloud git commit: ProfitBricks provider API v4 update; fix & update tests and docs

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json
index bdd7ec3..348b521 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json
@@ -1,12 +1,12 @@
 {
     "id": "s-3/nics",
     "type": "collection",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics",
+    "href": "/cloudapi/v4/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",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1",
             "metadata": {
                 "createdDate": "2016-10-17T15:46:38Z",
                 "createdBy": "test@test.te",
@@ -16,7 +16,7 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Test network interface",
+                "name": "libcloud Test",
                 "mac": "02:01:0b:9d:4d:ce",
                 "ips": [
                     "10.15.124.11"
@@ -30,14 +30,14 @@
                 "firewallrules": {
                     "id": "nic-1/firewallrules",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
                 }
             }
         },
         {
             "id": "8f7ea845-cf40-49c8-9e93-68366f31d605",
             "type": "nic",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/8f7ea845-cf40-49c8-9e93-68366f31d605",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/8f7ea845-cf40-49c8-9e93-68366f31d605",
             "metadata": {
                 "createdDate": "2016-10-17T16:46:38Z",
                 "createdBy": "test@test.te",
@@ -61,7 +61,7 @@
                 "firewallrules": {
                     "id": "8f7ea845-cf40-49c8-9e93-68366f31d605/firewallrules",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
                 }
             }
         }

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json
index ffb3ef0..f1d0cd1 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json
@@ -1,12 +1,12 @@
 {
     "id": "dc-2/loadbalancers",
     "type": "collection",
-    "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers",
+    "href": "/cloudapi/v4/datacenters/dc-2/loadbalancers",
     "items": [
         {
             "id": "bal-1",
             "type": "loadbalancer",
-            "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/bal-1",
+            "href": "/cloudapi/v4/datacenters/dc-2/loadbalancers/bal-1",
             "metadata": {
                 "createdDate": "2016-10-26T13:02:33Z",
                 "createdBy": "test@test.te",
@@ -24,12 +24,12 @@
                 "balancednics": {
                     "id": "bal-1/balancednics",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/bal-1/balancednics",
+                    "href": "/cloudapi/v4/datacenters/dc-2/loadbalancers/bal-1/balancednics",
                     "items": [
                         {
                             "id": "68e3bd55-55a1-4fa0-8903-8c3cf23ee30a",
                             "type": "nic",
-                            "href": "/cloudapi/v3/datacenters/dc-2/servers/92445f57-5378-4a5b-8b53-f0f36fb8e6ad/nics/68e3bd55-55a1-4fa0-8903-8c3cf23ee30a",
+                            "href": "/cloudapi/v4/datacenters/dc-2/servers/92445f57-5378-4a5b-8b53-f0f36fb8e6ad/nics/68e3bd55-55a1-4fa0-8903-8c3cf23ee30a",
                             "metadata": {
                                 "createdDate": "2016-10-26T13:02:33Z",
                                 "createdBy": "test@test.te",
@@ -53,7 +53,7 @@
                                 "firewallrules": {
                                     "id": "68e3bd55-55a1-4fa0-8903-8c3cf23ee30a/firewallrules",
                                     "type": "collection",
-                                    "href": "/cloudapi/v3/datacenters/dc-2/servers/92445f57-5378-4a5b-8b53-f0f36fb8e6ad/nics/68e3bd55-55a1-4fa0-8903-8c3cf23ee30a/firewallrules"
+                                    "href": "/cloudapi/v4/datacenters/dc-2/servers/92445f57-5378-4a5b-8b53-f0f36fb8e6ad/nics/68e3bd55-55a1-4fa0-8903-8c3cf23ee30a/firewallrules"
                                 }
                             }
                         }
@@ -64,7 +64,7 @@
         {
             "id": "24d24a20-1161-4870-8b49-434622a18875",
             "type": "loadbalancer",
-            "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/24d24a20-1161-4870-8b49-434622a18875",
+            "href": "/cloudapi/v4/datacenters/dc-2/loadbalancers/24d24a20-1161-4870-8b49-434622a18875",
             "metadata": {
                 "createdDate": "2016-10-26T13:02:33Z",
                 "createdBy": "test@test.te",
@@ -82,12 +82,12 @@
                 "balancednics": {
                     "id": "24d24a20-1161-4870-8b49-434622a18875/balancednics",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/24d24a20-1161-4870-8b49-434622a18875/balancednics",
+                    "href": "/cloudapi/v4/datacenters/dc-2/loadbalancers/24d24a20-1161-4870-8b49-434622a18875/balancednics",
                     "items": [
                         {
                             "id": "0485e083-3461-447a-8c5a-392be3c76473",
                             "type": "nic",
-                            "href": "/cloudapi/v3/datacenters/dc-2/servers/7571b2d9-312a-45be-8d68-58c269c3911c/nics/0485e083-3461-447a-8c5a-392be3c76473",
+                            "href": "/cloudapi/v4/datacenters/dc-2/servers/7571b2d9-312a-45be-8d68-58c269c3911c/nics/0485e083-3461-447a-8c5a-392be3c76473",
                             "metadata": {
                                 "createdDate": "2016-10-25T08:49:48Z",
                                 "createdBy": "test@test.te",
@@ -111,14 +111,14 @@
                                 "firewallrules": {
                                     "id": "0485e083-3461-447a-8c5a-392be3c76473/firewallrules",
                                     "type": "collection",
-                                    "href": "/cloudapi/v3/datacenters/dc-2/servers/7571b2d9-312a-45be-8d68-58c269c3911c/nics/0485e083-3461-447a-8c5a-392be3c76473/firewallrules"
+                                    "href": "/cloudapi/v4/datacenters/dc-2/servers/7571b2d9-312a-45be-8d68-58c269c3911c/nics/0485e083-3461-447a-8c5a-392be3c76473/firewallrules"
                                 }
                             }
                         },
                         {
                             "id": "2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68",
                             "type": "nic",
-                            "href": "/cloudapi/v3/datacenters/dc-2/servers/ff3b523c-21bd-453d-80a3-c2bcdae1f509/nics/2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68",
+                            "href": "/cloudapi/v4/datacenters/dc-2/servers/ff3b523c-21bd-453d-80a3-c2bcdae1f509/nics/2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68",
                             "metadata": {
                                 "createdDate": "2016-10-25T14:01:03Z",
                                 "createdBy": "test@test.te",
@@ -142,14 +142,14 @@
                                 "firewallrules": {
                                     "id": "2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68/firewallrules",
                                     "type": "collection",
-                                    "href": "/cloudapi/v3/datacenters/dc-2/servers/ff3b523c-21bd-453d-80a3-c2bcdae1f509/nics/2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68/firewallrules"
+                                    "href": "/cloudapi/v4/datacenters/dc-2/servers/ff3b523c-21bd-453d-80a3-c2bcdae1f509/nics/2e9c54f4-85c0-4d10-8369-cf5e3a6e7b68/firewallrules"
                                 }
                             }
                         },
                         {
                             "id": "707d7aa4-8311-4a61-82a4-a80333e9ecc2",
                             "type": "nic",
-                            "href": "/cloudapi/v3/datacenters/dc-2/servers/2e77a9cc-2338-43e6-84bf-e4c2ff9be265/nics/707d7aa4-8311-4a61-82a4-a80333e9ecc2",
+                            "href": "/cloudapi/v4/datacenters/dc-2/servers/2e77a9cc-2338-43e6-84bf-e4c2ff9be265/nics/707d7aa4-8311-4a61-82a4-a80333e9ecc2",
                             "metadata": {
                                 "createdDate": "2016-10-25T15:36:06Z",
                                 "createdBy": "test@test.te",
@@ -173,14 +173,14 @@
                                 "firewallrules": {
                                     "id": "707d7aa4-8311-4a61-82a4-a80333e9ecc2/firewallrules",
                                     "type": "collection",
-                                    "href": "/cloudapi/v3/datacenters/dc-2/servers/2e77a9cc-2338-43e6-84bf-e4c2ff9be265/nics/707d7aa4-8311-4a61-82a4-a80333e9ecc2/firewallrules"
+                                    "href": "/cloudapi/v4/datacenters/dc-2/servers/2e77a9cc-2338-43e6-84bf-e4c2ff9be265/nics/707d7aa4-8311-4a61-82a4-a80333e9ecc2/firewallrules"
                                 }
                             }
                         },
                         {
                             "id": "710f6842-440d-4fdc-878e-0c329037d4a9",
                             "type": "nic",
-                            "href": "/cloudapi/v3/datacenters/dc-2/servers/fc0f7e86-a7de-4cee-84b5-409cc8b89ad2/nics/710f6842-440d-4fdc-878e-0c329037d4a9",
+                            "href": "/cloudapi/v4/datacenters/dc-2/servers/fc0f7e86-a7de-4cee-84b5-409cc8b89ad2/nics/710f6842-440d-4fdc-878e-0c329037d4a9",
                             "metadata": {
                                 "createdDate": "2016-10-25T14:01:03Z",
                                 "createdBy": "test@test.te",
@@ -204,7 +204,7 @@
                                 "firewallrules": {
                                     "id": "710f6842-440d-4fdc-878e-0c329037d4a9/firewallrules",
                                     "type": "collection",
-                                    "href": "/cloudapi/v3/datacenters/dc-2/servers/fc0f7e86-a7de-4cee-84b5-409cc8b89ad2/nics/710f6842-440d-4fdc-878e-0c329037d4a9/firewallrules"
+                                    "href": "/cloudapi/v4/datacenters/dc-2/servers/fc0f7e86-a7de-4cee-84b5-409cc8b89ad2/nics/710f6842-440d-4fdc-878e-0c329037d4a9/firewallrules"
                                 }
                             }
                         }

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json
index bdd7ec3..d183111 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json
@@ -1,12 +1,12 @@
 {
     "id": "s-3/nics",
     "type": "collection",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics",
+    "href": "/cloudapi/v4/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",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1",
             "metadata": {
                 "createdDate": "2016-10-17T15:46:38Z",
                 "createdBy": "test@test.te",
@@ -16,7 +16,7 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Test network interface",
+                "name": "libcloud Test",
                 "mac": "02:01:0b:9d:4d:ce",
                 "ips": [
                     "10.15.124.11"
@@ -30,14 +30,14 @@
                 "firewallrules": {
                     "id": "nic-1/firewallrules",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
                 }
             }
         },
         {
             "id": "8f7ea845-cf40-49c8-9e93-68366f31d605",
             "type": "nic",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/8f7ea845-cf40-49c8-9e93-68366f31d605",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/8f7ea845-cf40-49c8-9e93-68366f31d605",
             "metadata": {
                 "createdDate": "2016-10-17T16:46:38Z",
                 "createdBy": "test@test.te",
@@ -47,7 +47,7 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Another test network interface",
+                "name": "libcloud Test",
                 "mac": "02:01:0b:9d:4d:dd",
                 "ips": [
                     "10.15.124.12"
@@ -61,7 +61,7 @@
                 "firewallrules": {
                     "id": "8f7ea845-cf40-49c8-9e93-68366f31d605/firewallrules",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
                 }
             }
         }

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json b/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json
index bfb2d5b..75d625e 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json
@@ -1,7 +1,7 @@
 {
     "id": "dc-1",
     "type": "datacenter",
-    "href": "/cloudapi/v3/datacenters/dc-1",
+    "href": "/cloudapi/v4/datacenters/dc-1",
     "metadata" : {
         "createdDate": "2016-10-17T11:33:11Z",
         "createdBy": "test@test.test",
@@ -11,9 +11,9 @@
         "state" : "BUSY"
     },
     "properties" : {
-        "name": "Test Data Center",
-        "description": "This is a test data center.",
-        "location": "de/fkb",
+        "name": "libcloud Test - RENAME",
+        "description": "libcloud test datacenter",
+        "location": "us/las",
         "version": 35,
         "features": [
             "SSD",
@@ -24,23 +24,23 @@
         "servers" : {
             "id": "dc-1/servers",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers"
+            "href": "/cloudapi/v4/datacenters/dc-1/servers"
         },
         "volumes" : {
             "id": "dc-1/volumes",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/volumes"
+            "href": "/cloudapi/v4/datacenters/dc-1/volumes"
         },
         "loadbalancers" : {
             "id": "dc-1/loadbalancers",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers",
+            "href": "/cloudapi/v4/datacenters/dc-1/loadbalancers",
             "items": []
         },
         "lans" : {
             "id": "dc-1/lans",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/lans"
+            "href": "/cloudapi/v4/datacenters/dc-1/lans"
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_set_inet_access.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_set_inet_access.json b/libcloud/test/compute/fixtures/profitbricks/ex_set_inet_access.json
deleted file mode 100644
index badfd0a..0000000
--- a/libcloud/test/compute/fixtures/profitbricks/ex_set_inet_access.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
-    "id": "nic-2",
-    "type": "nic",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2",
-    "metadata": {
-        "createdDate": "2016-10-19T08:18:55Z",
-        "createdBy": "test@test.te",
-        "etag": "56f8d8bbdc84faad4188f647a49a565b",
-        "lastModifiedDate": "2016-10-19T09:44:59Z",
-        "lastModifiedBy": "test@test.te",
-        "state": "BUSY"
-    },
-    "properties": {
-        "name": "Updated from LibCloud",
-        "mac": "02:01:68:c1:e8:88",
-        "ips": [
-            "11.12.13.14"
-        ],
-        "dhcp": true,
-        "lan": 1,
-        "firewallActive": false,
-        "nat": false
-    },
-    "entities": {
-        "firewallrules": {
-            "id": "nic-2/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/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json
index f6d13ef..4deeaa2 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json
@@ -1,7 +1,7 @@
 {
     "id": "fw2",
     "type": "firewall-rule",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fw2",
+    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-2/firewallrules/fw2",
     "metadata": {
         "createdDate": "2016-10-19T09:55:10Z",
         "createdBy": "test@test.te",
@@ -11,15 +11,15 @@
         "state": "BUSY"
     },
     "properties": {
-        "name": "HTTPs (SSL)",
+        "name": "SSH - RENAME",
         "protocol": "TCP",
-        "sourceMac": null,
+        "sourceMac": "01:23:45:67:89:00",
         "sourceIp": null,
         "targetIp": null,
         "icmpCode": null,
         "icmpType": null,
-        "portRangeStart": 443,
-        "portRangeEnd": 443
+        "portRangeStart": 22,
+        "portRangeEnd": 22
     }
 }
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_image.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_image.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_image.json
index 32db4ce..38eda31 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_image.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_image.json
@@ -1,7 +1,7 @@
 {
     "id": "img-2",
     "type": "image",
-    "href": "/cloudapi/v3/images/img-2",
+    "href": "/cloudapi/v4/images/img-2",
     "metadata": {
         "createdDate": "2015-10-09T12:06:34Z",
         "createdBy": "test@test.te",
@@ -13,7 +13,7 @@
     "properties": {
         "name": "my-updated-image.img",
         "description": null,
-        "location": "de/fkb",
+        "location": "us/las",
         "size": 2,
         "cpuHotPlug": false,
         "cpuHotUnplug": false,
@@ -27,6 +27,7 @@
         "discScsiHotUnplug": false,
         "licenceType": "UNKNOWN",
         "imageType": "HDD",
+        "imageAliases": [ ],
         "public": false
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_lan.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_lan.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_lan.json
index 27b841d..eb8421b 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_lan.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_lan.json
@@ -1,7 +1,7 @@
 {
     "id" : "10",
     "type" : "lan",
-    "href" : "/cloudapi/v3/datacenters/dc-1/lans/10",
+    "href" : "/cloudapi/v4/datacenters/dc-1/lans/10",
     "metadata" : {
         "createdDate": "2016-10-17T11:33:11Z",
         "createdBy": "test@test.te",
@@ -11,14 +11,14 @@
         "state": "BUSY"
     },
     "properties" : {
-        "name" : "Test Updated Lan",
-        "public" : true
+        "name" : "libcloud Test - RENAME",
+        "public" : false
     },
     "entities": {
         "nics": {
             "id": "10/nics",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/lans/10/nics"
+            "href": "/cloudapi/v4/datacenters/dc-1/lans/10/nics"
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json
index 0705e68..c4b4a24 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json
@@ -1,7 +1,7 @@
 {
     "id": "bal-1",
     "type": "loadbalancer",
-    "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers/bal-1",
+    "href": "/cloudapi/v4/datacenters/dc-1/loadbalancers/bal-1",
     "metadata": {
         "createdDate": "2019-10-26T13:02:33Z",
         "createdBy": "test@test.te",
@@ -11,8 +11,8 @@
         "state": "BUSY"
     },
     "properties": {
-        "name": "Updated Load Balancer",
+        "name": "libcloud Test - RENAME",
         "ip": "123.124.125.126",
-        "dhcp": false
+        "dhcp": true
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json
index d0fb880..12f0d57 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json
@@ -1,31 +1,31 @@
 {
-    "id": "nic-1",
+    "id": "nic-2",
     "type": "nic",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1",
+    "href": "/cloudapi/v4/datacenters/dc-1/servers/s-3/nics/nic-2",
     "metadata": {
-        "createdDate": "2016-10-17T15:46:38Z",
+        "createdDate": "2016-10-19T08:18:55Z",
         "createdBy": "test@test.te",
-        "etag": "23dd052b608b59be38cef62765af7039",
-        "lastModifiedDate": "2016-10-19T09:29:00Z",
+        "etag": "56f8d8bbdc84faad4188f647a49a565b",
+        "lastModifiedDate": "2016-10-19T09:44:59Z",
         "lastModifiedBy": "test@test.te",
         "state": "BUSY"
     },
     "properties": {
-        "name": "Updated from LibCloud",
-        "mac": "02:01:0b:9d:4d:ce",
+        "name": "libcloud Test - RENAME",
+        "mac": "02:01:68:c1:e8:88",
         "ips": [
-            "10.15.124.11"
+            "11.12.13.14"
         ],
         "dhcp": true,
         "lan": 1,
-        "firewallActive": true,
+        "firewallActive": false,
         "nat": false
     },
     "entities": {
         "firewallrules": {
-            "id": "nic-1/firewallrules",
+            "id": "nic-2/firewallrules",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules"
+            "href": "/cloudapi/v4/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/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json
index 6df459d..76c189a 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json
@@ -1,7 +1,7 @@
 {
     "id": "srv-1",
     "type": "server",
-    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1",
+    "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1",
     "metadata" : {
         "createdDate": "2016-10-18T07:28:05Z",
         "createdBy": "test@test.test",
@@ -11,17 +11,17 @@
         "state" : "BUSY"
     },
     "properties" : {
-        "name" : "A test node",
+        "name" : "libcloud Test RENAME",
         "cores" : 1,
-        "ram" : 512,
+        "ram" : 1024,
         "bootCdrom" : null,
-        "availabilityZone": "AUTO",
+        "availabilityZone": "ZONE_1",
         "vmState": "RUNNING",
         "bootCdrom": null,
         "bootVolume": {
             "id": "bvol-1",
             "type": "volume",
-            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1"
+            "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1"
         },
         "cpuFamily" : "AMD_OPTERON"
     },
@@ -29,17 +29,17 @@
         "cdroms": {
             "id": "srv-1/cdroms",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms"
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/cdroms"
         },
         "volumes": {
             "id": "srv-1/volumes",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/volumes"
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/volumes"
         },
         "nics": {
             "id": "srv-1/nics",
             "type": "collection",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics"
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/nics"
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_snapshot.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_snapshot.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_snapshot.json
index f37024e..829825a 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_snapshot.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_snapshot.json
@@ -1,7 +1,7 @@
 {
     "id": "sshot",
     "type": "snapshot",
-    "href": "/cloudapi/v3/snapshots/sshot",
+    "href": "/cloudapi/v4/snapshots/sshot",
     "metadata": {
         "createdDate": "2016-10-26T11:38:45Z",
         "createdBy": "test@test.te",
@@ -11,8 +11,8 @@
         "state": "AVAILABLE"
     },
     "properties": {
-        "name": "Updated snapshot",
-        "description": "Updated snapshot",
+        "name": "libcloud Test - RENAME",
+        "description": "libcloud test snapshot - RENAME",
         "location": "us/las",
         "size": 10,
         "cpuHotPlug": true,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.json b/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.json
index d0eab6a..19753b1 100644
--- a/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.json
+++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.json
@@ -1,7 +1,7 @@
 {
     "id": "vol-2",
     "type": "volume",
-    "href": "/cloudapi/v3/datacenters/dc-1/volumes/vol-2",
+    "href": "/cloudapi/v4/datacenters/dc-1/volumes/vol-2",
     "metadata": {
         "createdDate": "2016-10-17T13:13:36Z",
         "createdBy": "test@test.te",
@@ -11,15 +11,15 @@
         "state": "AVAILABLE"
     },
     "properties": {
-        "name": "Updated storage name",
+        "name": "libcloud Test - RENAME",
         "type": "HDD",
-        "size": 40,
-        "availabilityZone": "AUTO",
+        "size": 5,
+        "availabilityZone": "ZONE_3",
         "image": "bvol-img",
         "imagePassword": null,
         "sshKeys": null,
         "bus": "VIRTIO",
-        "licenceType": "LINUX",
+        "licenceType": "UNKNOWN",
         "cpuHotPlug": true,
         "cpuHotUnplug": false,
         "ramHotPlug": true,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/list_images.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/list_images.json b/libcloud/test/compute/fixtures/profitbricks/list_images.json
index f7d718c..997beed 100644
--- a/libcloud/test/compute/fixtures/profitbricks/list_images.json
+++ b/libcloud/test/compute/fixtures/profitbricks/list_images.json
@@ -1,12 +1,12 @@
 {
     "id": "images",
     "type": "collection",
-    "href": "/cloudapi/v3/images",
+    "href": "/cloudapi/v4/images",
     "items": [
         {
             "id": "img-2",
             "type": "image",
-            "href": "/cloudapi/v3/images/img-2",
+            "href": "/cloudapi/v4/images/img-2",
             "metadata": {
                 "createdDate": "2016-06-02T11:33:49Z",
                 "createdBy": "System",
@@ -32,13 +32,14 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "LINUX",
                 "imageType": "CDROM",
+                "imageAliases": [ ],
                 "public": false
             }
         },
         {
             "id": "img-1",
             "type": "image",
-            "href": "/cloudapi/v3/images/img-1",
+            "href": "/cloudapi/v4/images/img-1",
             "metadata": {
                 "createdDate": "2014-11-14T15:22:19Z",
                 "createdBy": "System",
@@ -64,13 +65,14 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "OTHER",
                 "imageType": "CDROM",
+                "imageAliases": [ ],
                 "public": true
             }
         },
         {
             "id": "62c525d9-b2cf-11e5-afa0-52540066fee9",
             "type": "image",
-            "href": "/cloudapi/v3/images/62c525d9-b2cf-11e5-afa0-52540066fee9",
+            "href": "/cloudapi/v4/images/62c525d9-b2cf-11e5-afa0-52540066fee9",
             "metadata": {
                 "createdDate": "2016-01-04T10:39:08Z",
                 "createdBy": "System",
@@ -82,7 +84,7 @@
             "properties": {
                 "name": "Test-Image-Three-CDROM",
                 "description": "",
-                "location": "de/fkb",
+                "location": "us/las",
                 "size": 0.37,
                 "cpuHotPlug": true,
                 "cpuHotUnplug": false,
@@ -96,13 +98,14 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "LINUX",
                 "imageType": "CDROM",
+                "imageAliases": [ ],
                 "public": true
             }
         },
         {
             "id": "e2c323ba-3c6d-11e6-9336-52540005ab80",
             "type": "image",
-            "href": "/cloudapi/v3/images/e2c323ba-3c6d-11e6-9336-52540005ab80",
+            "href": "/cloudapi/v4/images/e2c323ba-3c6d-11e6-9336-52540005ab80",
             "metadata": {
                 "createdDate": "2016-06-27T13:48:53Z",
                 "createdBy": "System",
@@ -114,7 +117,7 @@
             "properties": {
                 "name": "Test-Image-Four-HDD",
                 "description": "",
-                "location": "de/fkb",
+                "location": "us/las",
                 "size": 0.28,
                 "cpuHotPlug": false,
                 "cpuHotUnplug": false,
@@ -128,13 +131,14 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "OTHER",
                 "imageType": "HDD",
+                "imageAliases": [ ],
                 "public": false
             }
         },
         {
             "id": "f1d2be4a-7937-11e4-8053-52540066fee9",
             "type": "image",
-            "href": "/cloudapi/v3/images/f1d2be4a-7937-11e4-8053-52540066fee9",
+            "href": "/cloudapi/v4/images/f1d2be4a-7937-11e4-8053-52540066fee9",
             "metadata": {
                 "createdDate": "2014-12-01T08:56:31Z",
                 "createdBy": "System",
@@ -146,7 +150,7 @@
             "properties": {
                 "name": "Test-Image-Two-HDD",
                 "description": "",
-                "location": "de/fkb",
+                "location": "us/las",
                 "size": 0.45,
                 "cpuHotPlug": false,
                 "cpuHotUnplug": false,
@@ -160,13 +164,14 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "LINUX",
                 "imageType": "HDD",
+                "imageAliases": [ ],
                 "public": true
             }
         },
         {
             "id": "dfa08a48-7937-11e4-8053-52540066fee9",
             "type": "image",
-            "href": "/cloudapi/v3/images/dfa08a48-7937-11e4-8053-52540066fee9",
+            "href": "/cloudapi/v4/images/dfa08a48-7937-11e4-8053-52540066fee9",
             "metadata": {
                 "createdDate": "2014-12-01T08:56:00Z",
                 "createdBy": "System",
@@ -192,6 +197,7 @@
                 "discScsiHotUnplug": false,
                 "licenceType": "LINUX",
                 "imageType": "HDD",
+                "imageAliases": [ ],
                 "public": true
             }
         }

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/list_locations.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/list_locations.json b/libcloud/test/compute/fixtures/profitbricks/list_locations.json
index 7694c22..0e1fdde 100644
--- a/libcloud/test/compute/fixtures/profitbricks/list_locations.json
+++ b/libcloud/test/compute/fixtures/profitbricks/list_locations.json
@@ -1,43 +1,42 @@
 {
-    "id": "locations",
-    "type": "collection",
-    "href": "/cloudapi/v3/locations",
-    "items": [
-        {
-            "id": "de/fkb",
-            "type": "location",
-            "href": "/cloudapi/v3/locations/de/fkb",
-            "properties": {
-                "name": "karlsruhe",
-                "features": [
-                    "SSD",
-                    "MULTIPLE_CPU"
-                ]
-            }
-        },
-        {
-            "id": "de/fra",
-            "type": "location",
-            "href": "/cloudapi/v3/locations/de/fra",
-            "properties": {
-                "name": "frankfurt",
-                "features": [
-                    "SSD",
-                    "MULTIPLE_CPU"
-                ]
-            }
-        },
-        {
-            "id": "us/las",
-            "type": "location",
-            "href": "/cloudapi/v3/locations/us/las",
-            "properties": {
-                "name": "lasvegas",
-                "features": [
-                    "SSD",
-                    "MULTIPLE_CPU"
-                ]
-            }
-        }
-    ]
-}
\ No newline at end of file
+  "id" : "locations",
+  "type" : "collection",
+  "href" : "https://api.profitbricks.com/cloudapi/v4/locations",
+  "items" : [ {
+    "id" : "us/las",
+    "type" : "location",
+    "href" : "https://api.profitbricks.com/cloudapi/v4/locations/de/fkb",
+    "properties" : {
+      "name" : "karlsruhe",
+      "features" : [ "SSD", "MULTIPLE_CPU" ],
+      "imageAliases" : [ "centos:6_iso", "opensuse:latest", "opensuse:42.3_iso", "centos:7_iso", "clearos:latest_iso", "debian:8_iso", "clonezilla:latest_iso", "windows:latest", "centos:7", "debian:7", "fedora:25_iso", "gparted:latest_iso", "grml:latest_iso", "opensuse:13.2_iso", "opensuse:42.1_iso", "opensuse:42.2_iso", "ubuntu:14.04_iso", "ubuntu:16.04_iso", "ubuntu:17.04_iso", "zenloadbalancer:latest_iso", "mssql:2012_trial_iso", "windows:virtiodriver_iso", "windows:2008r2_iso", "windows:2012r2_iso", "windows:2013_recovery_iso", "windows:2016_iso", "windows:2008r2", "windows:2012r2", "centos:6", "debian:9", "debian:latest", "ubuntu:16.04", "windows:2016", "centos:latest", "debian:8", "debian:testing", "fedora:25", "fedora:latest", "ubuntu:14.04", "ubuntu:latest", "debian:9_iso", "fedora:26_iso", "opensuse:13.2" ]
+    }
+  }, {
+    "id" : "de/fra",
+    "type" : "location",
+    "href" : "https://api.profitbricks.com/cloudapi/v4/locations/de/fra",
+    "properties" : {
+      "name" : "frankfurt",
+      "features" : [ "SSD", "MULTIPLE_CPU" ],
+      "imageAliases" : [ "centos:6_iso", "opensuse:42.3_iso", "windows:2012r2", "centos:7_iso", "clearos:latest_iso", "windows:latest", "clonezilla:latest_iso", "debian:7", "debian:9", "fedora:25_iso", "gparted:latest_iso", "grml:latest_iso", "opensuse:13.2_iso", "ubuntu:16.04", "opensuse:42.1_iso", "opensuse:42.2_iso", "windows:2016", "ubuntu:14.04_iso", "ubuntu:16.04_iso", "ubuntu:17.04_iso", "zenloadbalancer:latest_iso", "mssql:2012_trial_iso", "windows:virtiodriver_iso", "windows:2008r2_iso", "windows:2012r2_iso", "windows:2013_recovery_iso", "windows:2016_iso", "centos:6", "debian:latest", "fedora:latest", "ubuntu:14.04", "windows:2008r2", "centos:7", "centos:latest", "debian:8", "debian:testing", "fedora:25", "ubuntu:latest", "debian:8_iso", "debian:9_iso", "fedora:26_iso", "opensuse:13.2", "opensuse:latest" ]
+    }
+  }, {
+    "id" : "us/las",
+    "type" : "location",
+    "href" : "https://api.profitbricks.com/cloudapi/v4/locations/us/las",
+    "properties" : {
+      "name" : "lasvegas",
+      "features" : [ "SSD", "MULTIPLE_CPU" ],
+      "imageAliases" : [ "centos:6_iso", "opensuse:latest", "opensuse:42.3_iso", "windows:2016", "centos:7_iso", "clearos:latest_iso", "windows:latest", "clonezilla:latest_iso", "centos:7", "centos:latest", "debian:latest", "fedora:25_iso", "gparted:latest_iso", "grml:latest_iso", "opensuse:13.2_iso", "ubuntu:latest", "opensuse:42.1_iso", "opensuse:42.2_iso", "windows:2008r2", "opensuse:13.2", "ubuntu:14.04_iso", "ubuntu:16.04_iso", "ubuntu:17.04_iso", "zenloadbalancer:latest_iso", "mssql:2012_trial_iso", "windows:virtiodriver_iso", "windows:2008r2_iso", "windows:2012r2_iso", "windows:2013_recovery_iso", "windows:2016_iso", "debian:9", "debian:testing", "ubuntu:16.04", "windows:2012r2", "centos:6", "debian:7", "debian:8", "fedora:25", "fedora:latest", "ubuntu:14.04", "debian:8_iso", "debian:9_iso", "fedora:26_iso" ]
+    }
+  }, {
+    "id" : "us/ewr",
+    "type" : "location",
+    "href" : "https://api.profitbricks.com/cloudapi/v4/locations/us/ewr",
+    "properties" : {
+      "name" : "newark",
+      "features" : [ "SSD", "MULTIPLE_CPU" ],
+      "imageAliases" : [ "centos:6_iso", "opensuse:13.2", "opensuse:latest", "opensuse:42.3_iso", "windows:2008r2", "centos:7_iso", "clearos:latest_iso", "debian:9_iso", "fedora:26_iso", "clonezilla:latest_iso", "windows:2012r2", "windows:2016", "windows:latest", "centos:6", "centos:7", "centos:latest", "debian:latest", "fedora:25_iso", "gparted:latest_iso", "grml:latest_iso", "opensuse:13.2_iso", "fedora:latest", "ubuntu:14.04", "ubuntu:16.04", "opensuse:42.1_iso", "opensuse:42.2_iso", "ubuntu:14.04_iso", "ubuntu:16.04_iso", "ubuntu:17.04_iso", "zenloadbalancer:latest_iso", "mssql:2012_trial_iso", "windows:virtiodriver_iso", "windows:2008r2_iso", "windows:2012r2_iso", "windows:2013_recovery_iso", "windows:2016_iso", "debian:testing", "fedora:25", "debian:7", "debian:8", "debian:9", "ubuntu:latest", "debian:8_iso" ]
+    }
+  } ]
+}

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/list_nodes.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/list_nodes.json b/libcloud/test/compute/fixtures/profitbricks/list_nodes.json
index 1f30a8c..553b2f5 100644
--- a/libcloud/test/compute/fixtures/profitbricks/list_nodes.json
+++ b/libcloud/test/compute/fixtures/profitbricks/list_nodes.json
@@ -1,12 +1,12 @@
 {
     "id": "dc-1/servers",
     "type": "collection",
-    "href": "/cloudapi/v3/datacenters/9e9cb896-e8e7-4f52-a808-ac808baac814/servers",
+    "href": "/cloudapi/v4/datacenters/9e9cb896-e8e7-4f52-a808-ac808baac814/servers",
     "items": [
         {
             "id": "srv-1",
             "type": "server",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1",
             "metadata": {
                 "createdDate": "2016-10-18T07:28:05Z",
                 "createdBy": "test@test.te",
@@ -16,16 +16,16 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Test Node.",
-                "cores": 2,
-                "ram": 4096,
+                "name": "libcloud Test",
+                "cores": 1,
+                "ram": 1024,
                 "availabilityZone": "AUTO",
                 "vmState": "RUNNING",
                 "bootCdrom": null,
                 "bootVolume": {
                     "id": "bvol-1",
                     "type": "volume",
-                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+                    "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1",
                     "metadata": {
                         "createdDate": "2016-10-18T07:20:41Z",
                         "createdBy": "matfin@stackpointcloud.com",
@@ -35,9 +35,9 @@
                         "state": "AVAILABLE"
                     },
                     "properties": {
-                        "name": "Test Node Volume",
+                        "name": "libcloud Test",
                         "type": "HDD",
-                        "size": 10,
+                        "size": 2,
                         "image": "bvol-img",
                         "imagePassword": null,
                         "bus": "VIRTIO",
@@ -61,25 +61,25 @@
                 "cdroms": {
                     "id": "srv-1/cdroms",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms",
+                    "href": "/cloudapi/v4/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",
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/volumes",
                     "items": [
                         {
                             "id": "bvol-1",
                             "type": "volume",
-                            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1"
+                            "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1"
                         }
                     ]
                 },
                 "nics": {
                     "id": "srv-1/nics",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics",
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/nics",
                     "items": []
                 }
             }
@@ -87,7 +87,7 @@
         {
             "id": "srv-1",
             "type": "server",
-            "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1",
+            "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1",
             "metadata": {
                 "createdDate": "2016-10-18T07:28:05Z",
                 "createdBy": "test@test.te",
@@ -97,16 +97,16 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Test Node.",
-                "cores": 2,
-                "ram": 4096,
+                "name": "libcloud Test",
+                "cores": 1,
+                "ram": 1024,
                 "availabilityZone": "AUTO",
                 "vmState": "RUNNING",
                 "bootCdrom": null,
                 "bootVolume": {
                     "id": "bvol-1",
                     "type": "volume",
-                    "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+                    "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1",
                     "metadata": {
                         "createdDate": "2016-10-18T07:20:41Z",
                         "createdBy": "matfin@stackpointcloud.com",
@@ -116,9 +116,9 @@
                         "state": "AVAILABLE"
                     },
                     "properties": {
-                        "name": "Test Node Volume",
+                        "name": "libcloud Test",
                         "type": "HDD",
-                        "size": 10,
+                        "size": 2,
                         "image": "bvol-img",
                         "imagePassword": null,
                         "bus": "VIRTIO",
@@ -142,25 +142,25 @@
                 "cdroms": {
                     "id": "srv-1/cdroms",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms",
+                    "href": "/cloudapi/v4/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",
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/volumes",
                     "items": [
                         {
                             "id": "bvol-1",
                             "type": "volume",
-                            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1"
+                            "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1"
                         }
                     ]
                 },
                 "nics": {
                     "id": "srv-1/nics",
                     "type": "collection",
-                    "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics",
+                    "href": "/cloudapi/v4/datacenters/dc-1/servers/srv-1/nics",
                     "items": []
                 }
             }

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json b/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json
index 615dcb4..6902477 100644
--- a/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json
+++ b/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json
@@ -1,12 +1,12 @@
 {
     "id": "snapshots",
     "type": "collection",
-    "href": "/cloudapi/v3/snapshots",
+    "href": "/cloudapi/v4/snapshots",
     "items": [
         {
             "id": "sshot",
             "type": "snapshot",
-            "href": "/cloudapi/v3/snapshots/sshot",
+            "href": "/cloudapi/v4/snapshots/sshot",
             "metadata": {
                 "createdDate": "2016-10-26T11:38:45Z",
                 "createdBy": "test@test.te",

http://git-wip-us.apache.org/repos/asf/libcloud/blob/01ce1d5c/libcloud/test/compute/fixtures/profitbricks/list_volumes.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/profitbricks/list_volumes.json b/libcloud/test/compute/fixtures/profitbricks/list_volumes.json
index 6111ca1..7866ed8 100644
--- a/libcloud/test/compute/fixtures/profitbricks/list_volumes.json
+++ b/libcloud/test/compute/fixtures/profitbricks/list_volumes.json
@@ -1,12 +1,12 @@
 {
     "id": "dc-1/volumes",
     "type": "collection",
-    "href": "/cloudapi/v3/datacenters/dc-1/volumes",
+    "href": "/cloudapi/v4/datacenters/dc-1/volumes",
     "items": [
         {
             "id": "bvol-1",
             "type": "volume",
-            "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1",
+            "href": "/cloudapi/v4/datacenters/dc-1/volumes/bvol-1",
             "metadata": {
                 "createdDate": "2016-10-18T07:20:41Z",
                 "createdBy": "test@test.test",
@@ -16,7 +16,7 @@
                 "state": "AVAILABLE"
             },
             "properties": {
-                "name": "Test Volume",
+                "name": "Test",
                 "type": "HDD",
                 "size": 10,
                 "availabilityZone": "AUTO",
@@ -41,7 +41,7 @@
         {
             "id": "d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
             "type": "volume",
-            "href": "/cloudapi/v3/datacenters/dc-1/volumes/d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
+            "href": "/cloudapi/v4/datacenters/dc-1/volumes/d6688ced-700d-4c9c-a3a7-9f7170c5edc3",
             "metadata": {
                 "createdDate": "2016-10-17T13:13:36Z",
                 "createdBy": "test@test.test",
@@ -76,7 +76,7 @@
         {
             "id": "21d7e7de-5054-4041-b691-717aa8b3c799",
             "type": "volume",
-            "href": "/cloudapi/v3/datacenters/dc-1/volumes/21d7e7de-5054-4041-b691-717aa8b3c799",
+            "href": "/cloudapi/v4/datacenters/dc-1/volumes/21d7e7de-5054-4041-b691-717aa8b3c799",
             "metadata": {
                 "createdDate": "2016-10-17T11:33:20Z",
                 "createdBy": "test@test.test",