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

Version Path
rhoconnect-7.6.0 bench/scripts/test_source_script.rb
rhoconnect-7.5.1 bench/scripts/test_source_script.rb
rhoconnect-7.4.1 bench/scripts/test_source_script.rb
rhoconnect-7.1.17 bench/scripts/test_source_script.rb
rhoconnect-6.2.0 bench/scripts/test_source_script.rb
rhoconnect-6.0.11 bench/scripts/test_source_script.rb
rhoconnect-5.5.18 bench/scripts/test_source_script.rb
rhoconnect-5.5.17 bench/scripts/test_source_script.rb
rhoconnect-5.5.15 bench/scripts/test_source_script.rb
rhoconnect-5.5.0.22 bench/scripts/test_source_script.rb
rhoconnect-5.5.2 bench/scripts/test_source_script.rb
rhoconnect-5.5.0.7 bench/scripts/test_source_script.rb
rhoconnect-5.5.0.3 bench/scripts/test_source_script.rb
rhoconnect-5.5.0 bench/scripts/test_source_script.rb
rhoconnect-5.1.1 bench/scripts/test_source_script.rb
rhoconnect-4.0.4 bench/scripts/test_source_script.rb
rhoconnect-4.0.3 bench/scripts/test_source_script.rb
rhoconnect-4.0.2 bench/scripts/test_source_script.rb
rhoconnect-4.0.1 bench/scripts/test_source_script.rb
rhoconnect-4.0.0 bench/scripts/test_source_script.rb