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'],
|
cmd: ['play', 'voodoo-chile'],
|
||||||
ports: '8080:80',
|
ports: '8080:80',
|
||||||
volumes: '/host/path:guest/path',
|
volumes: '/host/path:guest/path',
|
||||||
|
detach: true,
|
||||||
|
links: 'janis:joplin',
|
||||||
|
env: {key: 'value'},
|
||||||
name: cid,
|
name: cid,
|
||||||
hostname: 'jimi-hendrix',
|
hostname: 'jimi-hendrix',
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -39,6 +42,14 @@ describe VagrantPlugins::DockerProvider::Driver do
|
||||||
expect(cmd_executed).to match(/-v #{params[:volumes]} .+ #{Regexp.escape params[:image]}/)
|
expect(cmd_executed).to match(/-v #{params[:volumes]} .+ #{Regexp.escape params[:image]}/)
|
||||||
end
|
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
|
it 'is able to run a privileged container' do
|
||||||
expect(cmd_executed).to match(/-privileged .+ #{Regexp.escape params[:image]}/)
|
expect(cmd_executed).to match(/-privileged .+ #{Regexp.escape params[:image]}/)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue