Skip to content

Commit

Permalink
fix(cmd/registry): fixed tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Feb 14, 2024
1 parent 8b06d8a commit 2031ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/registry/pull/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var registryPullTests = Describe("pull", func() {
args = []string{registryCmd, pullCmd, newReg, "--plain-http", "--config", configFile}
})
pullAssertFailedBehavior(registryPullUsage, fmt.Sprintf("ERROR unable to create new repository with ref %s: "+
"invalid reference: invalid digest; invalid checksum digest format\n", newReg))
"invalid reference: invalid digest \"something\"; invalid checksum digest format\n", newReg))
})

When("invalid platform", func() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/push/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ var registryPushTests = Describe("push", func() {
args = []string{registryCmd, pushCmd, newReg, rulesfiletgz, "--config", configFile, "--type", "rulesfile", "--version", "1.1.1", "--plain-http"}
})
pushAssertFailedBehavior(registryPushUsage, fmt.Sprintf("ERROR unable to create new repository with ref %s: "+
"invalid reference: invalid digest; invalid checksum digest format\n", newReg))
"invalid reference: invalid digest \"something\"; invalid checksum digest format\n", newReg))
})

When("invalid requirement", func() {
Expand Down

0 comments on commit 2031ef5

Please sign in to comment.