Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions e2e/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ func TestScanFailsNoAuthentication(t *testing.T) {
cmd.Command = dockerCli.Command("scan", "--accept-license", "example:image")
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
ExitCode: 1,
Err: `You need to be logged in to Docker Hub to use scan feature.
please login to Docker Hub using the Docker Login command`,
Err: `failed to get DockerScanID: You need to be logged in to Docker Hub to use the scan feature.`,
})
}

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

Expand Down