Sha256: caad5202111df070f2925d163c2f457aba0b95ca3a84cdd733cb7eccd6e64ca9

Contents?: true

Size: 530 Bytes

Versions: 7

Compression:

Stored size: 530 Bytes

Contents

# Tries to bootstrap with apache2 cookbook and
# verifies the "It Works!" page is present.

require $base_dir.join('integration', 'cases', 'apache2_cook')

module Apache2Bootstrap
  include Apache2Cook

  def write_berksfile
    File.open('Berksfile', 'w') do |f|
      f.puts 'source "https://supermarket.chef.io"'
      f.puts "cookbook 'apache2'"
    end
  end

  def test_apache2
    write_berksfile
    assert_subcommand "bootstrap --run-list=recipe[apache2]"
    assert_match default_apache_message, http_response
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
knife-solo-0.7.0 test/integration/cases/apache2_bootstrap.rb
knife-solo-0.7.0.pre3 test/integration/cases/apache2_bootstrap.rb
knife-solo-0.7.0.pre2 test/integration/cases/apache2_bootstrap.rb
knife-solo-0.7.0.pre test/integration/cases/apache2_bootstrap.rb
knife-solo-0.6.0 test/integration/cases/apache2_bootstrap.rb
knife-solo-0.5.1 test/integration/cases/apache2_bootstrap.rb
knife-solo-0.5.0 test/integration/cases/apache2_bootstrap.rb