Repository: jclouds Updated Branches: refs/heads/master 52dc1a3cc -> edacad2b6
http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/regions-last.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/regions-last.json b/providers/digitalocean2/src/test/resources/regions-last.json new file mode 100644 index 0000000..d332ed8 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/regions-last.json @@ -0,0 +1,128 @@ +{ + "links" : { + "pages" : { + "first" : "https://api.digitalocean.com/v2/regions?page=1&per_page=5", + "prev" : "https://api.digitalocean.com/v2/regions?page=1&per_page=5" + } + }, + "meta" : { + "total" : 10 + }, + "regions" : [ + { + "available" : true, + "features" : [ + "virtio", + "private_networking", + "backups", + "ipv6", + "metadata" + ], + "name" : "Singapore 1", + "sizes" : [ + "32gb", + "16gb", + "2gb", + "1gb", + "4gb", + "8gb", + "512mb", + "64gb", + "48gb" + ], + "slug" : "sgp1" + }, + { + "available" : true, + "features" : [ + "virtio", + "private_networking", + "backups", + "ipv6", + "metadata" + ], + "name" : "London 1", + "sizes" : [ + "32gb", + "16gb", + "2gb", + "1gb", + "4gb", + "8gb", + "512mb", + "64gb", + "48gb" + ], + "slug" : "lon1" + }, + { + "sizes" : [ + "32gb", + "16gb", + "2gb", + "1gb", + "4gb", + "8gb", + "512mb", + "64gb", + "48gb" + ], + "name" : "New York 3", + "features" : [ + "virtio", + "private_networking", + "backups", + "ipv6", + "metadata" + ], + "available" : true, + "slug" : "nyc3" + }, + { + "available" : true, + "features" : [ + "virtio", + "private_networking", + "backups", + "ipv6", + "metadata" + ], + "name" : "Amsterdam 3", + "sizes" : [ + "32gb", + "16gb", + "2gb", + "1gb", + "4gb", + "8gb", + "512mb", + "64gb", + "48gb" + ], + "slug" : "ams3" + }, + { + "available" : true, + "features" : [ + "virtio", + "private_networking", + "backups", + "ipv6", + "metadata" + ], + "name" : "Frankfurt 1", + "sizes" : [ + "32gb", + "16gb", + "2gb", + "1gb", + "4gb", + "8gb", + "512mb", + "64gb", + "48gb" + ], + "slug" : "fra1" + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/shutdown.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/shutdown.json b/providers/digitalocean2/src/test/resources/shutdown.json new file mode 100644 index 0000000..9c03fcf --- /dev/null +++ b/providers/digitalocean2/src/test/resources/shutdown.json @@ -0,0 +1,33 @@ +{ + "action": { + "region" : { + "name" : "New York 1", + "available" : true, + "slug" : "nyc1", + "features" : [ + "virtio", + "backups", + "metadata" + ], + "sizes" : [ + "512mb", + "8gb", + "16gb", + "32gb", + "48gb", + "64gb", + "1gb", + "2gb", + "4gb" + ] + }, + "started_at" : "2015-05-19T15:17:55Z", + "status" : "in-progress", + "resource_type" : "droplet", + "resource_id" : 5347489, + "region_slug" : "nyc1", + "id" : 50900149, + "completed_at" : "2015-05-19T15:18:01Z", + "type" : "shutdown" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/sizes-first.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/sizes-first.json b/providers/digitalocean2/src/test/resources/sizes-first.json new file mode 100644 index 0000000..1ac9595 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/sizes-first.json @@ -0,0 +1,123 @@ +{ + "links" : { + "pages" : { + "next" : "https://api.digitalocean.com/v2/sizes?page=2&per_page=5", + "last" : "https://api.digitalocean.com/v2/sizes?page=2&per_page=5" + } + }, + "meta" : { + "total" : 9 + }, + "sizes" : [ + { + "vcpus" : 1, + "disk" : 20, + "price_monthly" : 5, + "regions" : [ + "nyc1", + "sgp1", + "ams1", + "sfo1", + "nyc2", + "lon1", + "nyc3", + "ams3", + "ams2", + "fra1" + ], + "price_hourly" : 0.00744, + "transfer" : 1, + "available" : true, + "slug" : "512mb", + "memory" : 512 + }, + { + "vcpus" : 1, + "disk" : 30, + "price_monthly" : 10, + "regions" : [ + "nyc2", + "sgp1", + "ams1", + "sfo1", + "lon1", + "nyc3", + "ams3", + "nyc1", + "ams2", + "fra1" + ], + "price_hourly" : 0.01488, + "transfer" : 2, + "slug" : "1gb", + "available" : true, + "memory" : 1024 + }, + { + "price_hourly" : 0.02976, + "regions" : [ + "nyc2", + "sfo1", + "ams1", + "sgp1", + "lon1", + "nyc3", + "ams3", + "nyc1", + "ams2", + "fra1" + ], + "transfer" : 3, + "available" : true, + "slug" : "2gb", + "memory" : 2048, + "vcpus" : 2, + "disk" : 40, + "price_monthly" : 20 + }, + { + "transfer" : 4, + "price_hourly" : 0.05952, + "regions" : [ + "nyc2", + "ams1", + "sgp1", + "lon1", + "nyc3", + "ams3", + "nyc1", + "ams2", + "sfo1", + "fra1" + ], + "memory" : 4096, + "slug" : "4gb", + "available" : true, + "disk" : 60, + "vcpus" : 2, + "price_monthly" : 40 + }, + { + "available" : true, + "slug" : "8gb", + "memory" : 8192, + "regions" : [ + "nyc2", + "sgp1", + "ams1", + "nyc1", + "lon1", + "nyc3", + "ams3", + "ams2", + "sfo1", + "fra1" + ], + "price_hourly" : 0.11905, + "transfer" : 5, + "price_monthly" : 80, + "vcpus" : 4, + "disk" : 80 + } + ] +} http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/sizes-last.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/sizes-last.json b/providers/digitalocean2/src/test/resources/sizes-last.json new file mode 100644 index 0000000..c5b47f7 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/sizes-last.json @@ -0,0 +1,98 @@ +{ + "meta" : { + "total" : 9 + }, + "links" : { + "pages" : { + "prev" : "https://api.digitalocean.com/v2/sizes?page=1&per_page=5", + "first" : "https://api.digitalocean.com/v2/sizes?page=1&per_page=5" + } + }, + "sizes" : [ + { + "regions" : [ + "sgp1", + "nyc1", + "nyc3", + "lon1", + "nyc2", + "ams1", + "ams3", + "ams2", + "sfo1", + "fra1" + ], + "transfer" : 6, + "price_monthly" : 160, + "available" : true, + "vcpus" : 8, + "disk" : 160, + "slug" : "16gb", + "memory" : 16384, + "price_hourly" : 0.2381 + }, + { + "price_hourly" : 0.47619, + "price_monthly" : 320, + "available" : true, + "transfer" : 7, + "regions" : [ + "nyc2", + "sgp1", + "nyc1", + "lon1", + "ams3", + "nyc3", + "ams2", + "sfo1", + "fra1" + ], + "memory" : 32768, + "slug" : "32gb", + "disk" : 320, + "vcpus" : 12 + }, + { + "price_monthly" : 480, + "available" : true, + "transfer" : 8, + "regions" : [ + "sgp1", + "nyc1", + "lon1", + "nyc2", + "ams3", + "nyc3", + "ams2", + "sfo1", + "fra1" + ], + "memory" : 49152, + "slug" : "48gb", + "disk" : 480, + "vcpus" : 16, + "price_hourly" : 0.71429 + }, + { + "price_hourly" : 0.95238, + "price_monthly" : 640, + "available" : true, + "transfer" : 9, + "regions" : [ + "sgp1", + "nyc1", + "nyc2", + "lon1", + "ams3", + "nyc3", + "ams2", + "sfo1", + "fra1" + ], + "memory" : 65536, + "slug" : "64gb", + "disk" : 640, + "vcpus" : 20 + } + ] +} http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/snapshot.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/snapshot.json b/providers/digitalocean2/src/test/resources/snapshot.json new file mode 100644 index 0000000..193d9da --- /dev/null +++ b/providers/digitalocean2/src/test/resources/snapshot.json @@ -0,0 +1,33 @@ +{ + "action": { + "region" : { + "name" : "New York 1", + "available" : true, + "slug" : "nyc1", + "features" : [ + "virtio", + "backups", + "metadata" + ], + "sizes" : [ + "512mb", + "8gb", + "16gb", + "32gb", + "48gb", + "64gb", + "1gb", + "2gb", + "4gb" + ] + }, + "started_at" : "2015-05-19T15:17:55Z", + "status" : "in-progress", + "resource_type" : "droplet", + "resource_id" : 5347489, + "region_slug" : "nyc1", + "id" : 50900149, + "completed_at" : "2015-05-19T15:18:01Z", + "type" : "snapshot" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/snapshots-first.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/snapshots-first.json b/providers/digitalocean2/src/test/resources/snapshots-first.json new file mode 100644 index 0000000..6befa29 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/snapshots-first.json @@ -0,0 +1,27 @@ +{ + "snapshots": [ + { + "id": 7938206, + "name": "nginx-fresh", + "distribution": "Ubuntu", + "slug": null, + "public": false, + "regions": [ + "nyc3", + "nyc3" + ], + "created_at": "2014-11-14T16:37:34Z", + "type": "snapshot", + "min_disk_size": 20 + } + ], + "links": { + "pages" : { + "last" : "https://api.digitalocean.com/v2/droplets/3067509/snapshots?page=2", + "next" : "https://api.digitalocean.com/v2/droplets/3067509/snapshots?page=2" + } + }, + "meta": { + "total": 2 + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/snapshots-last.json ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/snapshots-last.json b/providers/digitalocean2/src/test/resources/snapshots-last.json new file mode 100644 index 0000000..70e4162 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/snapshots-last.json @@ -0,0 +1,27 @@ +{ + "snapshots": [ + { + "id": 7938206, + "name": "nginx-fresh", + "distribution": "Ubuntu", + "slug": null, + "public": false, + "regions": [ + "nyc3", + "nyc3" + ], + "created_at": "2014-11-14T16:37:34Z", + "type": "snapshot", + "min_disk_size": 20 + } + ], + "links": { + "pages" : { + "first" : "https://api.digitalocean.com/v2/droplets/3067509/snapshots?page=1", + "prev" : "https://api.digitalocean.com/v2/droplets/3067509/snapshots?page=1" + } + }, + "meta": { + "total": 2 + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/ssh-dsa.pub ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/ssh-dsa.pub b/providers/digitalocean2/src/test/resources/ssh-dsa.pub new file mode 100644 index 0000000..3dc78e4 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/ssh-dsa.pub @@ -0,0 +1 @@ +ssh-dss AAAAB3NzaC1kc3MAAACBAK5uLwicCrFEpaVKBzkWxC7RQn+smg5ZQb5keh9RQKo8AszFTol5npgUAr0JWmqKIHv7nof0HndO86x9iIqNjq3vrz9CIVcFfZM7poKBJZ27Hv3v0fmSKfAc6eGdx8eM9UkZe1gzcLXK8UP2HaeY1Y4LlaHXS5tPi/dXooFVgiA7AAAAFQCQl6LZo/VYB9VgPEZzOmsmQevnswAAAIBCNKGsVP5eZ+IJklXheUyzyuL75i04OOtEGW6MO5TymKMwTZlU9r4ukuwxty+T9Ot2LqlNRnLSPQUjb0vplasZ8Ix45JOpRbuSvPovryn7rvS7//klu9hIkFAAQ/AZfGTw+696EjFBg4F5tN6MGMA6KrTQVLXeuYcZeRXwE5t5lwAAAIEAl2xYh098bozJUANQ82DiZznjHc5FW76Xm1apEqsZtVRFuh3V9nc7QNcBekhmHp5Z0sHthXCm1XqnFbkRCdFlX02NpgtNs7OcKpaJP47N8C+C/Yrf8qK/Wt3fExrL2ZLX5XD2tiotugSkwZJMW5Bv0mtjrNt0Q7P45rZjNNTag2c= \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds/blob/057be8df/providers/digitalocean2/src/test/resources/ssh-ecdsa.pub ---------------------------------------------------------------------- diff --git a/providers/digitalocean2/src/test/resources/ssh-ecdsa.pub b/providers/digitalocean2/src/test/resources/ssh-ecdsa.pub new file mode 100644 index 0000000..f04a852 --- /dev/null +++ b/providers/digitalocean2/src/test/resources/ssh-ecdsa.pub @@ -0,0 +1 @@ +ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBACeO2+Ci8Aw76SDF1FJyrwAp2fUhNeIgkP7G2x0SvF/yvZarOkZbCg1MAav3JobuqYZEA4GbLnoT2UK9OBAenucTgHXhEX91mQaFWe3pKqroealb7Vc059za+h6b6IfzONNhyXGpCVYlh6tUdq8y1nhGjMzIsUrma+hA1+ERJGFfGDLgA==
