Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

/rolenames endpoint no longer valid

  • Loading branch information...
commit ab306863e27bf7e329d56a6c2b2f536894f67cda 1 parent d1753d6
@theganyo authored
View
4 lib/usergrid/core/application.rb
@@ -54,10 +54,6 @@ def roles(query=nil, options={})
self[__method__].query(query, options)
end
- def rolenames(query=nil, options={})
- self[__method__].query(query, options).data.data.keys
- end
-
def counter_names
self['counters'].get.data.data
end
View
15 spec/usergrid/core/application_spec.rb
@@ -201,20 +201,7 @@
response = @application.counter 'test'
counter = response.data.counters.first
counter.name.should eq 'test'
- counter.values.last.first.value.should eq 2
- end
-
- it "should be able to create, retrieve, and delete roles via rolenames" do
- size = @application.rolenames.size
-
- role_name = "test-#{SecureRandom.hex}"
- @application.create_entity :rolenames, name: role_name
- role_names = @application.rolenames
- role_names.size.should eq size+1
- role_names.should include role_name
-
- @application['rolenames'][role_name].delete
- @application.rolenames.size.should eq size
+ counter.values.last.first.value.should be > 0
end
it "should be able to create, retrieve, and delete roles" do
Please sign in to comment.
Something went wrong with that request. Please try again.