Test that multiple provisioners can be used
This commit is contained in:
parent
bb2a473549
commit
638881614a
|
@ -25,6 +25,23 @@ vf
|
|||
result_file.exist?.should_not be
|
||||
end
|
||||
|
||||
it "can provision with multiple provisioners" do
|
||||
# Skeleton for multiple provisioners
|
||||
environment.skeleton!("provisioner_multi")
|
||||
|
||||
# Setup the basic environment
|
||||
require_box("default")
|
||||
assert_execute("vagrant", "box", "add", "base", box_path("default"))
|
||||
|
||||
# Bring up the VM, only using the shell provisioner
|
||||
assert_execute("vagrant", "up")
|
||||
|
||||
# Verify the file the shell provisioner made is there, but not the
|
||||
# Chef one.
|
||||
environment.workdir.join("shell").exist?.should be
|
||||
environment.workdir.join("chef_solo").exist?.should be
|
||||
end
|
||||
|
||||
it "only uses the provisioners specified with `--provision-with`" do
|
||||
# Skeleton for multiple provisioners
|
||||
environment.skeleton!("provisioner_multi")
|
||||
|
|
Loading…
Reference in New Issue