Sha256: 0eefa99bc79175e0741e0929bf455a9181f8210f1434615c330ece7cdfc9d6c2

Contents?: true

Size: 745 Bytes

Versions: 95

Compression:

Stored size: 745 Bytes

Contents

shared_examples "provider/provisioner/docker" do |provider, options|
  box = options[:box_docker] || options[:box]
  if !box
    raise ArgumentError,
      "box_basic option must be specified for provider: #{provider}"
  end

  include_context "acceptance"

  before do
    environment.skeleton("provisioner_docker")
    assert_execute("vagrant", "box", "add", "box", box)
    assert_execute("vagrant", "up", "--provider=#{provider}")
  end

  after do
    assert_execute("vagrant", "destroy", "--force")
  end

  it "provisions with and installs docker" do
    status("Test: installs docker")
    result = execute("vagrant", "ssh", "-c", "which docker")
    expect(result).to exit_with(0)
    expect(result.stdout).to match(/docker/)
  end
end

Version data entries

95 entries across 28 versions & 1 rubygems

Version Path
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/docker_spec.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/docker_spec.rb