providers/docker: Add required configs and specs (build is green now)
This commit is contained in:
parent
b68cb6d7b4
commit
3ab5064e02
|
@ -16,6 +16,9 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|||
cmd: ['play', 'voodoo-chile'],
|
||||
ports: '8080:80',
|
||||
volumes: '/host/path:guest/path',
|
||||
detach: true,
|
||||
links: 'janis:joplin',
|
||||
env: {key: 'value'},
|
||||
name: cid,
|
||||
hostname: 'jimi-hendrix',
|
||||
privileged: true
|
||||
|
@ -39,6 +42,14 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|||
expect(cmd_executed).to match(/-v #{params[:volumes]} .+ #{Regexp.escape params[:image]}/)
|
||||
end
|
||||
|
||||
it 'links containers' do
|
||||
expect(cmd_executed).to match(/--link #{params[:links]} .+ #{Regexp.escape params[:image]}/)
|
||||
end
|
||||
|
||||
it 'sets environmental variables' do
|
||||
expect(cmd_executed).to match(/-e key=value .+ #{Regexp.escape params[:image]}/)
|
||||
end
|
||||
|
||||
it 'is able to run a privileged container' do
|
||||
expect(cmd_executed).to match(/-privileged .+ #{Regexp.escape params[:image]}/)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue