added code to detect docker containers
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
func TestDocker(t *testing.T) {
|
||||
//TODO overwrite with custom docker paths
|
||||
resp,err := BuildRunContainer(2,"true")
|
||||
resp,err := BuildRunContainer(2,"true","")
|
||||
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
@@ -15,3 +15,12 @@ func TestDocker(t *testing.T) {
|
||||
|
||||
fmt.Print(resp.VNCPort)
|
||||
}
|
||||
|
||||
func TestViewAllContainers(t *testing.T) {
|
||||
_,err := ViewAllContainers()
|
||||
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user