Merge pull request #9355 from briancain/fix-sticky-travis-test
Fix sticky Travis CI test
This commit is contained in:
commit
12d4f4eb6c
|
@ -283,7 +283,7 @@ describe Vagrant::Action::Builtin::BoxAdd, :skip_windows do
|
||||||
context "with a box name accidentally set as a URL" do
|
context "with a box name accidentally set as a URL" do
|
||||||
it "displays a warning to the user" do
|
it "displays a warning to the user" do
|
||||||
box_path = iso_env.box2_file(:virtualbox)
|
box_path = iso_env.box2_file(:virtualbox)
|
||||||
with_web_server(box_path) do |port|
|
port = 9999
|
||||||
|
|
||||||
box_url_name = "http://127.0.0.1:#{port}/#{box_path.basename}"
|
box_url_name = "http://127.0.0.1:#{port}/#{box_path.basename}"
|
||||||
env[:box_name] = box_url_name
|
env[:box_name] = box_url_name
|
||||||
|
@ -303,13 +303,10 @@ describe Vagrant::Action::Builtin::BoxAdd, :skip_windows do
|
||||||
subject.call(env)
|
subject.call(env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
context "with a box name containing invalid URI characters" do
|
context "with a box name containing invalid URI characters" do
|
||||||
it "should not raise an error" do
|
it "should not raise an error" do
|
||||||
box_path = iso_env.box2_file(:virtualbox)
|
box_path = iso_env.box2_file(:virtualbox)
|
||||||
with_web_server(box_path) do |port|
|
|
||||||
|
|
||||||
box_url_name = "box name with spaces"
|
box_url_name = "box name with spaces"
|
||||||
env[:box_name] = box_url_name
|
env[:box_name] = box_url_name
|
||||||
|
|
||||||
|
@ -325,7 +322,6 @@ describe Vagrant::Action::Builtin::BoxAdd, :skip_windows do
|
||||||
subject.call(env)
|
subject.call(env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
context "with URL containing credentials" do
|
context "with URL containing credentials" do
|
||||||
let(:username){ "box-username" }
|
let(:username){ "box-username" }
|
||||||
|
|
Loading…
Reference in New Issue