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

20 commits

Author SHA1 Message Date
Paul Thornthwaite
9d3a27f10a [openstack] Updates reference to service 2013-01-07 21:01:18 +00:00
Paul Thornthwaite
7961ad6508 [core] Deprecates 'connection' accessor
The 'connection' accessor in collections and models actually refered to
a subclassed instance of Fog::Service which creates confusion in the
code.

References to 'connection' could have meant the service or the
Fog::Connection held within that service.

This deprecates the connection accessor and replaces it with `#service`
as a read only value. When a collection or model is initalised then
service should be passed.

This commit also updates all the changes to @connection made by
providers in model initialisers since these depending on the presence of
the 'connection' key. The key is still accepted by outputs a warning.
2013-01-07 20:53:24 +00:00
Paul Thornthwaite
40c0cd7122 Make use of #persisted? method
In many places we were checking for identity which was the shorthand for
checking if the resource had been saved by the service.

The #persisted? method was added to show a clearer intent and also offer
minimal ActiveModel interface
2012-12-23 02:45:05 +00:00
Coby Randquist
b32de53e0e update tenant.rb to pass the test, by passing correct parameter 2012-12-10 18:13:20 -08:00
Eric Hodel
97d50bbeae Added OpenStack EC2 credential management models
Altered the paths for EC2 credential requests to remove an extra / in
the request URIs.

Altered Fog::Open::Identity::Real#request to retry only once when given
a 401 error response code.  The EC2 API returns 401 when attempting to
fetch nonexistent EC2 credentials instead of something sensible like
404, leading to an infinite loop.  Also, the "Bad username or password"
check was removed.  My version of OpenStack does not return this message
when a token is expired, but returns the same message as for a missing
EC2 credential.
2012-12-05 14:27:10 -08:00
Philip Mark M. Deazeta
27ba6d44a2 [openstack|identity] use tenant_id parameter in users model 2012-11-26 17:14:44 +08:00
Nelvin Driz
0035231954 [openstack] Fix Failing Shindo Tests
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-10-02 14:09:02 +08:00
Nelvin Driz
ad0e84be56 [openstack|compute] Fix Server Mocks and find_by_id method
Conflicts:
	lib/fog/openstack/requests/identity/update_user.rb
2012-09-28 15:09:59 +08:00
Mark Maglana
568d290ca9 [openstack|identity] Express the "add user role" intent more clearly 2012-05-03 21:05:59 +08:00
Mark Maglana
0d9b04b104 [openstack|identity] Correction in Roles#all method
User#roles should be calling Service#list_roles_for_user_on_tenant
directly and not use Roles#all since the latter is actually a method
for getting all roles in the Identity Service
2012-04-30 10:35:03 +08:00
Alvin Garcia
30be620b87 [openstack|identity] Fixed users fetching
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:02 +08:00
Nelvin Driz
e47c5eb9c4 [openstack|identity] Update Fog to Accomodate Tenant Deletion Workaround
Workflow

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:02 +08:00
Alvin Garcia
8d084194b4 [openstack|identity] Update users model initialization and save 2012-04-30 10:35:01 +08:00
Alvin Garcia
040cd20021 [openstack|identity] Update users collections and model 2012-04-30 10:35:01 +08:00
Philip Mark Deazeta
cf3d45203b [openstack|identity] Added function to add user to a tenant 2012-04-30 10:35:01 +08:00
Philip Mark Deazeta
e38799fc50 [openstack|identity] Added function to add user to a tenant 2012-04-30 10:35:01 +08:00
Alvin Garcia
b122f0c85e [openstack|identity] Keystone Roles and Users 2012-04-30 10:34:59 +08:00
Alvin Garcia
c623858312 [openstack|identity] Keystone Roles 2012-04-30 10:34:59 +08:00
Nelvin Driz
42d2cb94ec [openstack|identity] Update Tenants (Complete CRUD) 2012-04-30 10:34:59 +08:00
Nelvin Driz
e1c5155a34 [openstack|identity] Update Tenants 2012-04-30 10:34:58 +08:00