Sha256: 22fd6c3b77097528c6c6d267f372d074da6e1f0c4a1605ff978dc2adf696af90

Contents?: true

Size: 1.28 KB

Versions: 162

Compression:

Stored size: 1.28 KB

Contents

Shindo.tests("Fog::AWS[:beanstalk] | template", ['aws', 'beanstalk']) do

  pending if Fog.mocking?

  @beanstalk = Fog::AWS[:beanstalk]

  @application_name = uniq_id('fog-test-app')
  @template_name = uniq_id('fog-test-template')

  @template_description = 'A nice description'

  @application = @beanstalk.applications.create({:name => @application_name})

  @template_opts = {
      :application_name => @application_name,
      :name => @template_name,
      :description => @template_description,
      :solution_stack_name => '32bit Amazon Linux running Tomcat 7'
  }

  model_tests(@beanstalk .templates, @template_opts, false) do

    test("#attributes") do
      @instance.name == @template_name &&
          @instance.description == @template_description &&
          @instance.application_name == @application_name &&
          @instance.solution_stack_name == @template_opts[:solution_stack_name]
    end

    test("#options") do
      options = @instance.options
      passed = false
      if options.each { |option|
        # See if we recognize at least one option
        if option["Name"] == 'LoadBalancerHTTPPort' && option["Namespace"] == 'aws:elb:loadbalancer'
          passed = true
        end
      }
      end
      passed
    end

  end

  # delete application
  @application.destroy
end

Version data entries

162 entries across 160 versions & 18 rubygems

Version Path
fog-aws-3.12.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.11.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.10.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.9.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.8.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.7.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.7 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.6 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.5 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.4 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.3 tests/models/beanstalk/template_tests.rb
fog-aws-3.6.2 tests/models/beanstalk/template_tests.rb
fog-aws-3.5.2 tests/models/beanstalk/template_tests.rb
fog-aws-3.5.1 tests/models/beanstalk/template_tests.rb
fog-aws-3.5.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.4.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.3.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.2.0 tests/models/beanstalk/template_tests.rb
fog-aws-3.1.0 tests/models/beanstalk/template_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/models/beanstalk/template_tests.rb