Sha256: 87e9ab6a5a523699b6b7f103ddce8c2e96f420b131256b95351f6a3e355da0f8
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
# This tests that packaging works with a given provider. shared_examples "provider/package" do |provider, options| if !options[:box] raise ArgumentError, "box option must be specified for provider: #{provider}" end include_context "acceptance" it "can't package before an up" do expect(execute("vagrant", "package")).to exit_with(1) end context "with a running machine" do before do assert_execute("vagrant", "box", "add", "box", options[:box]) assert_execute("vagrant", "init", "box") assert_execute("vagrant", "up", "--provider=#{provider}") end after do # Just always do this just in case execute("vagrant", "destroy", "--force", log: false) end it "can package" do expect(execute("vagrant", "package")).to exit_with(0) path = environment.workdir.join("package.box") expect(path).to be_file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.1.0 | vendor/bundle/bundler/gems/vagrant-spec-1df5a3af81cb/acceptance/provider/package_spec.rb |