Commit graph

3246 commits

Author SHA1 Message Date
Meredith Lancaster
79fa437969 cleanup method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 21:33:26 -06:00
Meredith Lancaster
8177c6c473 formatting
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:41:41 -06:00
Meredith Lancaster
cf8f0ea611 add initial tests for tufrootverify cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:41:13 -06:00
Meredith Lancaster
24412d2072 remove unneeded table printer method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:00:58 -06:00
Meredith Lancaster
ff1e8e46de move mock client to test file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:54:36 -06:00
Meredith Lancaster
338f9cf78c return JSON results in slice instead of table
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:45:02 -06:00
Meredith Lancaster
11eba5e25d use cli table printer
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:19:32 -06:00
Meredith Lancaster
99111a3357 add more sigstore verifier specific tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:11:42 -06:00
Meredith Lancaster
5787fef7b4 start adding sigstore verifier unit tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:01:16 -06:00
Meredith Lancaster
587b318d1f PrintTableToStdOut returns err when rendering fails
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 13:03:22 -06:00
Meredith Lancaster
2cf02a4ca9 return err when an unsupported hash alg is provided
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:53:16 -06:00
Meredith Lancaster
3c2ded10a0 unexport fields
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:27:16 -06:00
Meredith Lancaster
8e3c197755 look for err specific to file write
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:23:34 -06:00
Meredith Lancaster
7f477afa5d include test case with failing metadata store
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:52:10 -06:00
Meredith Lancaster
39a76fdd90 switch to using MetadataStore abstraction
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:41:32 -06:00
Meredith Lancaster
06801fb5b1 try out metadata abstraction instead
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:32:07 -06:00
Meredith Lancaster
01260efddb check for noattestationsfound err
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 10:48:46 -06:00
Meredith Lancaster
af7f6996b9 Merge branch 'trunk' into gh-attestation-cmd 2024-03-14 10:18:05 -06:00
Victor Martinez
c0658b7ab4
feat: support dry-run in gh pr create (#8376) 2024-03-14 16:28:53 +01:00
Meredith Lancaster
9becdc5a26 add tests for CLI commands
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-13 07:46:57 -06:00
Meredith Lancaster
be8ce2b23a fix inconsistent naming
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 20:03:31 -06:00
Meredith Lancaster
7565cc4437 update comments
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:20:00 -06:00
Meredith Lancaster
310a54f0bd add comment around keychain option
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:08:41 -06:00
Meredith Lancaster
4ae0470dcd unexport top level subcommand funcs
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:05:02 -06:00
Meredith Lancaster
9ad3b220a3 switch over to using RunE
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:52:17 -06:00
Meredith Lancaster
0018903264 support repo option in download sub cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:35:56 -06:00
Meredith Lancaster
3ee14bbcb8 use table driven tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:07:14 -06:00
Meredith Lancaster
63b5872f5f cleanup unused tempdir handling
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:49:05 -06:00
Meredith Lancaster
f78e104054 use testing TempDir method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:47:23 -06:00
Meredith Lancaster
4690166e2b format file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:34:04 -06:00
Meredith Lancaster
54db553124 rename files
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:29:02 -06:00
Meredith Lancaster
38adc439cc add tests for oci client
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:27:51 -06:00
Meredith Lancaster
f055517baa create interface for oci client
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:12:45 -06:00
Meredith Lancaster
be6b042039 use the iostreams.Test helper func
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 14:48:00 -06:00
Meredith Lancaster
b8c9f96da7 typo
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:55:42 -06:00
Meredith Lancaster
f1a2f8f0fc use StringEnumFlag handling
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:46:19 -06:00
Meredith Lancaster
71480af106 rename file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:09:40 -06:00
Meredith Lancaster
e0fc8c7032 switch assert to require
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 11:58:08 -06:00
Meredith Lancaster
b42fc7302c
Merge branch 'trunk' into gh-attestation-cmd 2024-03-12 11:18:41 -06:00
Andy Feller
dc804d9287
Merge pull request #8778 from cli/repo_in_merge_prompt
feat: consistent issue and PR owner/repo#number in various prompt
2024-03-12 12:16:26 -04:00
Meredith Lancaster
5dbdb3e59f
Merge branch 'trunk' into gh-attestation-cmd 2024-03-07 11:17:18 -07:00
Greg Smith
df446b47fc fixed doc string 2024-03-06 14:08:59 -08:00
Meredith Lancaster
5ad63c0712 delete unused test data
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-06 14:43:54 -07:00
Meredith Lancaster
fbba7b5e40 pull over doc updates
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-06 14:41:30 -07:00
Meredith Lancaster
5492f8974d add testing around OCI and API client
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-06 11:39:32 -07:00
Meredith Lancaster
277af34e89 add missing logger
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-06 10:53:09 -07:00
Meredith Lancaster
4273980a42 add more verbose options and logging
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-06 07:57:23 -07:00
Meredith Lancaster
155a7c9111 move client initialization back to subcommands
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-05 17:48:26 -07:00
Meredith Lancaster
2923d106ff mark tuf-root-verify cmd hidden
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-05 16:21:55 -07:00
Meredith Lancaster
56261d7bcb rename command
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-05 16:20:45 -07:00