added code to detect docker containers

This commit is contained in:
2021-06-09 16:43:59 +04:00
parent 4141f1c575
commit 8466e2d1ca
6 changed files with 84 additions and 12 deletions

View File

@@ -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)
}
}