Sha256: 85523cb1911ffdbc57a5e330ddb639b82d902acef66ebae9261b52c7aa1b76f2

Contents?: true

Size: 697 Bytes

Versions: 6

Compression:

Stored size: 697 Bytes

Contents

describe Elasticity::HadoopBootstrapAction do

  subject do
    Elasticity::HadoopBootstrapAction.new('option', 'value')
  end

  its(:name) { should == 'Elasticity Bootstrap Action (Configure Hadoop)' }
  its(:option) { should == 'option' }
  its(:value) { should == 'value' }

  describe '#to_aws_bootstrap_action' do

    it 'should create a bootstrap action' do
      subject.to_aws_bootstrap_action.should ==
        {
          :name => 'Elasticity Bootstrap Action (Configure Hadoop)',
          :script_bootstrap_action => {
            :path => 's3n://elasticmapreduce/bootstrap-actions/configure-hadoop',
            :args => ['option', 'value']
          }
        }
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
elasticity-2.3.1 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb
elasticity-2.3 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb
elasticity-2.2 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb
elasticity-2.1.1 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb
elasticity-2.1 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb
elasticity-2.0 spec/lib/elasticity/hadoop_bootstrap_action_spec.rb