Sha256: e75a01c2409835667cc15f65d3c361bd8bd28b944e02bd3c901bf32c3b801097

Contents?: true

Size: 930 Bytes

Versions: 36

Compression:

Stored size: 930 Bytes

Contents

describe 'executables\' Actions Executor options' do

  # Setup a platform for tests
  #
  # Parameters::
  # * Proc: Code called when the platform is setup
  #   * Parameters::
  #     * *repository* (String): Platform's repository
  def with_test_platform_for_actions_executor_options
    with_test_platform({ nodes: { 'node' => {} } }) do |repository|
      yield repository
    end
  end

  it 'drives the maximum number of threads' do
    with_test_platform_for_actions_executor_options do
      expect_actions_executor_runs([proc do |actions, timeout: nil, concurrent: false, log_to_dir: 'run_logs', log_to_stdout: true|
        expect(test_actions_executor.max_threads).to eq 5
        {}
      end])
      exit_code, stdout, stderr = run 'run', '--node', 'node', '--command', 'echo Hello', '--max-threads', '5'
      expect(exit_code).to eq 0
      expect(stdout).to eq ''
      expect(stderr).to eq ''
    end
  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.0.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.18.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.17.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.17.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.16.4 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.16.3 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.16.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.16.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.16.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.15.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.14.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.13.4 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.13.3 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.13.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.13.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.13.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.12.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.11.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.11.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-32.11.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb