File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/test/java/com/amihaiemil/docker Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,24 @@ public void pingsDocker() throws Exception {
62
62
MatcherAssert .assertThat (docker .ping (), Matchers .is (Boolean .TRUE ));
63
63
}
64
64
65
+ /**
66
+ * UnixDocker can return Info about Docker.
67
+ * @throws Exception If something goes wrong.
68
+ */
69
+ @ Test
70
+ public void returnsInfo () throws Exception {
71
+ final Docker docker = new UnixDocker (
72
+ new File ("/var/run/docker.sock" )
73
+ );
74
+ final Info info = docker .info ();
75
+ MatcherAssert .assertThat (info , Matchers .notNullValue ());
76
+ MatcherAssert .assertThat (info .docker (), Matchers .is (docker ));
77
+ MatcherAssert .assertThat (
78
+ info .getString ("OSType" ),
79
+ Matchers .equalTo ("linux" )
80
+ );
81
+ }
82
+
65
83
/**
66
84
* Docker can return its Events unfiltered.
67
85
* @throws Exception If something goes wrong.
You can’t perform that action at this time.
0 commit comments