Sha256: 6526638405c12f3d18918e3fa023f3374820b9b21f3fd0bfd015f4873ef8cdeb
Contents?: true
Size: 930 Bytes
Versions: 8
Compression:
Stored size: 930 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 end end end
Version data entries
8 entries across 8 versions & 1 rubygems