libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [03/11] libcloud git commit: 1&1 Compute Driver
Date Tue, 11 Apr 2017 00:23:57 GMT
http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/auth_error.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/auth_error.json b/libcloud/test/compute/fixtures/oneandone/auth_error.json
new file mode 100644
index 0000000..2049116
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/auth_error.json
@@ -0,0 +1,5 @@
+{
+   "type":"UNAUTHORIZED",
+   "message":"The Token you are using is not valid",
+   "errors":null
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/create_node.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/create_node.json b/libcloud/test/compute/fixtures/oneandone/create_node.json
new file mode 100644
index 0000000..8b53cdd
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/create_node.json
@@ -0,0 +1,43 @@
+{
+  "id": "E7D36EC025C73796035BF4F171379025",
+  "name": "Docs Content Test Server: CentOS 7-1",
+  "description": "My server description",
+  "status": {
+    "state": "POWERED_ON",
+    "percent": null
+  },
+  "datacenter": {
+    "id": "908DC2072407C94C8054610AD5A53B8C",
+    "country_code": "US",
+    "location": "United States of America"
+  },
+  "creation_date": "2016-05-05T17:39:50+00:00",
+  "image": {
+    "id": "B5F778B85C041347BCDCFC3172AB3F3C",
+    "name": "centos7-64std"
+  },
+  "hardware": {
+    "fixed_instance_size_id": "65929629F35BBFBA63022008F773F3EB",
+    "vcore": 1,
+    "cores_per_processor": 1,
+    "ram": 1,
+    "hdds": [
+      {
+        "id": "CDB278D95A92CB4C379A9CAAD6759F02",
+        "size": 40,
+        "is_main": true
+      }
+    ]
+  },
+  "ips": [
+    {
+      "id": "FDBE99EDD57F8596CBF71B6B64BD0A92",
+      "ip": "62.151.179.99"
+    }
+  ],
+  "dvd": null,
+  "snapshot": null,
+  "alerts": [],
+  "monitoring_policy": null,
+  "private_networks": null
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/describe_firewall_policy.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/describe_firewall_policy.json b/libcloud/test/compute/fixtures/oneandone/describe_firewall_policy.json
new file mode 100644
index 0000000..68d1960
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/describe_firewall_policy.json
@@ -0,0 +1,26 @@
+{
+  "id": "83522FC7DA9172F229E5352C587075BA",
+  "name": "My firewall policy test",
+  "description": "My firewall policy description",
+  "state": "CONFIGURING",
+  "creation_date": "2015-04-29T10:43:11+00:00",
+  "default": 0,
+  "rules": [
+    {
+      "id": "DA5CC179ED00079AE7DE595F0073D86E",
+      "protocol": "TCP",
+      "port_from": 80,
+      "port_to": 80,
+      "source": "0.0.0.0"
+    },
+    {
+      "id": "0766EC674A0CD9D4EC0FA0B07978A649",
+      "protocol": "TCP",
+      "port_from": 443,
+      "port_to": 443,
+      "source": "0.0.0.0"
+    }
+  ],
+  "server_ips": [],
+  "cloudpanel_id": "FW99AA4_7"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/describe_id_firewall_policy.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/describe_id_firewall_policy.json b/libcloud/test/compute/fixtures/oneandone/describe_id_firewall_policy.json
new file mode 100644
index 0000000..19f1cf1
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/describe_id_firewall_policy.json
@@ -0,0 +1,4 @@
+{
+  "id": "3C4F21EDFEEDD6ABB728EA5CE684E1AF",
+  "name": "Windows"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/describe_server.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/describe_server.json b/libcloud/test/compute/fixtures/oneandone/describe_server.json
new file mode 100644
index 0000000..4b1f99f
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/describe_server.json
@@ -0,0 +1,49 @@
+{
+  "id": "srv_1",
+  "cloudpanel_id": "958FA92",
+  "name": "My Server 1",
+  "description": "",
+  "datacenter": {
+    "id": "D0F6D8C8ED29D3036F94C27BBB7BAD36",
+    "location": "USA",
+    "country_code": "US"
+  },
+  "creation_date": "2015-05-04T06:32:15+00:00",
+  "first_password": "Fg52K21nz8",
+  "status": {
+    "state": "POWERED_OFF",
+    "percent": null
+  },
+  "hardware": {
+    "fixed_instance_size_id": 0,
+    "vcore": 1,
+    "cores_per_processor": 1,
+    "ram": 2,
+    "hdds": [
+    {
+      "id": "8C626C1A7005D0D1F527143C413D461E",
+      "size": 40,
+      "is_main": true
+    }
+    ]
+  },
+  "image": {
+    "id": "3C3B80327CBBD7F0023F793F666C24D0",
+    "name": "w2008r2datacenter64std"
+  },
+  "dvd": null,
+  "snapshot": null,
+  "ips": [
+  {
+    "id": "8D135204687B9CF9E79E7A93C096E336",
+    "ip": "10.4.140.213",
+    "type": "IPV4",
+    "reverse_dns": null,
+    "firewall_policy": null,
+    "load_balancers": []
+  }
+  ],
+  "alerts": [],
+  "monitoring_policy": null,
+  "private_networks": null
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/describe_shared_stoage.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/describe_shared_stoage.json b/libcloud/test/compute/fixtures/oneandone/describe_shared_stoage.json
new file mode 100644
index 0000000..bd3dcc2
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/describe_shared_stoage.json
@@ -0,0 +1,29 @@
+{
+  "id": "6AD2F180B7B666539EF75A02FE227084",
+  "size": 200,
+  "state": "ACTIVE",
+  "description": "My shared storage description",
+  "datacenter": {
+    "id": "D0F6D8C8ED29D3036F94C27BBB7BAD36",
+    "location": "USA",
+    "country_code": "US"
+  },
+  "cloudpanel_id": "vid35780",
+  "size_used": "0.00",
+  "cifs_path": "\\vid50995.nas1.lan\vid50995",
+  "nfs_path": "vid50995.nas1.lan/:vid50995",
+  "name": "My shared storage test rename",
+  "creation_date": "2015-05-06T08:33:25+00:00",
+  "servers": [
+    {
+      "id": "638ED28205B1AFD7ADEF569C725DD85F",
+      "name": "Mi servidor 1",
+      "rights": "RW"
+    },
+    {
+      "id": "39AA65F5D5B02FA02D58173094EBAF95",
+      "name": "My Server remame",
+      "rights": "R"
+    }
+  ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/ex_list_datacenters.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/ex_list_datacenters.json b/libcloud/test/compute/fixtures/oneandone/ex_list_datacenters.json
new file mode 100644
index 0000000..8fc322a
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/ex_list_datacenters.json
@@ -0,0 +1,26 @@
+[
+   {
+      "id":"81DEF28500FBC2A973FC0C620DF5B721",
+      "location":"Spain",
+      "country_code":"ES",
+      "default":0
+   },
+   {
+      "id":"908DC2072407C94C8054610AD5A53B8C",
+      "location":"United States of America",
+      "country_code":"US",
+      "default":1
+   },
+   {
+      "id":"4EFAD5836CE43ACA502FD5B99BEE44EF",
+      "location":"Germany",
+      "country_code":"DE",
+      "default":0
+   },
+   {
+      "id":"5091F6D8CBFEF9C26ACE957C652D5D49",
+      "location":"United Kingdom of Great Britain and Northern Ireland",
+      "country_code":"GB",
+      "default":0
+   }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/fixed_instance_sizes.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/fixed_instance_sizes.json b/libcloud/test/compute/fixtures/oneandone/fixed_instance_sizes.json
new file mode 100644
index 0000000..a9605dd
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/fixed_instance_sizes.json
@@ -0,0 +1,70 @@
+[
+  {
+    "name": "M",
+    "id": "8C626C1A7005D0D1F527143C413D461E",
+    "hardware": {
+      "vcore": 1,
+      "cores_per_processor": 1,
+      "ram": 1,
+      "unit": "GB",
+      "hdds": [
+        {
+          "size": 40,
+          "unit": "GB",
+          "is_main": true
+        }
+      ]
+    }
+  },
+  {
+    "name": "L",
+    "id": "8C626C1A7005D0D1F527143C413D461F",
+    "hardware": {
+      "vcore": 2,
+      "cores_per_processor": 1,
+      "ram": 2,
+      "unit": "GB",
+      "hdds": [
+        {
+          "size": 80,
+          "unit": "GiB",
+          "is_main": true
+        }
+      ]
+    }
+  },
+  {
+    "name": "XL",
+    "id": "8C626C1A7005D0D1F527143C413D4620",
+    "hardware": {
+      "vcore": 2,
+      "cores_per_processor": 1,
+      "ram": 4,
+      "unit": "GB",
+      "hdds": [
+        {
+          "size": 120,
+          "unit": "GB",
+          "is_main": true
+        }
+      ]
+    }
+  },
+  {
+    "name": "XXL",
+    "id": "8C626C1A7005D0D1F527143C413D4621",
+    "hardware": {
+      "vcore": 4,
+      "cores_per_processor": 1,
+      "ram": 8,
+      "unit": "GB",
+      "hdds": [
+        {
+          "size": 160,
+          "unit": "GiB",
+          "is_main": true
+        }
+      ]
+    }
+  }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/get_image.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/get_image.json b/libcloud/test/compute/fixtures/oneandone/get_image.json
new file mode 100644
index 0000000..cb94129
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/get_image.json
@@ -0,0 +1,24 @@
+{
+  "id": "6E1F2C70CCD3EE44ED194F4FFC47C4C9",
+  "name": "w2012r2datacenter64min",
+  "available_datacenters": [
+    "81DEF28500FBC2A973FC0C620DF5B721",
+    "908DC2072407C94C8054610AD5A53B8C",
+    "4EFAD5836CE43ACA502FD5B99BEE44EF",
+    "5091F6D8CBFEF9C26ACE957C652D5D49"
+  ],
+  "os_family": "Windows",
+  "os": "Windows2012R2",
+  "os_version": "WindowsDatacenter",
+  "os_architecture": 64,
+  "os_image_type": "MINIMAL",
+  "type": "IMAGE",
+  "min_hdd_size": 40,
+  "licenses": [
+    {
+      "name": "Windows 2012 Standard"
+    }
+  ],
+  "version": null,
+  "categories": []
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/get_server_image.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/get_server_image.json b/libcloud/test/compute/fixtures/oneandone/get_server_image.json
new file mode 100644
index 0000000..f1ad1ee
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/get_server_image.json
@@ -0,0 +1,4 @@
+{
+  "id": "76EBF29C1250167C8754B2B3D1C05F68",
+  "name": "centos7-64std"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff028ae2/libcloud/test/compute/fixtures/oneandone/list_firewall_policies.json
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/fixtures/oneandone/list_firewall_policies.json b/libcloud/test/compute/fixtures/oneandone/list_firewall_policies.json
new file mode 100644
index 0000000..1889436
--- /dev/null
+++ b/libcloud/test/compute/fixtures/oneandone/list_firewall_policies.json
@@ -0,0 +1,54 @@
+[
+  {
+    "id": "83522FC7DA9172F229E5352C587075BA",
+    "name": "My firewall policy test",
+    "description": "My firewall policy description",
+    "state": "CONFIGURING",
+    "creation_date": "2015-04-29T10:43:11+00:00",
+    "default": 0,
+    "rules": [
+      {
+        "id": "DA5CC179ED00079AE7DE595F0073D86E",
+        "protocol": "TCP",
+        "port_from": 80,
+        "port_to": 80,
+        "source": "0.0.0.0"
+      },
+      {
+        "id": "0766EC674A0CD9D4EC0FA0B07978A649",
+        "protocol": "TCP",
+        "port_from": 443,
+        "port_to": 443,
+        "source": "0.0.0.0"
+      }
+    ],
+    "server_ips": [],
+    "cloudpanel_id": "FW99AA4_7"
+  },
+  {
+    "id": "83522FC7DA9172F229E5352C587075B9",
+    "name": "My firewall policy test 2",
+    "description": "My firewall policy description",
+    "state": "CONFIGURING",
+    "creation_date": "2015-04-29T10:43:11+00:00",
+    "default": 0,
+    "rules": [
+      {
+        "id": "DA5CC179ED00079AE7DE595F0073D86F",
+        "protocol": "TCP",
+        "port_from": 80,
+        "port_to": 80,
+        "source": "0.0.0.0"
+      },
+      {
+        "id": "0766EC674A0CD9D4EC0FA0B07978A64A",
+        "protocol": "TCP",
+        "port_from": 443,
+        "port_to": 443,
+        "source": "0.0.0.0"
+      }
+    ],
+    "server_ips": [],
+    "cloudpanel_id": "FW99AA4_7"
+  }
+]
\ No newline at end of file


Mime
View raw message