Permalink
Browse files

/rolenames endpoint no longer valid

  • Loading branch information...
theganyo committed Oct 11, 2012
1 parent d1753d6 commit ab306863e27bf7e329d56a6c2b2f536894f67cda
Showing with 1 addition and 18 deletions.
  1. +0 −4 lib/usergrid/core/application.rb
  2. +1 −14 spec/usergrid/core/application_spec.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
@@ -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

0 comments on commit ab30686

Please sign in to comment.