fog-maestrodev 1.14.0.20130806165225 → 1.15.0.20130829165835

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/changelog.txt +296 -0
  2. data/fog.gemspec +2 -2
  3. data/lib/fog/atmos/storage.rb +0 -3
  4. data/lib/fog/aws/cdn.rb +1 -2
  5. data/lib/fog/aws/compute.rb +52 -2
  6. data/lib/fog/aws/dns.rb +0 -1
  7. data/lib/fog/aws/models/auto_scaling/groups.rb +6 -3
  8. data/lib/fog/aws/models/compute/address.rb +1 -0
  9. data/lib/fog/aws/models/compute/flavors.rb +19 -0
  10. data/lib/fog/aws/models/compute/route_table.rb +69 -0
  11. data/lib/fog/aws/models/compute/route_tables.rb +92 -0
  12. data/lib/fog/aws/models/rds/instance_option.rb +21 -0
  13. data/lib/fog/aws/models/rds/instance_options.rb +30 -0
  14. data/lib/fog/aws/parsers/compute/associate_route_table.rb +20 -0
  15. data/lib/fog/aws/parsers/compute/create_route_table.rb +75 -0
  16. data/lib/fog/aws/parsers/compute/describe_account_attributes.rb +42 -0
  17. data/lib/fog/aws/parsers/compute/describe_route_tables.rb +85 -0
  18. data/lib/fog/aws/parsers/rds/describe_orderable_db_instance_options.rb +47 -0
  19. data/lib/fog/aws/rds.rb +5 -0
  20. data/lib/fog/aws/requests/auto_scaling/describe_auto_scaling_groups.rb +9 -1
  21. data/lib/fog/aws/requests/auto_scaling/describe_policies.rb +15 -1
  22. data/lib/fog/aws/requests/compute/associate_dhcp_options.rb +2 -2
  23. data/lib/fog/aws/requests/compute/associate_route_table.rb +75 -0
  24. data/lib/fog/aws/requests/compute/attach_internet_gateway.rb +2 -2
  25. data/lib/fog/aws/requests/compute/create_route.rb +89 -0
  26. data/lib/fog/aws/requests/compute/create_route_table.rb +70 -0
  27. data/lib/fog/aws/requests/compute/create_vpc.rb +16 -1
  28. data/lib/fog/aws/requests/compute/delete_dhcp_options.rb +2 -2
  29. data/lib/fog/aws/requests/compute/delete_internet_gateway.rb +2 -2
  30. data/lib/fog/aws/requests/compute/delete_network_interface.rb +2 -2
  31. data/lib/fog/aws/requests/compute/delete_route.rb +60 -0
  32. data/lib/fog/aws/requests/compute/delete_route_table.rb +51 -0
  33. data/lib/fog/aws/requests/compute/delete_subnet.rb +2 -2
  34. data/lib/fog/aws/requests/compute/delete_vpc.rb +2 -2
  35. data/lib/fog/aws/requests/compute/describe_account_attributes.rb +49 -0
  36. data/lib/fog/aws/requests/compute/describe_route_tables.rb +87 -0
  37. data/lib/fog/aws/requests/compute/detach_internet_gateway.rb +2 -2
  38. data/lib/fog/aws/requests/compute/detach_network_interface.rb +2 -2
  39. data/lib/fog/aws/requests/compute/disassociate_route_table.rb +57 -0
  40. data/lib/fog/aws/requests/compute/reset_network_interface_attribute.rb +2 -1
  41. data/lib/fog/aws/requests/elb/create_load_balancer.rb +23 -9
  42. data/lib/fog/aws/requests/iam/upload_server_certificate.rb +1 -1
  43. data/lib/fog/aws/requests/rds/describe_orderable_db_instance_options.rb +76 -0
  44. data/lib/fog/aws/storage.rb +0 -2
  45. data/lib/fog/brightbox/models/compute/collaboration.rb +10 -2
  46. data/lib/fog/brightbox/models/compute/collaborations.rb +26 -2
  47. data/lib/fog/brightbox/models/compute/user_collaboration.rb +16 -1
  48. data/lib/fog/brightbox/models/compute/user_collaborations.rb +10 -2
  49. data/lib/fog/cloudstack/models/compute/server.rb +4 -0
  50. data/lib/fog/core/collection.rb +18 -0
  51. data/lib/fog/core/credentials.rb +6 -1
  52. data/lib/fog/google/compute.rb +17 -0
  53. data/lib/fog/google/examples/get_list_images.rb +27 -0
  54. data/lib/fog/google/examples/get_list_snapshots.rb +20 -0
  55. data/lib/fog/google/examples/image_create.rb +18 -0
  56. data/lib/fog/google/examples/launch_micro_instance.rb +10 -5
  57. data/lib/fog/google/examples/network.rb +21 -0
  58. data/lib/fog/google/models/compute/disk.rb +16 -5
  59. data/lib/fog/google/models/compute/image.rb +36 -18
  60. data/lib/fog/google/models/compute/images.rb +36 -10
  61. data/lib/fog/google/models/compute/server.rb +41 -11
  62. data/lib/fog/google/models/compute/servers.rb +1 -1
  63. data/lib/fog/google/models/compute/snapshot.rb +36 -0
  64. data/lib/fog/google/models/compute/snapshots.rb +28 -0
  65. data/lib/fog/google/requests/compute/delete_disk.rb +5 -1
  66. data/lib/fog/google/requests/compute/get_disk.rb +2 -1
  67. data/lib/fog/google/requests/compute/get_snapshot.rb +34 -0
  68. data/lib/fog/google/requests/compute/insert_disk.rb +23 -7
  69. data/lib/fog/google/requests/compute/insert_image.rb +16 -9
  70. data/lib/fog/google/requests/compute/insert_server.rb +22 -10
  71. data/lib/fog/google/requests/compute/list_disks.rb +1 -1
  72. data/lib/fog/google/requests/compute/list_snapshots.rb +30 -0
  73. data/lib/fog/google/storage.rb +1 -3
  74. data/lib/fog/hp/storage.rb +0 -2
  75. data/lib/fog/internet_archive/storage.rb +0 -2
  76. data/lib/fog/local/storage.rb +0 -2
  77. data/lib/fog/ninefold/storage.rb +0 -1
  78. data/lib/fog/openstack/models/storage/file.rb +2 -0
  79. data/lib/fog/openstack/requests/compute/add_flavor_access.rb +1 -1
  80. data/lib/fog/openstack/requests/compute/create_volume.rb +8 -7
  81. data/lib/fog/openstack/requests/compute/list_tenants_with_flavor_access.rb +1 -1
  82. data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +1 -1
  83. data/lib/fog/openstack/requests/image/create_image.rb +23 -23
  84. data/lib/fog/openstack/requests/image/update_image.rb +31 -33
  85. data/lib/fog/openstack/requests/storage/get_object_https_url.rb +3 -3
  86. data/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb +1 -1
  87. data/lib/fog/openstack/storage.rb +10 -11
  88. data/lib/fog/openstack.rb +10 -1
  89. data/lib/fog/rackspace/cdn.rb +13 -0
  90. data/lib/fog/rackspace/compute.rb +8 -4
  91. data/lib/fog/rackspace/compute_v2.rb +2 -0
  92. data/lib/fog/rackspace/databases.rb +4 -4
  93. data/lib/fog/rackspace/dns.rb +6 -6
  94. data/lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb +98 -0
  95. data/lib/fog/rackspace/load_balancers.rb +5 -4
  96. data/lib/fog/rackspace/models/compute_v2/flavors.rb +1 -2
  97. data/lib/fog/rackspace/models/compute_v2/images.rb +35 -3
  98. data/lib/fog/rackspace/models/compute_v2/metadatum.rb +2 -2
  99. data/lib/fog/rackspace/models/identity/service_catalog.rb +34 -16
  100. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +8 -3
  101. data/lib/fog/rackspace/models/monitoring/alarm.rb +16 -8
  102. data/lib/fog/rackspace/models/monitoring/base.rb +2 -8
  103. data/lib/fog/rackspace/monitoring.rb +14 -6
  104. data/lib/fog/rackspace/requests/compute_v2/list_flavors_detail.rb +39 -0
  105. data/lib/fog/rackspace/requests/compute_v2/list_images.rb +15 -5
  106. data/lib/fog/rackspace/requests/compute_v2/list_images_detail.rb +53 -0
  107. data/lib/fog/rackspace/requests/identity/create_token.rb +1 -1
  108. data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +12 -0
  109. data/lib/fog/rackspace/requests/load_balancers/get_stats.rb +31 -0
  110. data/lib/fog/rackspace/requests/monitoring/get_entity.rb +33 -0
  111. data/lib/fog/rackspace/service.rb +7 -0
  112. data/lib/fog/rackspace/storage.rb +6 -3
  113. data/lib/fog/rackspace.rb +8 -5
  114. data/lib/fog/riakcs/provisioning.rb +0 -1
  115. data/lib/fog/riakcs/usage.rb +2 -3
  116. data/lib/fog/storage.rb +2 -0
  117. data/lib/fog/vcloud/examples/README.md +54 -0
  118. data/lib/fog/vcloud/examples/creating_a_connection.md +20 -0
  119. data/lib/fog/vcloud/examples/creating_a_vapp.md +17 -0
  120. data/lib/fog/vcloud/examples/get_network_information.md +10 -0
  121. data/lib/fog/vcloud/examples/get_vapp_information.md +10 -0
  122. data/lib/fog/vcloud/examples/more_on_vapps.md +23 -0
  123. data/lib/fog/version.rb +1 -1
  124. data/lib/tasks/changelog_task.rb +1 -0
  125. data/tests/aws/models/elb/model_tests.rb +5 -0
  126. data/tests/aws/models/rds/instance_option_tests.rb +14 -0
  127. data/tests/aws/requests/compute/client_tests.rb +25 -0
  128. data/tests/aws/requests/compute/route_tests.rb +277 -0
  129. data/tests/aws/requests/rds/helper.rb +22 -0
  130. data/tests/aws/requests/rds/instance_option_tests.rb +21 -0
  131. data/tests/core/credential_tests.rb +21 -0
  132. data/tests/core/service_tests.rb +26 -0
  133. data/tests/openstack/authenticate_tests.rb +22 -0
  134. data/tests/openstack/models/storage/file_tests.rb +20 -1
  135. data/tests/openstack/requests/compute/flavor_tests.rb +27 -12
  136. data/tests/openstack/requests/compute/volume_tests.rb +10 -12
  137. data/tests/openstack/requests/image/image_tests.rb +30 -15
  138. data/tests/rackspace/block_storage_tests.rb +9 -4
  139. data/tests/rackspace/cdn_tests.rb +14 -0
  140. data/tests/rackspace/compute_tests.rb +10 -4
  141. data/tests/rackspace/compute_v2_tests.rb +9 -4
  142. data/tests/rackspace/databases_tests.rb +9 -4
  143. data/tests/rackspace/dns_tests.rb +9 -4
  144. data/tests/rackspace/helper.rb +21 -2
  145. data/tests/rackspace/identity_tests.rb +9 -4
  146. data/tests/rackspace/load_balancer_tests.rb +8 -4
  147. data/tests/rackspace/models/compute_v2/server_tests.rb +18 -21
  148. data/tests/rackspace/models/identity/service_catalog_tests.rb +54 -29
  149. data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +5 -0
  150. data/tests/rackspace/models/monitoring/alarm_examples_tests.rb +1 -1
  151. data/tests/rackspace/models/monitoring/alarm_tests.rb +2 -2
  152. data/tests/rackspace/monitoring_tests.rb +9 -4
  153. data/tests/rackspace/requests/compute_v2/flavor_tests.rb +6 -0
  154. data/tests/rackspace/requests/compute_v2/image_tests.rb +4 -0
  155. data/tests/rackspace/requests/compute_v2/server_tests.rb +2 -2
  156. data/tests/rackspace/requests/load_balancers/get_stats_tests.rb +13 -0
  157. data/tests/rackspace/requests/load_balancers/helper.rb +9 -0
  158. data/tests/rackspace/requests/monitoring/alarm_tests.rb +4 -5
  159. data/tests/rackspace/requests/monitoring/entity_tests.rb +9 -1
  160. data/tests/rackspace/requests/storage/large_object_tests.rb +12 -4
  161. data/tests/rackspace/storage_tests.rb +23 -4
  162. data/tests/rackspace/url_encoding_tests.rb +3 -1
  163. metadata +117 -133
  164. checksums.yaml +0 -15
  165. data/lib/fog/aws/parsers/compute/associate_dhcp_options.rb +0 -24
  166. data/lib/fog/aws/parsers/compute/attach_internet_gateway.rb +0 -24
  167. data/lib/fog/aws/parsers/compute/delete_dhcp_options.rb +0 -24
  168. data/lib/fog/aws/parsers/compute/delete_internet_gateway.rb +0 -24
  169. data/lib/fog/aws/parsers/compute/delete_network_interface.rb +0 -24
  170. data/lib/fog/aws/parsers/compute/delete_subnet.rb +0 -24
  171. data/lib/fog/aws/parsers/compute/delete_vpc.rb +0 -24
  172. data/lib/fog/aws/parsers/compute/detach_internet_gateway.rb +0 -24
  173. data/lib/fog/aws/parsers/compute/detach_network_interface.rb +0 -24
data/changelog.txt CHANGED
@@ -1,3 +1,299 @@
1
+ 1.15.0 08/16/2013 73c5497a16a5374b6bec2f533da872aee682a73a
2
+ ==========================================================
3
+
4
+ Stats! { 'collaborators' => 50, 'downloads' => 2932167, 'forks' => 891, 'open_issues' => 165, 'watchers' => 2679 }
5
+
6
+ MVP! Daniel Reichert
7
+
8
+ [AWS]
9
+ print out raw response string when DEBUG_RESPONSE env var is set. thanks Michael Hale
10
+
11
+ [AWS|ASG]
12
+ filtering for ASG Scaling Policies. thanks Blake Gentry
13
+ filtering for ASG Scaling Activities. thanks Blake Gentry
14
+ parse ScalingPolicy MinAdjustmentStep. thanks Blake Gentry
15
+ filtering for ASGs. thanks Blake Gentry
16
+ filter mocked results for describe_auto_scaling_groups. thanks Blake Gentry
17
+ filter mocked results for describe_auto_scaling_policies. thanks Blake Gentry
18
+
19
+ [AWS|ELB]
20
+ add ProxyProtocolPolicyType (and formatting). thanks Michael Hale
21
+ add set_load_balancer_policies_for_backend_server request. thanks Michael Hale
22
+ add support for seeing backend server descriptions. thanks Michael Hale
23
+ add support for OtherPolicies. thanks Michael Hale
24
+ fix InstancePort parsing in describe_load_balancers. thanks Michael Hale
25
+ load_balancer_tests cleanup cert from potentially failed previous test run. thanks Michael Hale
26
+ test describe_load_balancers parser directly. thanks Michael Hale
27
+ emulate AWS behavior: no BackendServerDescriptions by default. thanks Michael Hale
28
+ fix set_load_balancer_polices_for_backend mock to track set BackgroundServerDescriptions. thanks Michael Hale
29
+ update helper to include BackendServerDescriptions and OtherPolicies. thanks Michael Hale
30
+ fix backend server descriptions model test. Reload the elb to pickup the latest descriptions. thanks Michael Hale
31
+ mocks emulate AWS behavior when setting a policy for the backend server a subsequent describe is required to update the local state with the current BackendServerDescriptions. thanks Michael Hale
32
+ fix PolicyTypeNotFound error in create_load_balancer_policy mock. thanks Michael Hale
33
+ policy model and collection support creating and showing OtherPolicies. thanks Michael Hale
34
+ fetch policy descriptions for elb.policies model call. thanks Michael Hale
35
+ actually check PublicKey. thanks Michael Hale
36
+ use ['Policies']['Proper'] as the canonical mock policy store. thanks Michael Hale
37
+ remove unused bits. thanks Michael Hale
38
+ check the result of describe_load_balancer_polices for each policy by name. thanks Michael Hale
39
+ test that describe_load_balancers mocks properly formats policy results. thanks Michael Hale
40
+ restore policy.cookie and policy.expiration methods. thanks Michael Hale
41
+
42
+ [Brightbox]
43
+ Fixes service deprecations. thanks Paul Thornthwaite
44
+ Updates to collaboration models. thanks Paul Thornthwaite
45
+
46
+ [Cloudstack|Compute]
47
+ Add support for keypair and userdata when creating cloudstack vms. thanks Christophe Roux
48
+
49
+ [Vcloud]
50
+ Adding case insensitivity for set-cookie header. thanks Garima Singh
51
+
52
+ [aws|elb]
53
+ add new style default security group. thanks Eugene Howe
54
+
55
+ [aws|iam]
56
+ Make mock EntityAlreadyExists message match reality. thanks Dan Peterson
57
+
58
+ [core]
59
+ excluded :headers hash from symbolize_credentials in order to properly pass headers onto Excon. thanks Kyle Rames
60
+ exclude :headers from symbolization for real this time; added better tests; Thanks @burns!. thanks Kyle Rames
61
+
62
+ [glesys]
63
+ added options to resuse ip and/or ipv6 and description. thanks Andreas Josephson
64
+
65
+ [google]
66
+ Add support for network and external_ip. thanks Romain Vrignaud
67
+ client.images doesn't list google public images. thanks Romain Vrignaud
68
+ Add support for network and external_ip. thanks Romain Vrignaud
69
+
70
+ [google-compute-engine]
71
+ Add private_ip_address method for server. thanks Romain Vrignaud
72
+
73
+ [google|compute]
74
+ Fix insert disk to deal with changes to insert image. thanks Nat Welch
75
+ servers.get don't catch errors. thanks Romain Vrignaud
76
+ disks.all shouldn't return nil. thanks Romain Vrignaud
77
+ fix typo on disk example. thanks Romain Vrignaud
78
+ zone in disks.get is now optional. thanks Romain Vrignaud
79
+ better check on server.public_ip_address. thanks Romain Vrignaud
80
+
81
+ [misc]
82
+ Accept public_key and public_key_path when creating GCE server. thanks Akshay Moghe
83
+ Query global projects when get/list'ing compute images. thanks Akshay Moghe
84
+ Allow users to create images in GCE. thanks Akshay Moghe
85
+ Add 'status' attribute to GCE images. thanks Akshay Moghe
86
+ When 'insert'ing a disk, don't try to create an image. thanks Akshay Moghe
87
+ Add ability to get/list snapshots in GCE. thanks Akshay Moghe
88
+ Align the disk interface more closely with the API. thanks Akshay Moghe
89
+ Fix up the 'disk' api. thanks Akshay Moghe
90
+ Rackspace: add keypair support. thanks Bart Vercammen
91
+ AWS: remove logging. thanks Bart Vercammen
92
+ rackspace keypairs: add some Mocks. thanks Bart Vercammen
93
+ rename function 'get_key' => 'get_keypair'. thanks Bart Vercammen
94
+ Rackspace: add keypair support. thanks Bart Vercammen
95
+ rackspace keypairs: add some Mocks. thanks Bart Vercammen
96
+ rename function 'get_key' => 'get_keypair'. thanks Bart Vercammen
97
+ rackspace: create_server - API change: options[:keypair] takes String i.s.o. Hash (-> the keypair name). thanks Bart Vercammen
98
+ rackspace: keypairs - add unit tests. thanks Bart Vercammen
99
+ rackspace:keypairs - add 'model' unit tests. thanks Bart Vercammen
100
+ rackspace:kaypair - small corrections during unit test. thanks Bart Vercammen
101
+ rackspace: keypairs - throw Fog::Compute::RackspaceV2::NotFound when HTTP:404 received. thanks Bart Vercammen
102
+ rackspace: keypairs - additional unittests + correct keypairs.destroy behaviour. thanks Bart Vercammen
103
+ rackspace - keypairs : redo exception/no-exception logic for ::destroy and ::get functions. thanks Bart Vercammen
104
+ rackspace: keypairs - add documentation. thanks Bart Vercammen
105
+ Protect against missing fields in rackspace endpoint documents. thanks Brendan Fosberry
106
+ Added rackspace monitoring with correct namespace. thanks Daniel Reichert
107
+ Fixed file path to adhere to fog mainline. thanks Daniel Reichert
108
+ Fixing namespace transition issue. thanks Daniel Reichert
109
+ Adding monitoring tests and their required changes. thanks Daniel Reichert
110
+ Now catching errors correctly, all tests succeed. thanks Daniel Reichert
111
+ Catching errors correctly, all tests succeed. thanks Daniel Reichert
112
+ Adding progress on check tests. thanks Daniel Reichert
113
+ Cleaned up tests, removed ternary operators. thanks Daniel Reichert
114
+ Check tests now working, dns info required to run. thanks Daniel Reichert
115
+ Switched check from dns to http remote request. thanks Daniel Reichert
116
+ Added list tests, helper formats. Cleaned check_tests. thanks Daniel Reichert
117
+ Consolidated list tests, added alarm tests. thanks Daniel Reichert
118
+ Added alarm list and alarm get tests. thanks Daniel Reichert
119
+ Removed unneeded testing group. thanks Daniel Reichert
120
+ Adding alarm example list, get, and evaluate tests. thanks Daniel Reichert
121
+ Adding agent tests. thanks Daniel Reichert
122
+ Adding list data points tests. thanks Daniel Reichert
123
+ Removed redundant test from comments. thanks Daniel Reichert
124
+ Added rackspace monitoring with correct namespace. thanks Daniel Reichert
125
+ Fixed file path to adhere to fog mainline. thanks Daniel Reichert
126
+ Fixing namespace transition issue. thanks Daniel Reichert
127
+ Adding monitoring tests and their required changes. thanks Daniel Reichert
128
+ Now catching errors correctly, all tests succeed. thanks Daniel Reichert
129
+ Catching errors correctly, all tests succeed. thanks Daniel Reichert
130
+ Adding progress on check tests. thanks Daniel Reichert
131
+ Cleaned up tests, removed ternary operators. thanks Daniel Reichert
132
+ Check tests now working, dns info required to run. thanks Daniel Reichert
133
+ Switched check from dns to http remote request. thanks Daniel Reichert
134
+ Added list tests, helper formats. Cleaned check_tests. thanks Daniel Reichert
135
+ Consolidated list tests, added alarm tests. thanks Daniel Reichert
136
+ Added alarm list and alarm get tests. thanks Daniel Reichert
137
+ Removed unneeded testing group. thanks Daniel Reichert
138
+ Adding alarm example list, get, and evaluate tests. thanks Daniel Reichert
139
+ Adding delete agent token coverage of api. thanks Daniel Reichert
140
+ Adding test coverage of deleting agent tokens. thanks Daniel Reichert
141
+ Re-adding tests from rebase. thanks Daniel Reichert
142
+ Adding alarm delete coverage of API. thanks Daniel Reichert
143
+ Adding alarm delete test coverage. thanks Daniel Reichert
144
+ Forgot to add underscore for test groups. thanks Daniel Reichert
145
+ Removing bad Failure test. thanks Daniel Reichert
146
+ WIP: Adding get tests for checks. thanks Daniel Reichert
147
+ Completed: get_check tests now working. thanks Daniel Reichert
148
+ Completed: get_entity tests implemented and passing. thanks Daniel Reichert
149
+ Removing list_entites failure test. thanks Daniel Reichert
150
+ forgot to return test group to original value. thanks Daniel Reichert
151
+ Removing test group. thanks Daniel Reichert
152
+ add support for openstack network quota endpoints. thanks Evan Petrie
153
+ fixes #1434 : How to use vcloud fog services. thanks Garima Singh
154
+ Fixed an uninitialized constant error. thanks Hongbin Lu
155
+ Add request/parser for DescribeOperableDBInstanceOptions. thanks James Bence
156
+ Return boolean, not index of match. thanks James Bence
157
+ Add model, collection for instance_options. thanks James Bence
158
+ Use correct filters in RDS model instance_options 'all' method. thanks James Bence
159
+ Set up tests (and make them pass) for orderable_db_instance_options. thanks James Bence
160
+ Adjust number of items returned for test. thanks James Bence
161
+ Remove failure test; non-existent engine sometimes has options. thanks James Bence
162
+ add(rackspace monitoring): list notification plans. thanks Jay Faulkner
163
+ test(rackspace_monitoring): Add specific test group. thanks Jay Faulkner
164
+ tests(list_notification_plans): Added basic tests. thanks Jay Faulkner
165
+ fix(tests): ArgumentError + NoMethodError are const. thanks Jay Faulkner
166
+ migrate(auth -> v2): Authenticate via 2.0 API. thanks Jay Faulkner
167
+ fix(alarm_tests): Use npTechnicalContactsEmail. thanks Jay Faulkner
168
+ add(rackspace monitoring): list notification plans. thanks Jay Faulkner
169
+ test(rackspace_monitoring): Add specific test group. thanks Jay Faulkner
170
+ tests(list_notification_plans): Added basic tests. thanks Jay Faulkner
171
+ fix(tests): ArgumentError + NoMethodError are const. thanks Jay Faulkner
172
+ migrate(auth -> v2): Authenticate via 2.0 API. thanks Jay Faulkner
173
+ add(notice): Direct future developers to old repo. thanks Jay Faulkner
174
+ fix for token timeout on cdn. thanks Jon Holt
175
+ Tests for reauthentication in CDN. thanks Jon Holt
176
+ Allow to configure server#scp and server#ssh on the instance level. thanks Jonas Pfenniger
177
+ Fixes issue where Net::SSH would only use the "password" authentication method. thanks Jonas Pfenniger
178
+ add support for m3.xlarge and m3.2xlarge instance flavors. thanks Kevin McFadden
179
+ removing coveralls support for Ruby 1.9.2 in hopes of fixing #1921. thanks Kyle Rames
180
+ removing coveralls support for Ruby 1.9.2 in hopes of fixing #1921 take two. thanks Kyle Rames
181
+ try 3 in removing coveralls for ruby 1.9.2. thanks Kyle Rames
182
+ trying to disable coveralls. thanks Kyle Rames
183
+ rebasing with master. thanks Kyle Rames
184
+ updating monitoring service to recognize rackspace_region. thanks Kyle Rames
185
+ trying one more times to disable coveralls on 1.9.2. thanks Kyle Rames
186
+ Adds light documentation for GCE and GCS. thanks Nat Welch
187
+ A set of smoke tests for GCE. thanks Nat Welch
188
+ fix some small bugs in the gce smoke tests. thanks Nat Welch
189
+ some more small bugs in the GCE examples. thanks Nat Welch
190
+ Be alittle more specific in the footer of Google Readme. thanks Nat Welch
191
+ Make public_url function easier to read and change acl request to deal with nokogiri changes. thanks Nat Welch
192
+ Examples tweak. thanks Nat Welch
193
+ remove networks. thanks Nat Welch
194
+ Fix some issues with GCE examples and disk requests. thanks Nat Welch
195
+ Fix comments in Google snapshot example. thanks Nat Welch
196
+ Renamed Fog::AWS::SES::Real#verify_domain to #verify_domain_identity. thanks Postmodern
197
+ Fix all in Fog::Compute::Servers. thanks Romain Vrignaud
198
+ Fix Fog::Compute::Google::Flavor all method. thanks Romain Vrignaud
199
+ Add a parameter to servers.all for rackspace v2 to make it the same as other providers. thanks Sam Kottler
200
+ Remove whitespace from the Rackspace V2 test. thanks Sam Kottler
201
+ Fix #server so that it returns the right server instead of all servers. thanks Shay Bergmann
202
+ Changing the non-ascii dash in the url. thanks Steve Frank
203
+ use params instead of prep. thanks Thomas Cate
204
+ Add VPC security groups to the RDS instances. thanks Timur Alperovich
205
+ [aws|rds]: PubliclyAccessible is boolean. thanks Timur Alperovich
206
+ remove dependency on active_support's present? method. thanks Toby Hede
207
+ Cleanup and refactor digitalocean integration. thanks Trae Robrock
208
+ Whitespace. thanks Trae Robrock
209
+ Whitespace, fix tests for running in non mock mode, and clean up in non mock mode. thanks Trae Robrock
210
+ digitalocean supports bootstrap. thanks Trae Robrock
211
+ Fix digitalocean server test. thanks Trae Robrock
212
+ Add digitalocean mock key to run these tests on travis. thanks Trae Robrock
213
+ Add ip_address to the mock. thanks Trae Robrock
214
+ Remove mock server from servers list on destroy. thanks Trae Robrock
215
+ Adding exception from net-ssh 2.6 that occurs during bootstrap as sshd is just starting up. thanks Trae Robrock
216
+ Add mock for dnsimple and fix tests for non mock mode. thanks Trae Robrock
217
+ Add mock and test for get_record. thanks Trae Robrock
218
+ Correct record creation response. thanks Trae Robrock
219
+ Return a 404 if the domain does no exist. thanks Trae Robrock
220
+ Add proper error message to 404. thanks Trae Robrock
221
+ handle zone with no records. thanks Trae Robrock
222
+ Handle missing record case. thanks Trae Robrock
223
+ Use the zone id for record creation. thanks Trae Robrock
224
+ Fix mock for creation by id. thanks Trae Robrock
225
+ Use the id for deletion also. thanks Trae Robrock
226
+ Use id for record update. thanks Trae Robrock
227
+ Add ip_address method back, but deprecate it. thanks Trae Robrock
228
+ Allow v1 auth for OpenStack. thanks Yauheni Kryudziuk
229
+ fix inner/outer variable shadowing. thanks geemus
230
+ random ip address support. thanks mlincoln
231
+ lib/fog/cloudstack/models/compute/servers.rb must check for nil before checking for empty. thanks torake.fransson
232
+
233
+ [openstack|compute]
234
+ update volume tests. thanks Brian D. Burns
235
+ update flavor tests. thanks Brian D. Burns
236
+
237
+ [openstack|image]
238
+ strip unused headers in #update_image. thanks Brian D. Burns
239
+
240
+ [openstack|storage]
241
+ put_object with request_block can not be idempotent. thanks Brian D. Burns
242
+ added the ability to upload files using blocks in the same manner as the Rackspace provider. thanks Kyle Rames
243
+ updating object tests to support ruby 1.8.7. thanks Kyle Rames
244
+ Added temporary signed URL support. thanks Yauheni Kryudziuk
245
+
246
+ [rackspace]
247
+ refined authentication endpoint tests. thanks Kyle Rames
248
+ updated exceptions to include the service transaction id if available. thanks Kyle Rames
249
+ added transaction id to monitoring exceptions; passing service into slurp for compute, databases, dns and load balancers. thanks Kyle Rames
250
+ fixing broken tests. thanks Kyle Rames
251
+
252
+ [rackspace|compute_v2]
253
+ renaming keypairs to key_pairs to match other compute implementations. thanks Kyle Rames
254
+
255
+ [rackspace|identity]
256
+ added error handling to make service catalog more robust. thanks Kyle Rames
257
+ fixing broken service catalog test. thanks Kyle Rames
258
+
259
+ [rackspace|monitoring]
260
+ WIP initial commit of alarm example tests. thanks Daniel Reichert
261
+ Adding alarm examples tests. thanks Daniel Reichert
262
+ Adding alarm example tests. thanks Daniel Reichert
263
+ WIP Initial commit of alarm tests. thanks Daniel Reichert
264
+ Adding alarm example(s) tests. thanks Daniel Reichert
265
+ Adding working alarm tests. thanks Daniel Reichert
266
+ Adding support required for tests to pass. thanks Daniel Reichert
267
+ Correcting entity destroy logic. thanks Daniel Reichert
268
+ Fixing entity destroy logic. thanks Daniel Reichert
269
+ Addding Alarms and Check-Types tests. thanks Daniel Reichert
270
+ Adding mocks pending indication. thanks Daniel Reichert
271
+ Update Alarm bug fixed, uncommenting test. thanks Daniel Reichert
272
+ updating to re-authenticate token on expiration; adding monitoring authentication tests. thanks Kyle Rames
273
+ updating to use fog conventions. thanks Kyle Rames
274
+ adding model tests for agent_token, check, and entity; added destroy method to agent_token and check models; updated models to retrieve identity from header value 'X-Object-ID'; updated check model to take an entity object or id. thanks Kyle Rames
275
+ removing bad test per @irdan. thanks Kyle Rames
276
+ adding model tests for metrics and data points. thanks Kyle Rames
277
+ updated monitoring tests to skip sleeping if we are running in mocked mode. thanks Kyle Rames
278
+ fixing broken monitoring test. thanks Kyle Rames
279
+ replaced entity_id and check_id attributes with entity and check attributes; removed entity_id from base module. thanks Kyle Rames
280
+
281
+ [rackspace|storage]
282
+ put_object with request_block can not be idempotent. thanks Brian D. Burns
283
+
284
+ [vsphere]
285
+ Raise NotFound exception when Datacenter or Template is not found. thanks Carlos Sanchez
286
+ Make mock data consistent across operations. thanks Carlos Sanchez
287
+ searchIndex.FindByUuid datacenter parameter must be a RbVmomi::VIM::Datacenter. thanks Carlos Sanchez
288
+ Need to turn off vm and wait until off before destroying. thanks Carlos Sanchez
289
+ Fix NoMethodError: undefined method in list_virtual_machines. thanks Carlos Sanchez
290
+
291
+ [xenserver]
292
+ Added support to get VM by uuid. thanks Celso Fernandes
293
+ Console model created. thanks Gustavo Villalta
294
+ Consoles collection created. thanks Gustavo Villalta
295
+
296
+
1
297
  1.14.0 07/19/2013 b9f1659ebd45c84db011c71b53cc581a1b7ac7e1
2
298
  ==========================================================
3
299
 
data/fog.gemspec CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'fog-maestrodev'
9
- s.version = '1.14.0.20130806165225'
10
- s.date = '2013-08-06'
9
+ s.version = '1.15.0.20130829165835'
10
+ s.date = '2013-08-29'
11
11
  s.rubyforge_project = 'fog'
12
12
 
13
13
  ## Make sure your summary is short. The description may be as long
@@ -66,7 +66,6 @@ module Fog
66
66
  include Utils
67
67
 
68
68
  def initialize(options={})
69
- require 'mime/types'
70
69
  setup_credentials(options)
71
70
  end
72
71
 
@@ -80,8 +79,6 @@ module Fog
80
79
  include Utils
81
80
 
82
81
  def initialize(options={})
83
- require 'mime/types'
84
-
85
82
  setup_credentials(options)
86
83
  @connection_options = options[:connection_options] || {}
87
84
  @hmac = Fog::HMAC.new('sha1', @storage_secret_decoded)
data/lib/fog/aws/cdn.rb CHANGED
@@ -47,7 +47,6 @@ module Fog
47
47
  end
48
48
 
49
49
  def initialize(options={})
50
- require 'mime/types'
51
50
  @use_iam_profile = options[:use_iam_profile]
52
51
  setup_credentials(options)
53
52
  end
@@ -181,7 +180,7 @@ EOF
181
180
  params[:headers]['Date'] = Fog::Time.now.to_date_header
182
181
  params[:headers]['x-amz-security-token'] = @aws_session_token if @aws_session_token
183
182
  params[:headers]['Authorization'] = "AWS #{@aws_access_key_id}:#{signature(params)}"
184
- params[:path] = "/#{@version}/#{params[:path]}"
183
+ params[:path] = "/#{@version}/#{params[:path]}"
185
184
  @connection.request(params, &block)
186
185
  end
187
186
 
@@ -26,6 +26,8 @@ module Fog
26
26
  collection :key_pairs
27
27
  model :network_interface
28
28
  collection :network_interfaces
29
+ model :route_table
30
+ collection :route_tables
29
31
  model :security_group
30
32
  collection :security_groups
31
33
  model :server
@@ -48,6 +50,7 @@ module Fog
48
50
  request :associate_address
49
51
  request :associate_dhcp_options
50
52
  request :attach_network_interface
53
+ request :associate_route_table
51
54
  request :attach_internet_gateway
52
55
  request :attach_volume
53
56
  request :authorize_security_group_ingress
@@ -58,6 +61,8 @@ module Fog
58
61
  request :create_key_pair
59
62
  request :create_network_interface
60
63
  request :create_placement_group
64
+ request :create_route
65
+ request :create_route_table
61
66
  request :create_security_group
62
67
  request :create_snapshot
63
68
  request :create_spot_datafeed_subscription
@@ -73,6 +78,8 @@ module Fog
73
78
  request :delete_network_interface
74
79
  request :delete_security_group
75
80
  request :delete_placement_group
81
+ request :delete_route
82
+ request :delete_route_table
76
83
  request :delete_snapshot
77
84
  request :delete_spot_datafeed_subscription
78
85
  request :delete_subnet
@@ -80,6 +87,7 @@ module Fog
80
87
  request :delete_volume
81
88
  request :delete_vpc
82
89
  request :deregister_image
90
+ request :describe_account_attributes
83
91
  request :describe_addresses
84
92
  request :describe_availability_zones
85
93
  request :describe_dhcp_options
@@ -91,6 +99,7 @@ module Fog
91
99
  request :describe_key_pairs
92
100
  request :describe_network_interface_attribute
93
101
  request :describe_network_interfaces
102
+ request :describe_route_tables
94
103
  request :describe_placement_groups
95
104
  request :describe_regions
96
105
  request :describe_reserved_instances_offerings
@@ -108,6 +117,7 @@ module Fog
108
117
  request :detach_internet_gateway
109
118
  request :detach_volume
110
119
  request :disassociate_address
120
+ request :disassociate_route_table
111
121
  request :get_console_output
112
122
  request :get_password_data
113
123
  request :import_key_pair
@@ -192,7 +202,15 @@ module Fog
192
202
  }
193
203
  ],
194
204
  'ownerId' => owner_id
195
- }
205
+ },
206
+ 'amazon-elb-sg' => {
207
+ 'groupDescription' => 'amazon-elb-sg',
208
+ 'groupName' => 'amazon-elb-sg',
209
+ 'groupId' => 'amazon-elb',
210
+ 'ownerId' => 'amazon-elb',
211
+ 'ipPermissionsEgree' => [],
212
+ 'ipPermissions' => [],
213
+ },
196
214
  },
197
215
  :network_interfaces => {},
198
216
  :snapshots => {},
@@ -205,7 +223,34 @@ module Fog
205
223
  :subnets => [],
206
224
  :vpcs => [],
207
225
  :dhcp_options => [],
208
- :internet_gateways => []
226
+ :internet_gateways => [],
227
+ :route_tables => [],
228
+ :account_attributes => [
229
+ {
230
+ "values" => ["5"],
231
+ "attributeName" => "vpc-max-security-groups-per-interface"
232
+ },
233
+ {
234
+ "values" => ["20"],
235
+ "attributeName" => "max-instances"
236
+ },
237
+ {
238
+ "values" => ["EC2", "VPC"],
239
+ "attributeName" => "supported-platforms"
240
+ },
241
+ {
242
+ "values" => ["none"],
243
+ "attributeName" => "default-vpc"
244
+ },
245
+ {
246
+ "values" => ["5"],
247
+ "attributeName" => "max-elastic-ips"
248
+ },
249
+ {
250
+ "values" => ["5"],
251
+ "attributeName" => "vpc-max-elastic-ips"
252
+ }
253
+ ]
209
254
  }
210
255
  end
211
256
  end
@@ -256,6 +301,11 @@ module Fog
256
301
  images
257
302
  end
258
303
 
304
+ def ec2_compatibility_mode(enabled=true)
305
+ values = enabled ? ["EC2", "VPC"] : ["VPC"]
306
+ self.data[:account_attributes].detect { |h| h["attributeName"] == "supported-platforms" }["values"] = values
307
+ end
308
+
259
309
  def apply_tag_filters(resources, filters, resource_id_key)
260
310
  tag_set_fetcher = lambda {|resource| self.data[:tag_sets][resource[resource_id_key]] }
261
311
 
data/lib/fog/aws/dns.rb CHANGED
@@ -45,7 +45,6 @@ module Fog
45
45
  end
46
46
 
47
47
  def initialize(options={})
48
- require 'mime/types'
49
48
  @use_iam_profile = options[:use_iam_profile]
50
49
  setup_credentials(options)
51
50
  @region = options[:region]
@@ -4,19 +4,22 @@ module Fog
4
4
  module AWS
5
5
  class AutoScaling
6
6
  class Groups < Fog::Collection
7
-
8
7
  model Fog::AWS::AutoScaling::Group
9
8
 
9
+ attribute :filters
10
+
10
11
  # Creates a new auto scaling group.
11
12
  def initialize(attributes={})
13
+ self.filters = attributes
12
14
  super
13
15
  end
14
16
 
15
- def all
17
+ def all(filters = filters)
16
18
  data = []
17
19
  next_token = nil
20
+ self.filters = filters
18
21
  loop do
19
- result = service.describe_auto_scaling_groups('NextToken' => next_token).body['DescribeAutoScalingGroupsResult']
22
+ result = service.describe_auto_scaling_groups(filters.merge('NextToken' => next_token)).body['DescribeAutoScalingGroupsResult']
20
23
  data += result['AutoScalingGroups']
21
24
  next_token = result['NextToken']
22
25
  break if next_token.nil?
@@ -9,6 +9,7 @@ module Fog
9
9
  identity :public_ip, :aliases => 'publicIp'
10
10
 
11
11
  attribute :allocation_id, :aliases => 'allocationId'
12
+ attribute :association_id, :aliases => 'associationId'
12
13
  attribute :server_id, :aliases => 'instanceId'
13
14
  attribute :network_interface_id, :aliases => 'networkInterfaceId'
14
15
  attribute :domain
@@ -20,6 +20,9 @@ module Fog
20
20
  { :bits => 64, :cores => 13, :disk => 850, :id => 'm2.2xlarge', :name => 'High Memory Double Extra Large', :ram => 35020.8},
21
21
  { :bits => 64, :cores => 26, :disk => 1690, :id => 'm2.4xlarge', :name => 'High Memory Quadruple Extra Large', :ram => 70041.6},
22
22
 
23
+ { :bits => 64, :cores => 13, :disk => 0, :id => 'm3.xlarge', :name => 'M3 Extra Large', :ram => 15360},
24
+ { :bits => 64, :cores => 26, :disk => 0, :id => 'm3.2xlarge', :name => 'M3 Double Extra Large', :ram => 30720},
25
+
23
26
  { :bits => 64, :cores => 35, :disk => 2048, :id => "hi1.4xlarge", :name => "High I/O Quadruple Extra Large Instance", :ram => 61952},
24
27
 
25
28
  { :bits => 64, :cores => 33.5, :disk => 1690, :id => 'cc1.4xlarge', :name => 'Cluster Compute Quadruple Extra Large', :ram => 23552},
@@ -130,6 +133,22 @@ module Fog
130
133
  # name="Cluster Compute Quadruple Extra Large",
131
134
  # ram=23552
132
135
  # >,
136
+ # <Fog::Compute::AWS::Flavor
137
+ # id="m3.xlarge",
138
+ # bits=64,
139
+ # cores=13,
140
+ # disk=0,
141
+ # name="M3 Extra Large",
142
+ # ram=15360
143
+ # >,
144
+ # <Fog::Compute::AWS::Flavor
145
+ # id="m3.2xlarge",
146
+ # bits=64,
147
+ # cores=26,
148
+ # disk=0,
149
+ # name="M3 Double Extra Large",
150
+ # ram=30720
151
+ # >,
133
152
  # <Fog::AWS::Compute::Flavor
134
153
  # id="cc2.8xlarge",
135
154
  # bits=64,
@@ -0,0 +1,69 @@
1
+ require 'fog/core/model'
2
+
3
+ module Fog
4
+ module Compute
5
+ class AWS
6
+
7
+ class RouteTable < Fog::Model
8
+
9
+ identity :id, :aliases => 'routeTableId'
10
+
11
+ attribute :vpc_id, :aliases => 'vpcId'
12
+ attribute :routes, :aliases => 'routeSet'
13
+ attribute :associations, :aliases => 'associationSet'
14
+ attribute :tags, :aliases => 'tagSet'
15
+
16
+
17
+ def initialize(attributes={})
18
+ super
19
+ end
20
+
21
+ # Remove an existing route table
22
+ #
23
+ # route_tables.destroy
24
+ #
25
+ # ==== Returns
26
+ #
27
+ # True or false depending on the result
28
+ #
29
+
30
+ def destroy
31
+ requires :id
32
+
33
+ service.delete_route_table (id)
34
+ true
35
+ end
36
+
37
+ # Create a route table
38
+ #
39
+ # >> routetable = connection.route_tables.new
40
+ # >> routetable.save
41
+ #
42
+ # == Returns:
43
+ #
44
+ # True or an exception depending on the result. Keep in mind that this *creates* a new route table.
45
+ #
46
+
47
+ def save
48
+ requires :vpc_id
49
+
50
+ data = service.create_route_table(vpc_id).body['routeTable'].first
51
+ new_attributes = data.reject {|key,value| key == 'requestId'}
52
+ merge_attributes(new_attributes)
53
+ true
54
+ end
55
+
56
+ private
57
+
58
+ def associationSet=(new_association_set)
59
+ merge_attributes(new_association_set.first || {})
60
+ end
61
+
62
+ def routeSet=(new_route_set)
63
+ merge_attributes(new_route_set || {})
64
+ end
65
+
66
+ end
67
+ end
68
+ end
69
+ end