Sha256: 99cfa816029a47be000639a8b5d14aebf06af01f8a6de5b2a2f5ffed208b7006
Contents?: true
Size: 867 Bytes
Versions: 36
Compression:
Stored size: 867 Bytes
Contents
include BenchHelpers bench_log "Runs admin source methods in batch" Bench.config do |config| config.concurrency ||= 10 config.iterations ||= 100 config.main_marker = 'get_adapter' config.user_name = "benchuser" config.password = "password" config.get_test_server config.reset_app @token = config.get_token @save_adapter_url = "my/dynamic/adapter/url" config.reset_refresh_time('MockAdapter') config.request_logging = false end Bench.test do |config,session| session.post "save_adapter", "#{config.host}/rc/#{Rhoconnect::API_VERSION}/system/appserver", {'X-RhoConnect-API-TOKEN' => @token, :content_type => :json } do {:attributes => {:adapter_url => @save_adapter_url}}.to_json end session.get "get_adapter", "#{config.host}/api/source/get_adapter", {'X-RhoConnect-API-TOKEN' => @token, :content_type => :json } end
Version data entries
36 entries across 36 versions & 1 rubygems