integcli: lint fixes
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack) Upstream-commit: c0e632246d821f3f70ffcf7244cf7a9b336b0344 Component: engine
This commit is contained in:
@ -8,15 +8,15 @@ import (
|
||||
|
||||
func TestInspectImage(t *testing.T) {
|
||||
imageTest := "scratch"
|
||||
imageTestId := "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"
|
||||
imageTestID := "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"
|
||||
imagesCmd := exec.Command(dockerBinary, "inspect", "--format='{{.Id}}'", imageTest)
|
||||
|
||||
out, exitCode, err := runCommandWithOutput(imagesCmd)
|
||||
if exitCode != 0 || err != nil {
|
||||
t.Fatalf("failed to inspect image")
|
||||
}
|
||||
if id := strings.TrimSuffix(out, "\n"); id != imageTestId {
|
||||
t.Fatalf("Expected id: %s for image: %s but received id: %s", imageTestId, imageTest, id)
|
||||
if id := strings.TrimSuffix(out, "\n"); id != imageTestID {
|
||||
t.Fatalf("Expected id: %s for image: %s but received id: %s", imageTestID, imageTest, id)
|
||||
}
|
||||
logDone("inspect - inspect an image")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user