forked from vagrant-landrush/landrush
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue vagrant-landrush#171 Adding test harness. Experimenting with VB…
…oxManage
- Loading branch information
1 parent
5007fef
commit 97af5f8
Showing
8 changed files
with
53 additions
and
197 deletions.
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Bundler | ||
Gemfile.lock | ||
.bundle | ||
|
||
# Ruby / RVM | ||
.ruby-gemset | ||
.ruby-version | ||
*.rbc | ||
.bundle | ||
|
||
# Rake / Build | ||
.yardoc | ||
InstalledFiles | ||
_yardoc | ||
coverage | ||
lib/bundler/man | ||
pkg | ||
rdoc | ||
spec/reports | ||
test/tmp | ||
test/version_tmp | ||
build | ||
tmp | ||
tags | ||
|
||
.vagrant | ||
|
||
# IDE | ||
*.iml | ||
.idea |
This file was deleted.
Oops, something went wrong.
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
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
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,31 @@ | ||
require_relative '../test_helper' | ||
|
||
VBOXMANAGE_BINARY = 'C:\\DeveloperPlatform\\virtualbox\\VBoxManage' | ||
module Landrush | ||
describe WinNetworkConfig do | ||
before do | ||
created_interface = `#{VBOXMANAGE_BINARY} hostonlyif create` | ||
p "#{created_interface}" | ||
end | ||
|
||
after do | ||
#delete_interface = `C:\\DeveloperPlatform\\virtualbox\\VBoxManage hostonlyif remove \"#{name}\"` | ||
#p "#{delete_interface}" | ||
end | ||
|
||
describe 'create network interface' do | ||
it 'a network interface with the required DNS settings is created' do | ||
skip('Only supported on Windows') unless Vagrant::Util::Platform.windows? | ||
|
||
# netsh interface ip show config name="VirtualBox Host-Only Network #3" | ||
# netsh interface ip show ipaddresses interface="VirtualBox Host-Only Network #3" | ||
|
||
#network_config = WinNetworkConfig.new(fake_environment) | ||
|
||
#WinNetworkConfig.update_network_adapter '10.1.2.1' | ||
#WinNetworkConfig.create_network_adapter | ||
#WinNetworkConfig.delete_network_adapter 'VirtualBox Host-Only Ethernet Adapter #2' | ||
end | ||
end | ||
end | ||
end |
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