Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9c79702

Browse files
authored
Merge pull request #214 from docker/fix-e2e-login
fix: e2e tests when not logged in
2 parents ede4a1a + 48a4e41 commit 9c79702

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

e2e/scan_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ func TestScanFailsNoAuthentication(t *testing.T) {
6060
cmd.Command = dockerCli.Command("scan", "--accept-license", "example:image")
6161
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
6262
ExitCode: 1,
63-
Err: `You need to be logged in to Docker Hub to use scan feature.
64-
please login to Docker Hub using the Docker Login command`,
63+
Err: `failed to get DockerScanID: You need to be logged in to Docker Hub to use the scan feature.`,
6564
})
6665
}
6766

@@ -80,8 +79,7 @@ func TestScanFailsWithCleanMessage(t *testing.T) {
8079
cmd.Command = dockerCli.Command("scan", "--accept-license", "example:image")
8180
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
8281
ExitCode: 1,
83-
Err: `You need to be logged in to Docker Hub to use scan feature.
84-
please login to Docker Hub using the Docker Login command`,
82+
Err: `failed to get DockerScanID: You need to be logged in to Docker Hub to use the scan feature.`,
8583
})
8684
}
8785

0 commit comments

Comments
 (0)