summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_inspect_test.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2019-11-27 15:36:45 +0100
committerSebastiaan van Stijn <github@gone.nl>2019-11-27 15:36:45 +0100
commit580d3677c80398fb0fffb12a6a7db784ec1a135d (patch)
tree2b618ea4ef0c3a45b2bd2fe796424146f6ab1318 /integration-cli/docker_cli_inspect_test.go
parenta4a0429eec76dc2bb7d7649b8c851b2ec0f0beeb (diff)
downloaddocker-580d3677c80398fb0fffb12a6a7db784ec1a135d.tar.gz
integration-cli: normalize comment formatting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration-cli/docker_cli_inspect_test.go')
-rw-r--r--integration-cli/docker_cli_inspect_test.go29
1 files changed, 14 insertions, 15 deletions
diff --git a/integration-cli/docker_cli_inspect_test.go b/integration-cli/docker_cli_inspect_test.go
index be804394eb..6f91318aa4 100644
--- a/integration-cli/docker_cli_inspect_test.go
+++ b/integration-cli/docker_cli_inspect_test.go
@@ -42,8 +42,8 @@ func (s *DockerSuite) TestInspectInt64(c *testing.T) {
}
func (s *DockerSuite) TestInspectDefault(c *testing.T) {
- //Both the container and image are named busybox. docker inspect will fetch the container JSON.
- //If the container JSON is not available, it will go for the image JSON.
+ // Both the container and image are named busybox. docker inspect will fetch the container JSON.
+ // If the container JSON is not available, it will go for the image JSON.
out, _ := dockerCmd(c, "run", "--name=busybox", "-d", "busybox", "true")
containerID := strings.TrimSpace(out)
@@ -78,8 +78,8 @@ func (s *DockerSuite) TestInspectStatus(c *testing.T) {
}
func (s *DockerSuite) TestInspectTypeFlagContainer(c *testing.T) {
- //Both the container and image are named busybox. docker inspect will fetch container
- //JSON State.Running field. If the field is true, it's a container.
+ // Both the container and image are named busybox. docker inspect will fetch container
+ // JSON State.Running field. If the field is true, it's a container.
runSleepingContainer(c, "--name=busybox", "-d")
formatStr := "--format={{.State.Running}}"
@@ -88,9 +88,9 @@ func (s *DockerSuite) TestInspectTypeFlagContainer(c *testing.T) {
}
func (s *DockerSuite) TestInspectTypeFlagWithNoContainer(c *testing.T) {
- //Run this test on an image named busybox. docker inspect will try to fetch container
- //JSON. Since there is no container named busybox and --type=container, docker inspect will
- //not try to get the image JSON. It will throw an error.
+ // Run this test on an image named busybox. docker inspect will try to fetch container
+ // JSON. Since there is no container named busybox and --type=container, docker inspect will
+ // not try to get the image JSON. It will throw an error.
dockerCmd(c, "run", "-d", "busybox", "true")
@@ -100,9 +100,9 @@ func (s *DockerSuite) TestInspectTypeFlagWithNoContainer(c *testing.T) {
}
func (s *DockerSuite) TestInspectTypeFlagWithImage(c *testing.T) {
- //Both the container and image are named busybox. docker inspect will fetch image
- //JSON as --type=image. if there is no image with name busybox, docker inspect
- //will throw an error.
+ // Both the container and image are named busybox. docker inspect will fetch image
+ // JSON as --type=image. if there is no image with name busybox, docker inspect
+ // will throw an error.
dockerCmd(c, "run", "--name=busybox", "-d", "busybox", "true")
@@ -112,8 +112,8 @@ func (s *DockerSuite) TestInspectTypeFlagWithImage(c *testing.T) {
}
func (s *DockerSuite) TestInspectTypeFlagWithInvalidValue(c *testing.T) {
- //Both the container and image are named busybox. docker inspect will fail
- //as --type=foobar is not a valid value for the flag.
+ // Both the container and image are named busybox. docker inspect will fail
+ // as --type=foobar is not a valid value for the flag.
dockerCmd(c, "run", "--name=busybox", "-d", "busybox", "true")
@@ -295,9 +295,8 @@ func (s *DockerSuite) TestInspectLogConfigNoType(c *testing.T) {
}
func (s *DockerSuite) TestInspectNoSizeFlagContainer(c *testing.T) {
-
- //Both the container and image are named busybox. docker inspect will fetch container
- //JSON SizeRw and SizeRootFs field. If there is no flag --size/-s, there are no size fields.
+ // Both the container and image are named busybox. docker inspect will fetch container
+ // JSON SizeRw and SizeRootFs field. If there is no flag --size/-s, there are no size fields.
runSleepingContainer(c, "--name=busybox", "-d")