Sha256: 5a1c34d6f04b62817869ec79fe6ad6ce8776c1059cb8e95fbbf64809fcbc1a1d

Contents?: true

Size: 1 KB

Versions: 83

Compression:

Stored size: 1 KB

Contents

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

  pending if Fog.mocking?

  @beanstalk = Fog::AWS[:beanstalk]

  @application_name = uniq_id('fog-test-app')
  @environment_name = uniq_id('fog-test-env')
  @version_name = uniq_id('fog-test-version')

  # Create an application/version to use for testing.
  @version = @beanstalk.versions.create({
      :label => @version_name,
      :application_name => @application_name,
      :auto_create_application => true
                             })

  @application = @beanstalk.applications.get(@application_name)

  @environment_opts = {
      :application_name => @application_name,
      :name => @environment_name,
      :version_label => @version_name,
      :solution_stack_name => '32bit Amazon Linux running Tomcat 7'
  }

  collection_tests(@beanstalk.environments, @environment_opts, false)

  # Wait for instance to terminate before deleting application
  @instance.wait_for { terminated? }
  # delete application
  @application.destroy

end

Version data entries

83 entries across 83 versions & 13 rubygems

Version Path
fog-1.22.0 tests/aws/models/beanstalk/environments_tests.rb
fog-1.21.0 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/aws/models/beanstalk/environments_tests.rb
fog-1.20.0 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/aws/models/beanstalk/environments_tests.rb
fog-1.19.0 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/aws/models/beanstalk/environments_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/aws/models/beanstalk/environments_tests.rb