Commit Graph

22 Commits

Author SHA1 Message Date
geemus a5b70181d9 [bin] consolidate 2011-01-07 15:51:16 -08:00
geemus 2c3e22f4b6 Merge branch 'brightbox'
Conflicts:
	tests/brightbox/helper.rb
	tests/brightbox/requests/compute/account_tests.rb
	tests/brightbox/requests/compute/api_client_tests.rb
	tests/brightbox/requests/compute/cloud_ip_tests.rb
	tests/brightbox/requests/compute/image_tests.rb
	tests/brightbox/requests/compute/interface_tests.rb
	tests/brightbox/requests/compute/server_tests.rb
	tests/brightbox/requests/compute/server_type_tests.rb
	tests/brightbox/requests/compute/user_tests.rb
	tests/brightbox/requests/compute/zone_tests.rb
2010-12-30 13:04:19 -08:00
geemus 3ea111c7f8 [core] fix/cleanup requires/recognizes for service
closes #113
2010-12-16 15:31:24 -08:00
Paul Thornthwaite f2f5b68645 [brightbox] Extended LoadBalancer requests 2010-12-15 18:58:31 +00:00
Paul Thornthwaite c63fc6cb4e [brightbox] Tests for remaining API requests
* Request tests for accounts, api_clients, cloud_ips, images, interfaces, server types, user and zones
* Added 'ready?' methods to CloudIp and Image models
* Reworked brightbox helper to include Format patterns for all of the
* Added "hack" to allow select objects to be one class OR NilClass for fields that may be a JSON string or null if unset
* Some tests are not enabled (commented out) because they need manual steps (such as uploading Image to your account before registration)
2010-12-09 10:45:24 -08:00
Paul Thornthwaite 734fbfaf43 Updated to match other tests
Conflicts:
	tests/brightbox/helper.rb
2010-12-09 16:01:38 +00:00
Paul Thornthwaite 6500fa46bf [brightbox] Tests for remaining API requests
* Request tests for accounts, api_clients, cloud_ips, images, interfaces, server types, user and zones
* Added 'ready?' methods to CloudIp and Image models
* Reworked brightbox helper to include Format patterns for all of the
* Added "hack" to allow select objects to be one class OR NilClass for fields that may be a JSON string or null if unset
* Some tests are not enabled (commented out) because they need manual steps (such as uploading Image to your account before registration)
2010-12-09 13:28:51 +00:00
Juris Galang c37629e742 requires and recognizes clauses for services now receives a block so that the declared parameters are applied to their Real implementation. 2010-12-08 11:09:13 -08:00
Juris Galang b9315bf7fe Added self.class_for(key) method. This allows us to inspect the requirements without having to create an instance of the service. 2010-12-08 11:08:16 -08:00
Paul Thornthwaite e355a5ccb4 [brightbox] Rough LoadBalancer model in place 2010-12-03 16:07:52 +00:00
Paul Thornthwaite 26358ecb98 [brightbox] Load Balancer requests added with tests 2010-12-03 14:39:24 +00:00
Juris Galang 827c029a99 This is a combination of 23 commits (included merges from upstream); this commit(s) include changes to enforces recognizes/requires parameters for all supported services. Comments from the included commits follow:
- Added google_storage_* keys
- Fixed indentations.
- Factored out requires and recognizes method implementation (now relies on the requires and recognizes clause from the NamedParameters module)
- Added dependency to named-parameters gem.
- Added recognizes declaration to classes for all supported services to enforce parameter name checks -
- passing an unrecognized key when instantiating a service object will now cause an ArgumentError to be raised.
- Added NOTE
- comment added
- check/filter-out keys from credentials that are not required by the class being instantiated
- [local|storage] properly write out file contents
- Added google_storage_* keys
- Fixed indentations.
- added put_object_acl request (ref: https://github.com/geemus/fog/issues#issue/74)
- Release 0.3.24
- remove tracker reference from README
- issues is now the goto for bugs/todo
- notify and gracefully skip credential-less testsa
- [rackspace|storage] fixes for directory/files
- [local|storage] CGI.escape file names
- Release 0.3.25
- updated deps; recognized_parameters -> declared_parameters; restored options filtering if Fog.bin
- Added requires/recognizes to Fog::Terremark::Ecloud
- Updted to use latest named-parameters gem.
- Filter out unwanted parameters when Fog.bin
- Updated to latest named-parameters gem
- commented out unnecessary code
- fix missing "volume" parameter error when setting Fog::AWS::Volume#server to nil (in order to detach it)
- documentation update for key_pairs and helper
- [aws|compute] commented/documented flavors/volumes
- Fixes for issue 38 and 39
Closes #96
2010-12-01 14:34:42 -08:00
geemus 5854e249aa more consistent attribute storage/usage 2010-11-19 13:45:45 -08:00
geemus 26c1e239d5 [brightbox] moving specs to tests 2010-11-16 13:24:43 -08:00
Paul Thornthwaite bc91f00f63 [brightbox] Removed Server description (obsolete field) 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 418e057650 [brightbox] Added type to Account's created_at attribute 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 1aa122cae9 [brightbox] Remove rebuild request, another no longer in API 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 42d8ba33cd [brightbox] Removed reboot action and request due to API change 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 62ea7eddc2 [brightbox] Add check in update requests to ensure some options have been passed in 2010-11-16 11:11:53 -08:00
Paul Thornthwaite cd9322ae4d [brightbox] Added check for identifiers being passed to requests to prevent requests to resource root 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 07bbc05951 [brightbox] Moved JSON parsing to request method to DRY up models, make requests easier to use 2010-11-16 11:11:53 -08:00
Paul Thornthwaite 0ec77fc5a5 [brightbox] Added support for Brightbox cloud API beta (http://beta.brightbox.com) 2010-11-16 11:11:53 -08:00