diff --git a/test/acceptance/networking/host_only_test.rb b/test/acceptance/networking/host_only_test.rb new file mode 100644 index 000000000..d15f20070 --- /dev/null +++ b/test/acceptance/networking/host_only_test.rb @@ -0,0 +1,37 @@ +require File.expand_path("../../base", __FILE__) + +require "net/http" +require "uri" + +require "acceptance/support/network_tests" +require "acceptance/support/shared/command_examples" +require "support/tempdir" + +describe "vagrant host only networking" do + include Acceptance::NetworkTests + + include_context "acceptance" + + def initialize_environment(env=nil) + require_box("default") + + env ||= environment + env.execute("vagrant", "box", "add", "base", box_path("default")).should succeed + end + + it "creates a network with a static IP" do + initialize_environment + + environment.workdir.join("Vagrantfile").open("w+") do |f| + f.puts(<