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

5177 commits

Author SHA1 Message Date
Nelvin Driz
64da603d09 [openstack] Fix Test
There seems to be a difference in results coming from these two:

export FOG_MOCK=true && bundle exec shindont +openstack
FOG_MOCK=true shindo tests/openstack/requests/compute/security_group_tests.rb

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-12-05 14:45:37 +08:00
Nelvin Driz
b6d68a6c8c [openstack] Update Mocks and Cleanup Unused Code
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-12-04 16:11:54 +08:00
Wesley Beary
bdbe9db916 Merge pull request from mikehale/asg-next-token
[AWS|cloud_watch] Add Metrics#each, which follows NextToken
2012-12-03 23:12:40 -08:00
Wesley Beary
d3d644460b Merge pull request from mikehale/asg-mocks
Asg mocks
2012-12-03 23:11:22 -08:00
Michael Hale
37602b147c [aws|auto_scaling] remove pending if mocking? for model_tests 2012-12-03 13:19:47 -05:00
Michael Hale
70e8739c0f [AWS|cloud_watch] Add Metrics#each, which follows NextToken 2012-12-03 12:58:43 -05:00
Michael Hale
2572d8381f [aws|auto_scaling] Implement suspend_processes mock 2012-12-03 11:38:06 -05:00
Michael Hale
c3608d7d93 [aws|auto_scaling] Implement resume_processes mock 2012-12-03 11:37:19 -05:00
Dan Prince
145b917cdf Merge pull request from Keoven/update/quota-mocks
[openstack|compute] Update Quota Mocks based on Folsom Stable
2012-12-03 07:03:15 -08:00
Nelvin Driz
fbbe0f0447 [openstack|compute] Update Quota Mocks based on Folsom Stable
Basis:
https://github.com/openstack/nova/blob/stable/folsom/nova/quota.py#L34

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-12-03 15:38:54 +08:00
geemus
1ec99a295c Release 1.8.0 2012-12-01 16:51:32 -06:00
Wesley Beary
057c0c525a Merge pull request from timuralp/multidelete
Multidelete
2012-12-01 09:52:54 -08:00
Wesley Beary
17f7c787fc README: s/'cloud computing'/'cloud services' 2012-11-30 12:18:14 -06:00
Dan Prince
32f592cccf Merge pull request from dprince/openstack_security_group_test_fixes
OpenStack: security group test fixes.
2012-11-30 09:09:55 -08:00
Dan Prince
db77300076 OpenStack: security group test fixes.
Update the OpenStack security group test to support the correct
format for create_security_group responses. This patch
removes the extra [] wrapping the response and makes it so the
real tests run once again.

Also updates the existing Mock for create_security_response so
it handles it properly as well.
2012-11-29 21:30:58 -05:00
Dan Prince
e4b382d8ac Merge pull request from dprince/openstack_quota_test_fixes
OpenStack: updates to quota tests.
2012-11-29 16:58:06 -08:00
geemus
26b7de8ef7 [aws|dynamodb] port off of sts for credentials, now uses signature v4 2012-11-29 16:25:49 -06:00
Dan Prince
f80b21acf2 OpenStack: updates to quota tests.
Updates to the OpenStack quota tests to support the latest
changes in Folsom/Grizzly. With these changes I am able to run
the *real* tests again with the latest upstream OpenStack builds.

This change has no functional effect on Fog users for previous
releases of OpenStack (Folsom, etc,) but should allow us to
support the latest upstream codebase and run Fog *real* tests again.
2012-11-29 15:54:44 -05:00
Dan Prince
93086cee2a Merge pull request from dprince/openstack_limit_test_fixes
OpenStack: Remove volumes from limits tests.
2012-11-29 12:11:19 -08:00
Wesley Beary
01ca2a690f Merge pull request from virtualstaticvoid/iam_create_user_fix
Creating user via `Aws.iam.users` ignores `:path`
2012-11-29 11:35:07 -08:00
VirtualStaticVoid
1a9989e886 revised test order 2012-11-29 20:51:16 +02:00
VirtualStaticVoid
de60286958 added support for mock 2012-11-29 20:14:57 +02:00
Dan Prince
f8f22ea4e1 OpenStack: Remove volumes from limits tests.
OpenStack Grizzly no longer supports volumes. This removes
the volume settings from the OpenStack limits tests and Mock
.

This change has will has no effect on users of previous of
Fog for previous releases (Folsom, etc) but should allow
us to easily support the latest upstream codebase and run
Fog *real* tests.
2012-11-29 13:02:49 -05:00
Dan Prince
e2e2cdf0e1 Merge pull request from dprince/openstack_address_test_fixes
OpenStack floating_ip (aka address) test fixes
2012-11-29 09:55:00 -08:00
VirtualStaticVoid
2f2aa769b9 added test for create logic to default path to '/' 2012-11-29 18:42:35 +02:00
VirtualStaticVoid
e7fae46361 revised create logic to default path to '/' 2012-11-29 18:37:36 +02:00
Paul Thornthwaite
c6518ee3b1 Merge pull request from brightbox/refresh_tokens
[Brightbox] Refresh tokens
2012-11-29 08:31:22 -08:00
Paul Thornthwaite
5d03a2398c [Brightbox] Guards unimplemented mock tests
This guards the newer tests just added that rely on unimplemented mocks
2012-11-29 16:04:45 +00:00
Paul Thornthwaite
0c25928691 [Brightbox] Moves more of public API into Shared
Moved a lot of helper methods to Shared so that the Mock version of the service
is not erroring with missing methods even if requests are not implemented.
2012-11-29 15:47:32 +00:00
Paul Thornthwaite
31c5895119 [Brightbox] Adds means to update scoped account
A Compute instance encapsulates a connection for a client to the
Brightbox API. Users can have multiple accounts but there was no easy
way to switch between them when account had to be passed in via the
initializer.

Now the scoped account can be set on an existing instance which overrides
any configured setting but it can be reset if needed.

The #request method still can accept `account_id` as an option which
again overrides the previous settings.

Finally the parameter is now correctly sent as a query string parameter
not part of the API request JSON.
2012-11-29 10:43:55 +00:00
Paul Thornthwaite
dbc53d0f48 [Brightbox] Adds option to disable token management
Original request method handles missing tokens and the first
Unauthorized response by requesting a new access token.

This magic can be disruptive for clients so can be disabled by passing
in `:brightbox_token_management => false` to the Compute service.
2012-11-29 10:41:14 +00:00
Paul Thornthwaite
424267321d [Brightbox] Adds support for refresh tokens
Passing in a refresh token to `Compute#new` will allow the token to be
used to request new access tokens as the original authenticated user so
the username and password do not have to be stored locally.
2012-11-29 10:36:40 +00:00
Paul Thornthwaite
d833c83169 [Brightbox] Extracts parts of request out of compute
* Adds simple helper to get token for service
* Low level request #request_access_token is provided to request
  access tokens
2012-11-29 10:34:46 +00:00
Paul Thornthwaite
a1f1a8b8ce [Brightbox] Moves tokens to CredentialSet 2012-11-29 10:27:34 +00:00
Paul Thornthwaite
62cddead5c [Brightbox] Refactors how tokens are requested
Extracting existing strategies out of Compute
2012-11-29 10:24:12 +00:00
Paul Thornthwaite
c14c6ad76f [Brightbox] Extracts authentication connection
Moving the URL for the authentication endpoint up to the instance level
rather than hiding the logic in the method. Eliminate the need for
options on a private method.

Also cleaned up references to credentials in same method.
2012-11-29 10:21:00 +00:00
VirtualStaticVoid
d4aa72ae59 fixes issue#1313 ~ Creating user via Aws.iam.users ignores :path 2012-11-29 09:54:47 +02:00
Dan Prince
1bfc49fa71 OpenStack floating_ip (aka address) test fixes
Updates to the OpenStack address tests so that:

 * The tests cleanup after themselves when executed in Real mode.
   Previously running these tests in Real mode would leak servers
   and floating IPs.

 * DRY things up a bit.

 * Make use of the floating IP we create in subsequent tests. Previously
   the last floating IP in the full list was used. This could be
   problematic in some cases.

--

Also adds a missing Mock class for the release_address request so
that FOG_MOCK tests continue to pass.
2012-11-28 22:04:09 -05:00
Paul Thornthwaite
f5feadc81f [Brightbox] Refactors credential code in Compute 2012-11-28 17:44:25 +00:00
Dan Prince
6c4323d4c2 Merge pull request from dprince/flavor_test_updates
Sync with latest OpenStack flavors extensions.
2012-11-27 13:05:54 -08:00
Dan Prince
bae7186994 Sync with latest OpenStack flavors extensions.
Updates the OpenStack flavors model/request/and tests so
that they support the latest upstream flavor extensions in
Nova Folsom.

Also updated the Fog tests so they pass with both mocks and reals
(tested against OpenStack deployed on Fedora).
2012-11-27 13:50:05 -05:00
Paul Thornthwaite
c81f386065 Merge pull request from fog/1310_version_agent_header
Moves Fog::VERSION to fog/core, Adds User-Agent header
2012-11-27 10:00:11 -08:00
Paul Thornthwaite
a7a22cce33 [core] Updates Rakefile to use Fog::VERSION
No longer need to read in `lib/fog` to access the VERSION mostly because
we are already requiring it anyway in the Rakefile!

The #version method just repeats Fog::VERSION

`rake -T` works and changelog generates
2012-11-27 17:00:29 +00:00
Paul Thornthwaite
70d2b9caa6 [core] Adds fog User-Agent header
As discussed in  this adds a User Agent HTTP header to help identify
the version of fog is accessing APIs.

This revised version fixes issue 
2012-11-27 16:32:38 +00:00
Paul Thornthwaite
28a3e59245 [core] Splits Fog::VERSION into own file
Now available within "fog/core"

Just reverted a change where depending on Fog::VERSION for the
User-Agent made a dependency on requiring "lib/fog" which also requires
all providers and services.

That is highly undesirable from a modular perspective!
2012-11-27 16:30:40 +00:00
Paul Thornthwaite
c4d176922c Revert "[core] Adds fog User-Agent header"
This reverts commit a07f3203a6.

The change made a dependency on Fog::VERSION which is defined in
`lib/fog` forcing more of the system to be loaded in some cases.

Github issue 
2012-11-27 15:59:06 +00:00
Nelvin Driz
b45468dab1 Merge pull request from Keoven/update/openstack-module
[openstack] Bulk Update
2012-11-27 03:10:08 -08:00
Paul Thornthwaite
6da9aa7b6d [Brightbox] Tests recognised options
Never actually tested the options we declared when creating a new
instance of the Compute service.
2012-11-27 10:29:48 +00:00
Nelvin Driz
47b15f7ea8 [openstack] Fix Typo in Merge of Authentication Refactoring
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-11-27 06:45:27 +08:00
Ohad Levy
a8c0de9eb6 Merge pull request from ohadlevy/vmware
[vsphere] ensure reload works correctly for server
2012-11-26 12:32:17 -08:00