Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The security infomation has already been added to `GET /info` in moby#21172. However, it is not part of the output of `docker info` yet. This fix adds the security information to `docker info`. Additional tests has been added to cover changes. This fix fixes moby#23500. This fix is related to moby#20909, moby#21172. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// +build !windows | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/docker/docker/pkg/integration/checker" | ||
"github.com/go-check/check" | ||
) | ||
|
||
func (s *DockerSuite) TestInfoSecurityOptions(c *check.C) { | ||
testRequires(c, SameHostDaemon, seccompEnabled, Apparmor, DaemonIsLinux) | ||
|
||
out, _ := dockerCmd(c, "info") | ||
c.Assert(out, checker.Contains, "Security Options: apparmor seccomp") | ||
} |