Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BAE5200BD1 for ; Mon, 14 Nov 2016 05:18:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A6DB160B12; Mon, 14 Nov 2016 04:18:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C1AA160B13 for ; Mon, 14 Nov 2016 05:18:02 +0100 (CET) Received: (qmail 54301 invoked by uid 500); 14 Nov 2016 04:18:02 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 54177 invoked by uid 500); 14 Nov 2016 04:18:01 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 54171 invoked by uid 99); 14 Nov 2016 04:18:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2016 04:18:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9F000E3813; Mon, 14 Nov 2016 04:18:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anthonyshaw@apache.org To: commits@libcloud.apache.org Date: Mon, 14 Nov 2016 04:18:03 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/9] libcloud git commit: [LIBCLOUD-873] Updated ProfitBricks Compute Driver (REST api v3) archived-at: Mon, 14 Nov 2016 04:18:05 -0000 http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_lans.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_lans.json b/libcloud/test/compute/fixtures/profitbricks/ex_list_lans.json new file mode 100644 index 0000000..ede4187 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_lans.json @@ -0,0 +1,157 @@ +{ + "id": "dc-1/lans", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/lans", + "items": [ + { + "id": "1", + "type": "lan", + "href": "/cloudapi/v3/datacenters/dc-1/lans/1", + "metadata": { + "createdDate": "2016-10-24T08:03:22Z", + "createdBy": "test@test.te", + "etag": "1c30221454228d239f0610b6eb3f41d7", + "lastModifiedDate": "2016-10-24T08:03:22Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Switch for LAN 1", + "public": false + }, + "entities": { + "nics": { + "id": "1/nics", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/lans/1/nics", + "items": [ + { + "id": "dc5e1c66-7280-4a5c-8e13-51ce030e0980", + "type": "nic", + "href": "/cloudapi/v3/datacenters/dc-1/servers/d37abf6b-0980-4bf8-813b-b69863cf7b9e/nics/dc5e1c66-7280-4a5c-8e13-51ce030e0980", + "metadata": { + "createdDate": "2016-10-21T13:00:02Z", + "createdBy": "test@test.te", + "etag": "d8177b9c38b0366d26c28df0066ade9e", + "lastModifiedDate": "2016-10-24T08:03:22Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Three", + "mac": "02:01:49:87:3e:5f", + "ips": [ + "10.15.104.14" + ], + "dhcp": true, + "lan": 1, + "firewallActive": true, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "dc5e1c66-7280-4a5c-8e13-51ce030e0980/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/d37abf6b-0980-4bf8-813b-b69863cf7b9e/nics/dc5e1c66-7280-4a5c-8e13-51ce030e0980/firewallrules" + } + } + }, + { + "id": "912324a6-c057-445d-84dd-8fea82dfa719", + "type": "nic", + "href": "/cloudapi/v3/datacenters/dc-1/servers/811ab72b-f7f3-427b-8220-f031eae34f63/nics/912324a6-c057-445d-84dd-8fea82dfa719", + "metadata": { + "createdDate": "2016-10-21T13:00:02Z", + "createdBy": "test@test.te", + "etag": "d8177b9c38b0366d26c28df0066ade9e", + "lastModifiedDate": "2016-10-24T08:03:22Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Two", + "mac": "02:01:af:48:34:06", + "ips": [ + "10.15.104.13" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "912324a6-c057-445d-84dd-8fea82dfa719/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/811ab72b-f7f3-427b-8220-f031eae34f63/nics/912324a6-c057-445d-84dd-8fea82dfa719/firewallrules" + } + } + }, + { + "id": "8d9fb87c-79f7-4c3c-8f7b-e2050a881b16", + "type": "nic", + "href": "/cloudapi/v3/datacenters/dc-1/servers/b1a64861-5819-498a-899a-a57126050952/nics/8d9fb87c-79f7-4c3c-8f7b-e2050a881b16", + "metadata": { + "createdDate": "2016-10-21T13:00:02Z", + "createdBy": "test@test.te", + "etag": "d8177b9c38b0366d26c28df0066ade9e", + "lastModifiedDate": "2016-10-24T08:03:22Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Four", + "mac": "02:01:7c:7b:0b:5a", + "ips": [ + "10.15.104.12" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "8d9fb87c-79f7-4c3c-8f7b-e2050a881b16/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/b1a64861-5819-498a-899a-a57126050952/nics/8d9fb87c-79f7-4c3c-8f7b-e2050a881b16/firewallrules" + } + } + }, + { + "id": "76d7965d-19e5-491f-8b2f-1c4a3ef127b5", + "type": "nic", + "href": "/cloudapi/v3/datacenters/dc-1/servers/77ef2301-b4df-46aa-8544-2dae76c9d7b5/nics/76d7965d-19e5-491f-8b2f-1c4a3ef127b5", + "metadata": { + "createdDate": "2016-10-21T13:00:02Z", + "createdBy": "test@test.te", + "etag": "eb2031a5e259fcb4f714646aca0282c6", + "lastModifiedDate": "2016-10-24T08:03:22Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Five", + "mac": "02:01:bb:ad:7d:58", + "ips": [ + "10.15.104.11" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "76d7965d-19e5-491f-8b2f-1c4a3ef127b5/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/77ef2301-b4df-46aa-8544-2dae76c9d7b5/nics/76d7965d-19e5-491f-8b2f-1c4a3ef127b5/firewallrules" + } + } + } + ] + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..bdd7ec3 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balanced_nics.json @@ -0,0 +1,69 @@ +{ + "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", + "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": "Test network interface", + "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-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", + "metadata": { + "createdDate": "2016-10-17T16:46:38Z", + "createdBy": "test@test.te", + "etag": "dbd8216137cf0ec9951170f93fa8fa54", + "lastModifiedDate": "2016-10-17T19:19:43Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Another test network interface", + "mac": "02:01:0b:9d:4d:dd", + "ips": [ + "10.15.124.12" + ], + "dhcp": false, + "lan": 2, + "firewallActive": true, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "8f7ea845-cf40-49c8-9e93-68366f31d605/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules" + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..ffb3ef0 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_load_balancers.json @@ -0,0 +1,216 @@ +{ + "id": "dc-2/loadbalancers", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers", + "items": [ + { + "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", + "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", + "metadata": { + "createdDate": "2016-10-26T13:02:33Z", + "createdBy": "test@test.te", + "etag": "20e915cf08106b7576f6b25b5c0a2bd6", + "lastModifiedDate": "2016-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:33:58:8d:e1", + "ips": [ + "162.254.25.6" + ], + "dhcp": true, + "lan": 3, + "firewallActive": false, + "nat": false + }, + "entities": { + "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" + } + } + } + ] + } + } + }, + { + "id": "24d24a20-1161-4870-8b49-434622a18875", + "type": "loadbalancer", + "href": "/cloudapi/v3/datacenters/dc-2/loadbalancers/24d24a20-1161-4870-8b49-434622a18875", + "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 Two", + "ip": "162.254.25.225", + "dhcp": true + }, + "entities": { + "balancednics": { + "id": "24d24a20-1161-4870-8b49-434622a18875/balancednics", + "type": "collection", + "href": "/cloudapi/v3/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", + "metadata": { + "createdDate": "2016-10-25T08:49:48Z", + "createdBy": "test@test.te", + "etag": "20e915cf08106b7576f6b25b5c0a2bd6", + "lastModifiedDate": "2016-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:6f:92:d0:63", + "ips": [ + "162.254.25.225" + ], + "dhcp": true, + "lan": 5, + "firewallActive": false, + "nat": false + }, + "entities": { + "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" + } + } + }, + { + "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", + "metadata": { + "createdDate": "2016-10-25T14:01:03Z", + "createdBy": "test@test.te", + "etag": "20e915cf08106b7576f6b25b5c0a2bd6", + "lastModifiedDate": "2016-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:ce:53:f1:1a", + "ips": [ + "162.254.25.225" + ], + "dhcp": true, + "lan": 5, + "firewallActive": false, + "nat": false + }, + "entities": { + "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" + } + } + }, + { + "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", + "metadata": { + "createdDate": "2016-10-25T15:36:06Z", + "createdBy": "test@test.te", + "etag": "20e915cf08106b7576f6b25b5c0a2bd6", + "lastModifiedDate": "2016-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:8b:77:cd:b6", + "ips": [ + "162.254.25.225" + ], + "dhcp": true, + "lan": 5, + "firewallActive": false, + "nat": false + }, + "entities": { + "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" + } + } + }, + { + "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", + "metadata": { + "createdDate": "2016-10-25T14:01:03Z", + "createdBy": "test@test.te", + "etag": "20e915cf08106b7576f6b25b5c0a2bd6", + "lastModifiedDate": "2016-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:00:65:da:a9", + "ips": [ + "162.254.25.225" + ], + "dhcp": true, + "lan": 5, + "firewallActive": false, + "nat": false + }, + "entities": { + "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" + } + } + } + ] + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..bdd7ec3 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.json @@ -0,0 +1,69 @@ +{ + "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", + "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": "Test network interface", + "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-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", + "metadata": { + "createdDate": "2016-10-17T16:46:38Z", + "createdBy": "test@test.te", + "etag": "dbd8216137cf0ec9951170f93fa8fa54", + "lastModifiedDate": "2016-10-17T19:19:43Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Another test network interface", + "mac": "02:01:0b:9d:4d:dd", + "ips": [ + "10.15.124.12" + ], + "dhcp": false, + "lan": 2, + "firewallActive": true, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "8f7ea845-cf40-49c8-9e93-68366f31d605/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules" + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.xml b/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.xml deleted file mode 100644 index 7164f22..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_list_network_interfaces.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - c2df1871-6aac-458e-ad1a-ef3f530cb7aa - 26 - 6b38a4f3-b851-4614-9e3a-5ddff4727727 - StackPointCloud - 3 - false - 234f0cf9-1efc-4ade-b829-036456584116 - 10.14.96.11 - 162.254.26.14 - 162.254.26.15 - 02:01:40:47:90:04 - - false - e93f74b2-d969-4b7d-8fad-3931b85dbc4d - - d6f7e726-c13d-464c-b454-cae726dac75d - ANY - 1.2.3.4 - 1.2.3.4 - - - 87773a01-b7e2-481e-8a44-d5ffac830292 - ICMP - - 6b38a4f3-b851-4614-9e3a-5ddff4727727 - AVAILABLE - - true - AVAILABLE - - - c2df1871-6aac-458e-ad1a-ef3f530cb7aa - 26 - 47e3b2ce-7846-41cc-8404-1475190e89a3 - 3 - false - 7fb5d34c-77c2-4452-b7b2-274fa0f46327 - 10.14.96.12 - 02:01:fe:1c:81:73 - - false - d3d1d8b9-0dd5-4866-8429-a1817be7b6e9 - 47e3b2ce-7846-41cc-8404-1475190e89a3 - AVAILABLE - - true - AVAILABLE - - - c2df1871-6aac-458e-ad1a-ef3f530cb7aa - 26 - cbd00ace-d210-43e8-8cb7-097ad6b33e82 - 1 - true - 234f0cf9-1efc-4ade-b829-036456584116 - 208.94.38.110 - 02:01:e9:20:cd:81 - - false - a1a2e1da-7672-4a5c-af62-6c37edaffd26 - cbd00ace-d210-43e8-8cb7-097ad6b33e82 - INPROCESS - - true - 208.94.38.1 - AVAILABLE - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..bfb2d5b --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_rename_datacenter.json @@ -0,0 +1,46 @@ +{ + "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" : "BUSY" + }, + "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" + }, + "volumes" : { + "id": "dc-1/volumes", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/volumes" + }, + "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" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..badfd0a --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_set_inet_access.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-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/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_start_node.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_start_node.xml b/libcloud/test/compute/fixtures/profitbricks/ex_start_node.xml deleted file mode 100644 index f83d6a4..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_start_node.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 3494585 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_stop_node.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_stop_node.xml b/libcloud/test/compute/fixtures/profitbricks/ex_stop_node.xml deleted file mode 100644 index f83d6a4..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_stop_node.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 3494585 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_update_datacenter.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_datacenter.xml b/libcloud/test/compute/fixtures/profitbricks/ex_update_datacenter.xml deleted file mode 100644 index 270aa41..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_update_datacenter.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - 3325148 - d96dfafc-9a8c-4c0e-8a0c-857a15db572d - 3 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..f6d13ef --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_firewall_rule.json @@ -0,0 +1,25 @@ +{ + "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": "BUSY" + }, + "properties": { + "name": "HTTPs (SSL)", + "protocol": "TCP", + "sourceMac": null, + "sourceIp": null, + "targetIp": null, + "icmpCode": null, + "icmpType": null, + "portRangeStart": 443, + "portRangeEnd": 443 + } +} + http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..32db4ce --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_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": "2016-11-11T15:23:20Z", + "lastModifiedBy": "test@test.te", + "state": "BUSY" + }, + "properties": { + "name": "my-updated-image.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_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 new file mode 100644 index 0000000..27b841d --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_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 Updated 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_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 new file mode 100644 index 0000000..0705e68 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_load_balancer.json @@ -0,0 +1,18 @@ +{ + "id": "bal-1", + "type": "loadbalancer", + "href": "/cloudapi/v3/datacenters/dc-1/loadbalancers/bal-1", + "metadata": { + "createdDate": "2019-10-26T13:02:33Z", + "createdBy": "test@test.te", + "etag": "71e8df57a58615b9e15400ede4138b41", + "lastModifiedDate": "2019-10-26T13:02:33Z", + "lastModifiedBy": "test@test.te", + "state": "BUSY" + }, + "properties": { + "name": "Updated Load Balancer", + "ip": "123.124.125.126", + "dhcp": false + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..d0fb880 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.json @@ -0,0 +1,31 @@ +{ + "id": "nic-1", + "type": "nic", + "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1", + "metadata": { + "createdDate": "2016-10-17T15:46:38Z", + "createdBy": "test@test.te", + "etag": "23dd052b608b59be38cef62765af7039", + "lastModifiedDate": "2016-10-19T09:29:00Z", + "lastModifiedBy": "test@test.te", + "state": "BUSY" + }, + "properties": { + "name": "Updated from LibCloud", + "mac": "02:01:0b:9d:4d:ce", + "ips": [ + "10.15.124.11" + ], + "dhcp": true, + "lan": 1, + "firewallActive": true, + "nat": false + }, + "entities": { + "firewallrules": { + "id": "nic-1/firewallrules", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/s-3/nics/nic-1/firewallrules" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.xml b/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.xml deleted file mode 100644 index f9f8e0d..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_update_network_interface.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - 3665310 - aab9454d-c442-4d06-9dd7-7c6121ae5ca2 - 3 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..6df459d --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_node.json @@ -0,0 +1,45 @@ +{ + "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" : "BUSY" + }, + "properties" : { + "name" : "A test node", + "cores" : 1, + "ram" : 512, + "bootCdrom" : null, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "bvol-1", + "type": "volume", + "href": "/cloudapi/v3/datacenters/dc-1/volumes/bvol-1" + }, + "cpuFamily" : "AMD_OPTERON" + }, + "entities" : { + "cdroms": { + "id": "srv-1/cdroms", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/cdroms" + }, + "volumes": { + "id": "srv-1/volumes", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/volumes" + }, + "nics": { + "id": "srv-1/nics", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/ex_update_node.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_node.xml b/libcloud/test/compute/fixtures/profitbricks/ex_update_node.xml deleted file mode 100644 index 03693a7..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_update_node.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - 3623299 - c2df1871-6aac-458e-ad1a-ef3f530cb7aa - 18 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..f37024e --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_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": "Updated snapshot", + "description": "Updated snapshot", + "location": "us/las", + "size": 10, + "cpuHotPlug": true, + "cpuHotUnplug": true, + "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_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 new file mode 100644 index 0000000..d0eab6a --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/ex_update_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_update_volume.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.xml b/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.xml deleted file mode 100644 index 03693a7..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/ex_update_volume.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - 3623299 - c2df1871-6aac-458e-ad1a-ef3f530cb7aa - 18 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..f7d718c --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/list_images.json @@ -0,0 +1,199 @@ +{ + "id": "images", + "type": "collection", + "href": "/cloudapi/v3/images", + "items": [ + { + "id": "img-2", + "type": "image", + "href": "/cloudapi/v3/images/img-2", + "metadata": { + "createdDate": "2016-06-02T11:33:49Z", + "createdBy": "System", + "etag": "9909709d99655c6f31aca789998d7d89", + "lastModifiedDate": "2016-06-02T11:33:49Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-One-CDROM", + "description": "", + "location": "us/las", + "size": 0.23, + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX", + "imageType": "CDROM", + "public": false + } + }, + { + "id": "img-1", + "type": "image", + "href": "/cloudapi/v3/images/img-1", + "metadata": { + "createdDate": "2014-11-14T15:22:19Z", + "createdBy": "System", + "etag": "957e0eac7456fa7554e73bf0d18860eb", + "lastModifiedDate": "2014-11-14T15:22:19Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-Two-CDROM", + "description": "", + "location": "us/las", + "size": 4, + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "OTHER", + "imageType": "CDROM", + "public": true + } + }, + { + "id": "62c525d9-b2cf-11e5-afa0-52540066fee9", + "type": "image", + "href": "/cloudapi/v3/images/62c525d9-b2cf-11e5-afa0-52540066fee9", + "metadata": { + "createdDate": "2016-01-04T10:39:08Z", + "createdBy": "System", + "etag": "28cb3e31d2ef98d37b367fe15d40373e", + "lastModifiedDate": "2016-01-04T10:39:08Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-Three-CDROM", + "description": "", + "location": "de/fkb", + "size": 0.37, + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX", + "imageType": "CDROM", + "public": true + } + }, + { + "id": "e2c323ba-3c6d-11e6-9336-52540005ab80", + "type": "image", + "href": "/cloudapi/v3/images/e2c323ba-3c6d-11e6-9336-52540005ab80", + "metadata": { + "createdDate": "2016-06-27T13:48:53Z", + "createdBy": "System", + "etag": "216e2beb5e9bb5f7c3233ca3d0c4e9b2", + "lastModifiedDate": "2016-06-27T13:48:53Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-Four-HDD", + "description": "", + "location": "de/fkb", + "size": 0.28, + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "OTHER", + "imageType": "HDD", + "public": false + } + }, + { + "id": "f1d2be4a-7937-11e4-8053-52540066fee9", + "type": "image", + "href": "/cloudapi/v3/images/f1d2be4a-7937-11e4-8053-52540066fee9", + "metadata": { + "createdDate": "2014-12-01T08:56:31Z", + "createdBy": "System", + "etag": "fd23753bfae52a11bbdfdd478296cb2a", + "lastModifiedDate": "2014-12-01T08:56:31Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-Two-HDD", + "description": "", + "location": "de/fkb", + "size": 0.45, + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX", + "imageType": "HDD", + "public": true + } + }, + { + "id": "dfa08a48-7937-11e4-8053-52540066fee9", + "type": "image", + "href": "/cloudapi/v3/images/dfa08a48-7937-11e4-8053-52540066fee9", + "metadata": { + "createdDate": "2014-12-01T08:56:00Z", + "createdBy": "System", + "etag": "66da22f2893f1de8945c27e11bbc7ebf", + "lastModifiedDate": "2014-12-01T08:56:00Z", + "lastModifiedBy": "System", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test-Image-Three-HDD", + "description": "", + "location": "de/fra", + "size": 0.08, + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "licenceType": "LINUX", + "imageType": "HDD", + "public": true + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/libcloud/test/compute/fixtures/profitbricks/list_images.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/list_images.xml b/libcloud/test/compute/fixtures/profitbricks/list_images.xml deleted file mode 100644 index 3c8ac7b..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/list_images.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - false - 03b6c3e7-f2ad-11e3-a036-52540066fee9 - windows-2012-r2-server-2014-06 - 11264 - HDD - false - WINDOWS - true - NORTH_AMERICA - true - - - true - cd59b162-0289-11e4-9f63-52540066fee9 - Debian-7-server-2014-07-01 - 2048 - HDD - true - LINUX - true - NORTH_AMERICA - true - - - true - d2f627c4-0289-11e4-9f63-52540066fee9 - CentOS-6-server-2014-07-01 - 2048 - HDD - true - LINUX - true - NORTH_AMERICA - true - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..7694c22 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/list_locations.json @@ -0,0 +1,43 @@ +{ + "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 http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..1f30a8c --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/list_nodes.json @@ -0,0 +1,169 @@ +{ + "id": "dc-1/servers", + "type": "collection", + "href": "/cloudapi/v3/datacenters/9e9cb896-e8e7-4f52-a808-ac808baac814/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.te", + "etag": "e7cf186125f51f3d9511754a40dcd12c", + "lastModifiedDate": "2016-10-18T07:28:05Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "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": "matfin@stackpointcloud.com", + "etag": "33f6b8d506e7ad756e8554b915f29c61", + "lastModifiedDate": "2016-10-18T07:20:41Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test Node 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" + } + ] + }, + "nics": { + "id": "srv-1/nics", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-1/servers/srv-1/nics", + "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.te", + "etag": "e7cf186125f51f3d9511754a40dcd12c", + "lastModifiedDate": "2016-10-18T07:28:05Z", + "lastModifiedBy": "matfin@stackpointcloud.com", + "state": "AVAILABLE" + }, + "properties": { + "name": "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": "matfin@stackpointcloud.com", + "etag": "33f6b8d506e7ad756e8554b915f29c61", + "lastModifiedDate": "2016-10-18T07:20:41Z", + "lastModifiedBy": "test@test.te", + "state": "AVAILABLE" + }, + "properties": { + "name": "Test Node 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" + } + ] + }, + "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/list_nodes.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/list_nodes.xml b/libcloud/test/compute/fixtures/profitbricks/list_nodes.xml deleted file mode 100644 index c392d25..0000000 --- a/libcloud/test/compute/fixtures/profitbricks/list_nodes.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - c8e57d7b-e731-46ad-a913-1828c0562246 - server001 - 1 - 1024 - true - 10.13.198.11 - 162.254.25.197 - 10.10.108.12 - - true - VIRTIO - 1 - 50 - b07d7c20-8cd4-4502-aab1-c0195b7f18a1 - server001-storage001 - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - 7fb08916-eb64-40b8-a081-fafe0e374145 - 2 - false - c8e57d7b-e731-46ad-a913-1828c0562246 - 10.10.108.12 - 02:01:b9:a5:81:d9 - - false - 27062b18-aab9-4046-9071-c375121fdcd4 - 7fb08916-eb64-40b8-a081-fafe0e374145 - AVAILABLE - - true - AVAILABLE - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - 3f980c78-89b7-4f65-8e5d-28abc2f158aa - 3 - false - c8e57d7b-e731-46ad-a913-1828c0562246 - 10.13.198.11 - 02:01:7f:31:2f:71 - - false - b644fbfd-ff6f-4ba5-882c-d0478f327819 - 3f980c78-89b7-4f65-8e5d-28abc2f158aa - AVAILABLE - - true - AVAILABLE - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - 8df3ec08-b6f7-4038-85eb-da6620d31aa5 - 1 - true - c8e57d7b-e731-46ad-a913-1828c0562246 - 162.254.25.197 - 02:01:1f:9c:f3:24 - - false - 0bd04380-b4f3-4013-96a2-d71d134fd895 - 8df3ec08-b6f7-4038-85eb-da6620d31aa5 - AVAILABLE - - true - 162.254.25.1 - AVAILABLE - - AVAILABLE - RUNNING - 2014-07-14T20:52:20.839Z - 2014-07-14T22:11:09.324Z - LINUX - ZONE_1 - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - 7080c05b-1a91-4661-a217-60d864acee44 - server002 - 1 - 1024 - false - 10.13.198.12 - 10.10.108.11 - - true - VIRTIO - 1 - 50 - b96f49f6-c1d3-4250-8135-35c17c827657 - server002-storage001 - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - f1e0a1c6-329b-4629-b95b-ba81a30a4d73 - 2 - false - 7080c05b-1a91-4661-a217-60d864acee44 - 10.10.108.11 - 02:01:58:5e:9a:3c - - false - 263d5a2c-c95b-4903-b290-a33cb47616c4 - f1e0a1c6-329b-4629-b95b-ba81a30a4d73 - AVAILABLE - - true - AVAILABLE - - - e1e8ec0d-b47f-4d39-a91b-6e885483c899 - 5 - 847c50c7-d7dc-4fe6-8216-e05dc7ea7b18 - 3 - false - 7080c05b-1a91-4661-a217-60d864acee44 - 10.13.198.12 - 02:01:1e:32:2f:40 - - false - 35c42660-94d5-483d-aca7-8e6e97507508 - 847c50c7-d7dc-4fe6-8216-e05dc7ea7b18 - AVAILABLE - - true - AVAILABLE - - AVAILABLE - RUNNING - 2014-07-14T21:40:12.265Z - 2014-07-14T22:11:09.324Z - LINUX - AUTO - - - 6571ecd4-8602-4692-ae14-2f85eedbc403 - 2 - c9b9b603-65a3-4f11-bd24-ff1b494a85e2 - server001 - 1 - 1024 - false - - true - VIRTIO - 1 - 50 - 06dad54e-85b2-4146-ab15-ef55cb121921 - Storage - - AVAILABLE - RUNNING - 2014-07-14T21:06:21.421Z - 2014-07-14T21:06:21.421Z - LINUX - ZONE_2 - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/2569a5f2/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 new file mode 100644 index 0000000..615dcb4 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/list_snapshots.json @@ -0,0 +1,37 @@ +{ + "id": "snapshots", + "type": "collection", + "href": "/cloudapi/v3/snapshots", + "items": [ + { + "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": "Balancer Testing 1 Storage-Snapshot-10/26/2016", + "description": "Created from \"Balancer Testing 1 Storage\" in Data Center \"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/list_volumes.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/profitbricks/list_volumes.json b/libcloud/test/compute/fixtures/profitbricks/list_volumes.json new file mode 100644 index 0000000..6111ca1 --- /dev/null +++ b/libcloud/test/compute/fixtures/profitbricks/list_volumes.json @@ -0,0 +1,112 @@ +{ + "id": "dc-1/volumes", + "type": "collection", + "href": "/cloudapi/v3/datacenters/dc-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": "Test 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 + } + }, + { + "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": null, + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": null + } + }, + { + "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 + } + } + ] +} \ No newline at end of file