This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #71 Making sure correct host IP is used for DNS redirect on guest
- Adding integration test
- Loading branch information
1 parent
705f274
commit e10f684
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: Landrush with Docker provider | ||
Landrush should work with Docker provider | ||
|
||
Scenario: Booting box with Docker provider | ||
Given a file named "Vagrantfile" with: | ||
""" | ||
Vagrant.configure(2) do |config| | ||
config.vm.provider "docker" do |d| | ||
# https://github.com/tknerr/vagrant-docker-baseimages | ||
d.image = "tknerr/baseimage-ubuntu:18.04" | ||
d.has_ssh = true | ||
d.privileged = true | ||
end | ||
config.vm.provision "shell", inline: 'apt-get install -y net-tools dnsutils' | ||
config.landrush.enabled = true | ||
config.vm.hostname = "foo.vagrant.test" | ||
config.landrush.host 'static1.example.com', '1.2.3.4' | ||
config.landrush.host 'static2.example.com', '2.3.4.5' | ||
end | ||
""" | ||
When I successfully run `bundle exec vagrant up` | ||
Then Landrush is running | ||
|
||
When I successfully run `bundle exec vagrant ssh -- dig +noall +answer +nocomments static1.example.com` | ||
Then stdout from "bundle exec vagrant ssh -- dig +noall +answer +nocomments static1.example.com" should match /.*1\.2\.3\.4/ | ||
|
||
When I successfully run `bundle exec vagrant landrush stop` | ||
Then Landrush is not running | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
require 'landrush/store' | ||
require 'landrush/version' | ||
require 'landrush-ip' | ||
require 'socket' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters