@@ -69,6 +69,13 @@ testFindImage =
70 imageFullName = testImageName <> ":latest"
70 imageFullName = testImageName <> ":latest"
72+testListContainers :: IO ()
75+ do res <- listContainers defaultListOpts
77+ lift $ assert $ isRight res
72testBuildFromDockerfile :: IO ()
79testBuildFromDockerfile :: IO ()
73testBuildFromDockerfile = do
80testBuildFromDockerfile = do
74 cur <- getCurrentDirectory
81 cur <- getCurrentDirectory
@@ -170,6 +177,7 @@ integrationTests =
170 [ testCase "Get docker version" testDockerVersion
177 [ testCase "Get docker version" testDockerVersion
171 , testCase "Build image from Dockerfile" testBuildFromDockerfile
178 , testCase "Build image from Dockerfile" testBuildFromDockerfile
172 , testCase "Find image by name" testFindImage
179 , testCase "Find image by name" testFindImage
180+ , testCase "List containers" testListContainers
173 , testCase "Run a dummy container and read its log" testRunAndReadLog
181 , testCase "Run a dummy container and read its log" testRunAndReadLog
174 , testCase "Try to stop a container that doesn't exist" testStopNonexisting
182 , testCase "Try to stop a container that doesn't exist" testStopNonexisting