Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

fix: e2e tests when not logged in #214

Merged
merged 1 commit into from
Aug 25, 2022
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