openstack_activeresource 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -117,6 +117,14 @@ module OpenStack
|
|
117
117
|
OpenStack::Keystone::Admin::Tenant.find tenant_id
|
118
118
|
end
|
119
119
|
|
120
|
+
# Set the primary (default) tenant associated with this user
|
121
|
+
#
|
122
|
+
# ==== Attributes
|
123
|
+
# * +primary_tenant+ - A valid tenant or a tenant_id
|
124
|
+
def tenant=(primary_tenant)
|
125
|
+
self.tenant_id = primary_tenant.is_a?(OpenStack::Keystone::Admin::Tenant) ? primary_tenant.id : primary_tenant
|
126
|
+
end
|
127
|
+
|
120
128
|
# File role(s) (i.e. instances of OpenStack::Keystone::Admin::UserRole) for this user in a given tenant
|
121
129
|
#
|
122
130
|
# ==== Attributes
|
@@ -72,6 +72,21 @@ class TestOpenStackActiveResource < Test::Unit::TestCase
|
|
72
72
|
|
73
73
|
end
|
74
74
|
|
75
|
+
def test_list_users
|
76
|
+
return unless admin_test_possible?
|
77
|
+
|
78
|
+
auth_admin
|
79
|
+
|
80
|
+
assert_nothing_raised ActiveResource::ClientError, "Cannot list users" do
|
81
|
+
users = OpenStack::Keystone::Admin::User.all
|
82
|
+
|
83
|
+
assert_block("No users?") do
|
84
|
+
!users.nil? && !users.empty?
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
|
75
90
|
# Nova
|
76
91
|
|
77
92
|
## Flavors
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstack_activeresource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
segments:
|
230
230
|
- 0
|
231
|
-
hash:
|
231
|
+
hash: 1745572783411320343
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
233
|
none: false
|
234
234
|
requirements:
|