Test that multiple provisioners can be used

This commit is contained in:
Mitchell Hashimoto 2012-01-10 22:04:31 -08:00
parent bb2a473549
commit 638881614a
1 changed files with 17 additions and 0 deletions

View File

@ -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")