Sha256: 2a289409894bf7f8eeec8201e9afc846429d7dc41154d12a73d966af3783930f
Contents?: true
Size: 998 Bytes
Versions: 13
Compression:
Stored size: 998 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiReset" do it_should_behave_like "ApiHelper" do it "should reset and re-create rhoadmin user with bootstrap" do Store.put_data('somedoc',{ '1' => {'foo'=>'bar'}}) post "/rc/#{Rhoconnect::API_VERSION}/system/reset", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token} App.is_exist?(test_app_name).should == true Store.get_data('somedoc').should == {} User.authenticate('rhoadmin','').should_not be_nil end it "should reset and re-create rhoadmin user with initializer" do Store.put_data('somedoc',{ '1' => {'foo'=>'bar'}}) post "/rc/#{Rhoconnect::API_VERSION}/system/reset", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token} App.is_exist?(test_app_name).should == true Store.get_data('somedoc').should == {} User.authenticate('rhoadmin','').should_not be_nil load File.join(Rhoconnect.base_directory,test_app_name+'.rb') end end end
Version data entries
13 entries across 13 versions & 1 rubygems