Sha256: ab811c5b509dc32decf43e370056fc7edf155194bc9d1f0d4410fe223a73575a

Contents?: true

Size: 821 Bytes

Versions: 31

Compression:

Stored size: 821 Bytes

Contents

describe 'executables\' Actions Executor options' do

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

  it 'drives the maximum number of threads' do
    with_test_platform_for_actions_executor_options do
      expect_actions_executor_runs([proc do
        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

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.9.4 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.9.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.9.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.9.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.8.4 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.8.3 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.8.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.8.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.8.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.7.4 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.7.3 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.7.2 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.7.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.7.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.6.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.5.1 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.5.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.4.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb
hybrid_platforms_conductor-33.3.0 spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb