1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

3188 commits

Author SHA1 Message Date
Caius Durling
ceb5a6d73e Adding update_firewall_rule request 2011-12-26 12:27:19 +00:00
Paul Thornthwaite
d49f6b418f [Brightbox] Updated format test to use correct link name 2011-11-21 16:31:09 +00:00
Paul Thornthwaite
2344163ecb [Brightbox] Updated Server output format
Zone may be null if Server is deleted.
2011-11-21 15:18:43 +00:00
Paul Thornthwaite
4f268d2a8e Merge branch 'master' into brightbox 2011-11-17 16:55:36 +00:00
Paul Thornthwaite
f203e99fb1 Merge branch 'bb_test_enhancements' 2011-11-17 16:42:26 +00:00
Paul Thornthwaite
1bb1c049a0 [brightbox] Request test for snapshotting a server 2011-11-17 16:42:00 +00:00
Paul Thornthwaite
d7fa80f702 [brightbox] Load balancer request tests expanded 2011-11-17 16:41:59 +00:00
Paul Thornthwaite
0971fdc2cd [brightbox] Replace duplicate remove with move test
* Still leaves group empty to allow deletion
2011-11-17 16:41:59 +00:00
Paul Thornthwaite
e7af149bb7 [brightbox] ServerGroup association to Servers 2011-11-17 16:41:59 +00:00
Paul Thornthwaite
4577a80010 [brightbox] Correctly get Server's IP addresses as strings 2011-11-17 16:41:31 +00:00
Paul Thornthwaite
bea5bfe80a [brightbox] Make Cloud IP model's map nicer to use
* API accepts a load balancer or interface ID
* Model accepts a Server and figures out a suitable interface
2011-11-17 16:41:31 +00:00
Paul Thornthwaite
6fb4247c07 [brightbox] Updated default Ubuntu image 2011-11-17 16:41:30 +00:00
Paul Thornthwaite
3ce68e47d1 [brightbox] Test update of reverse DNS for CIP 2011-11-17 16:41:30 +00:00
Paul Thornthwaite
254123791b [brightbox] Test and fix for API client secret reset
* Wasn't loaded although code in place
* Test format and check output isn't nil
2011-11-17 16:41:30 +00:00
Paul Thornthwaite
e418c6540e [brightbox] Revised tests structure 2011-11-17 16:41:29 +00:00
Paul Thornthwaite
5fe0d6c57f [brightbox] Helper to get a test server ready
* Standard timeout
* Errors if reported as failed by API
2011-11-17 16:41:29 +00:00
Paul Thornthwaite
75f53bd6a9 [brightbox] Dynamically select testing image 2011-11-17 16:41:29 +00:00
Paul Thornthwaite
e073fcffb4 [brightbox] Corrected deprecated argument 2011-11-17 16:41:29 +00:00
Paul Thornthwaite
180426bbfd Merge branch 'bb_updates'
Conflicts:
	tests/brightbox/requests/compute/helper.rb
2011-11-17 16:40:45 +00:00
Paul Thornthwaite
bd748367c1 [Brightbox] Updates to format tests 2011-11-17 15:15:50 +00:00
Wesley Beary
d8eec86bb9 Merge pull request from bgentry/master
Fix exceptions from nil credential value
2011-11-16 15:10:21 -08:00
Blake Gentry
1eec967a09 [core] fix exceptions from nil credential value 2011-11-16 15:08:32 -08:00
Wesley Beary
5cb1428bed Merge pull request from hunner/symbolize_credential_input
[core] `@credential` should always be a symbol
2011-11-16 10:19:09 -08:00
Hunter Haugen
d25b39405f [core] @credential should always be a symbol
Similar to , say your ~/.fog had multiple stanzas:

```yaml
:default:
  :aws_access_key_id: aaa
test:
  :aws_access_key_id: bbb
:prod:
  :aws_access_key_id: ccc
```

By default, fog will look for either the credential *symbol* `:default` or for the *string* stored in `FOG_CREDENTIAL` (in `lib/fog/core/credentials.rb` method `self.credential`). When the fog credentials file given above is read in, it’s passed through `self.symbolize_credentials` which makes *symbols* out of all the keys (so `prod`, `test`, and `default` will all be symbols) and saves the list to credentials then looks for `credentials[credential]` which is indexing a string in a hash of symbols.

Any value that `@credential` is set to should be a symbol, because the hash keys will only be symbols.
2011-11-16 09:51:43 -08:00
Wesley Beary
40e2c2b133 Merge pull request from arvida/fix-s3-get-acl-mocks
[AWS] Fix S3 get acl mocks
2011-11-15 13:43:56 -08:00
Anton Lindström
0d926a1a47 [glesys|compute] fixed tests due to changes in the api 2011-11-14 18:47:55 +01:00
Arvid Andersson
19d5be3daf Ensuring that get_object_acl and get_bucket_acl mock methods returns a hash representation of the ACL 2011-11-14 10:45:51 +01:00
Arvid Andersson
2c9aab802d Added acl_to_hash helper method to Fog::Storage::AWS
* Added test for acl_to_hash
* Renamed hash_to_acl.rb to acl_utils.rb
2011-11-14 10:45:51 +01:00
Arvid Andersson
a72f7175a0 Enabled tests for setting S3 ACL by id and uri on buckets and objects when mocking 2011-11-14 10:45:51 +01:00
Jeff McCune
2bf79e8dae Merge pull request from jeffmccune/feature/master/10644_vsphere_compute_speed_improvement
[vsphere|compute] Add servers filter to improve clone performance
2011-11-13 14:45:05 -08:00
Jeff McCune
a36f3888e3 [vsphere] () Add servers filter to improve clone performance
The behavior without this patch is that the performance of the vm_clone
operation in unacceptably slow for VMware vCenter deployments with
multiple hundreds of virtual machines.

Performance is unacceptable because the vm_clone operation makes
multiple API calls to list _all_ of the VM's in the inventory.  This
patch eliminates the need to list all VM's by adding path and folder
filters to limit our API calls to subtrees of the VMware inventory.

= API Changes =

 * New datacenters request that caches the Datacenter objects for the
   life of the process.
 * New clone() method on the server model that returns a server model of
   the new VM even if it is not yet done cloning.
 * Ability to limit collections to inventory paths by passing the
 * 'folder' filter to the servers collection.  For example:
   `conn = Fog::Compute[:vsphere];
    conn.servers('path' => '/Datacenters/DC1/vm/Templates')`
   this filter will greatly reduce the number of SOAP API calls by
   limiting the server models in the collection to only those in the
   Templates inventory folder.  Note, this is not recursive yet.

= Tests =

Tests have been updated.  The vm_clone request no longer takes an
instance_uuid because we cannot actually use this to search the
inventory efficiently.  Instead, the vm_clone request now requires a
path attribute to allow Fog to search only a subset of the inventory.
2011-11-12 09:39:14 -08:00
geemus
cf84d2d4be Release 1.1.1 2011-11-11 15:48:46 -06:00
geemus
a468aa9a34 [core] loosen net-ssh dependency to avoid chef conflict
closes 
2011-11-11 15:46:22 -06:00
geemus
6039318b87 1.1.0 changelog 2011-11-11 15:42:56 -06:00
geemus
b706c7ed66 Release 1.1.0 2011-11-11 15:11:58 -06:00
geemus
8fdbb8dc78 tshirt offer should be implicit, rather than explicit 2011-11-11 15:06:02 -06:00
Wesley Beary
2852a79144 Merge pull request from brianhartsock/master
[dns] Made model tests use uniq domain names
2011-11-11 07:57:25 -08:00
Wesley Beary
4238370129 Merge pull request from brianhartsock/issue/604/rs_lb_endpoint_name
[rackspace|load_balancers] made lb endpoint configurable
2011-11-11 07:36:30 -08:00
Brian Hartsock
b1986c7447 [rackspace|load_balancers] made lb endpoint configurable 2011-11-11 10:25:31 -05:00
Brian Hartsock
85cebef1cb [dns] Made model tests use uniq domain names 2011-11-10 20:56:32 -05:00
Brian Hartsock
34ee799ee7 [rackspace|dns] Adapted to changes in callback mechanism 2011-11-10 20:53:00 -05:00
Brian Hartsock
ef9fae38d6 [rackspace|dns] Fixed request tests that need unique domain name 2011-11-10 19:34:04 -05:00
geemus
36691a946b [aws|compute] update ami for windows 2011-11-10 11:35:53 -06:00
Wesley Beary
cbc016440f Merge pull request from arvida/fix-remove-puts-in-parsers-cdn-get-invalidation-list
Removed puts of element name
2011-11-10 06:40:17 -08:00
Arvid Andersson
a90fe3d178 Removed puts of element name 2011-11-10 15:11:36 +01:00
geemus
499e4bada6 [brightbox|compute] format fixes for tests 2011-11-09 14:47:32 -06:00
Wesley Beary
efcef8972b Merge pull request from nate/feature/unmocking
Feature/unmocking
2011-11-09 11:40:39 -08:00
Nathan Sutton
b7d5f5181b Adding documentation for Fog.unmock! and Fog::Mock.reset 2011-11-09 11:33:51 -08:00
Nathan Sutton
eb86ba780b Adding a method to unmock Fog. Addresses issue 2011-11-09 11:30:33 -08:00
geemus
cb3942d633 [aws] add us-west-2 region 2011-11-09 11:57:48 -06:00