-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #934 from n4ss/refactor-trust-inspect
Refactor trust view command into a --pretty flag on trust inspect
- Loading branch information
Showing
11 changed files
with
124 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
...ta/trust-view-full-repo-no-signers.golden → ...nspect-pretty-full-repo-no-signers.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
|
||
Signatures for signed-repo | ||
|
||
SIGNED TAG DIGEST SIGNERS | ||
green 677265656e2d646967657374 (Repo Admin) | ||
|
||
Administrative keys for signed-repo: | ||
Repository Key: targetsID | ||
Root Key: rootID | ||
Administrative keys for signed-repo | ||
|
||
Repository Key: targetsID | ||
Root Key: rootID |
12 changes: 8 additions & 4 deletions
12
.../trust-view-full-repo-with-signers.golden → ...pect-pretty-full-repo-with-signers.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
|
||
Signatures for signed-repo | ||
|
||
SIGNED TAG DIGEST SIGNERS | ||
blue 626c75652d646967657374 alice | ||
green 677265656e2d646967657374 (Repo Admin) | ||
red 7265642d646967657374 alice, bob | ||
|
||
List of signers and their keys for signed-repo: | ||
List of signers and their keys for signed-repo | ||
|
||
SIGNER KEYS | ||
alice A | ||
bob B | ||
|
||
Administrative keys for signed-repo: | ||
Repository Key: targetsID | ||
Root Key: rootID | ||
Administrative keys for signed-repo | ||
|
||
Repository Key: targetsID | ||
Root Key: rootID |
10 changes: 10 additions & 0 deletions
10
cli/command/trust/testdata/trust-inspect-pretty-one-tag-no-signers.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
Signatures for signed-repo:green | ||
|
||
SIGNED TAG DIGEST SIGNERS | ||
green 677265656e2d646967657374 (Repo Admin) | ||
|
||
Administrative keys for signed-repo:green | ||
|
||
Repository Key: targetsID | ||
Root Key: rootID |
14 changes: 14 additions & 0 deletions
14
cli/command/trust/testdata/trust-inspect-pretty-unsigned-tag-with-signers.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
No signatures for signed-repo:unsigned | ||
|
||
|
||
List of signers and their keys for signed-repo:unsigned | ||
|
||
SIGNER KEYS | ||
alice A | ||
bob B | ||
|
||
Administrative keys for signed-repo:unsigned | ||
|
||
Repository Key: targetsID | ||
Root Key: rootID |
Oops, something went wrong.