Skip to content

Commit

Permalink
docs(cli): name inspect --verify (#10308)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Norman <[email protected]>
  • Loading branch information
lidel and 2color authored Jan 17, 2024
1 parent e11d7b0 commit c0d7da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/commands/name/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Passing --verify will verify signature against provided public key.

if out.Validation == nil {
tw.Flush()
fmt.Fprintf(w, "\nThis record was not validated.\n")
fmt.Fprintf(w, "\nThis record was not verified. Pass '--verify k51...' to verify.\n")
} else {
tw.Flush()
fmt.Fprintf(w, "\nValidation results:\n")
Expand Down
4 changes: 2 additions & 2 deletions test/cli/name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func TestName(t *testing.T) {

res = node.PipeToIPFS(bytes.NewReader(record), "name", "inspect")
out := res.Stdout.String()
require.Contains(t, out, "This record was not validated.")
require.Contains(t, out, "This record was not verified.")
require.Contains(t, out, publishPath)
require.Contains(t, out, "30m")

Expand All @@ -198,7 +198,7 @@ func TestName(t *testing.T) {
t.Parallel()
res = node.PipeToIPFS(bytes.NewReader(record), "name", "inspect")
out := res.Stdout.String()
require.Contains(t, out, "This record was not validated.")
require.Contains(t, out, "This record was not verified.")
require.Contains(t, out, publishPath)
require.Contains(t, out, "30m")
require.Contains(t, out, "Signature Type: V1+V2")
Expand Down

0 comments on commit c0d7da2

Please sign in to comment.