mirror of
https://github.com/inspec/inspec
synced 2024-11-22 12:43:07 +00:00
extend integration tests
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
d769659d48
commit
d8cfd094ac
2 changed files with 13 additions and 0 deletions
10
.tests.yaml
10
.tests.yaml
|
@ -1,4 +1,14 @@
|
|||
images:
|
||||
- centos-5
|
||||
- centos-6
|
||||
- centos-7
|
||||
- centos-latest
|
||||
- ubuntu-1004
|
||||
- ubuntu-1204-20150612
|
||||
- ubuntu-1204
|
||||
- ubuntu-1304
|
||||
- ubuntu-1404-20150320
|
||||
- ubuntu-1404
|
||||
- ubuntu-1504
|
||||
- ubuntu-1510
|
||||
- ubuntu-latest
|
||||
|
|
|
@ -52,6 +52,7 @@ class DockerTester
|
|||
image = @images[dname]
|
||||
raise "Can't find docker image #{dname}" if image.nil?
|
||||
|
||||
puts "--> start docker #{name}"
|
||||
container = Docker::Container.create(
|
||||
'Cmd' => [ '/bin/bash' ],
|
||||
'Image' => image.id,
|
||||
|
@ -59,8 +60,10 @@ class DockerTester
|
|||
)
|
||||
container.start
|
||||
|
||||
puts "--> run test on docker #{name}"
|
||||
res = test_container(container.id)
|
||||
|
||||
puts "--> killrm docker #{name}"
|
||||
container.kill
|
||||
container.delete(force: true)
|
||||
res
|
||||
|
|
Loading…
Reference in a new issue