Sebastiaan van Stijn
6868d273ec
replace github.com/golang/snappy with klauspost/compress/snappy
...
The github.com/golang/snappy repository was archived and is no longer
maintained. klauspost/compress provides a drop-in replacement, which
is actively maintained, and the klauspost/compress module is already
an existing (indirect) dependency.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-03-26 22:58:08 +01:00
Brian DeHamer
b7cea1d935
test fixup
...
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-10-22 08:56:13 -07:00
copilot-swe-agent[bot]
74ac20671c
Update release verify commands to use sentinel value
...
Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com>
2025-10-22 15:26:36 +00:00
Eugene
9e54a6242b
Update pkg/cmd/attestation/api/client.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-23 11:05:41 -04:00
ejahnGithub
3ba03e3200
add initiator_type for attestations
2025-09-23 10:59:07 -04:00
ejahnGithub
71c2361dfc
add unit test
2025-05-30 08:17:21 -07:00
Meredith Lancaster
164a56cb66
move filterAttestations function
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-04-03 11:02:45 -06:00
Meredith Lancaster
13dafefcb5
add missing nil struct checks and udpate error messages
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-04-01 11:23:25 -06:00
Meredith Lancaster
166e211e2b
clean up test fixtures
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-25 08:28:33 -06:00
Meredith Lancaster
e3fbe9008f
reduce test duplication
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-25 08:25:00 -06:00
Meredith Lancaster
baeaf66011
restructure api client methods
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-24 19:13:27 -06:00
Meredith Lancaster
0d0654738b
simplify client methods
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-24 18:58:35 -06:00
Meredith Lancaster
a9cc7b481e
create single fetch by digest client method
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-24 18:28:27 -06:00
Meredith Lancaster
95a61974bf
pass params object to api client methods
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-24 18:01:57 -06:00
Meredith Lancaster
a78c06970a
pass predicate type to get attestation api methods
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-03-24 17:28:00 -06:00
Cody Soyland
ad2cfe074f
Add mutex to fix race in attestation test client
...
Signed-off-by: Cody Soyland <codysoyland@github.com>
2025-02-13 10:18:30 -05:00
Meredith Lancaster
fc2f18c896
consolidate tests around getBundle func when possible
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-30 11:12:58 -07:00
Meredith Lancaster
795263524d
change permanent backoff error condition
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-30 11:11:41 -07:00
Meredith Lancaster
e9f7761423
dont retry when parsing fails
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-30 09:56:06 -07:00
Meredith Lancaster
dcb182b453
Merge branch 'trunk' into attestation-bundle-fetch-improvements
2025-01-30 09:53:27 -07:00
Meredith Lancaster
70ae9f39ef
update tests to account for logic flip
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-30 09:26:41 -07:00
Meredith Lancaster
ddb8855198
flip bundle fetching logic
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-30 09:12:48 -07:00
Meredith Lancaster
5df2b47d1f
update tests
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-24 09:30:46 -07:00
Meredith Lancaster
1d807c2291
add missing return statement
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 12:50:58 -07:00
Meredith Lancaster
611eb86e68
method update
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 12:47:25 -07:00
Meredith Lancaster
b7f6af03b5
update no attestations found err
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 12:42:10 -07:00
Meredith Lancaster
fc0d0210c0
remove old tests
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 12:21:27 -07:00
Meredith Lancaster
5462582401
drop unneeded methods
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 11:05:17 -07:00
Meredith Lancaster
40e7353b52
deduplicate get attestation code
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 11:02:33 -07:00
Meredith Lancaster
4d99ae920c
fix tests
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 10:34:06 -07:00
Meredith Lancaster
c7d04c980b
update testing
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-13 08:34:15 -07:00
Meredith Lancaster
8ad877b188
add check for invalid attestation
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-08 08:38:43 -07:00
Meredith Lancaster
33d0002d21
update tests to use new function name
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 15:22:02 -07:00
Meredith Lancaster
8d89dd97fd
Update pkg/cmd/attestation/api/client.go
...
Co-authored-by: Phill MV <phillmv@github.com>
2025-01-07 15:14:53 -07:00
Meredith Lancaster
51a74aed1d
Update pkg/cmd/attestation/api/client.go
...
Co-authored-by: Phill MV <phillmv@github.com>
2025-01-07 15:14:23 -07:00
Meredith Lancaster
42cb2547cd
remove old comment
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 14:13:50 -07:00
Meredith Lancaster
f46cccbab4
comment
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 12:03:49 -07:00
Meredith Lancaster
258c69cd26
undo more name chanages
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 11:56:05 -07:00
Meredith Lancaster
0a602fae07
undo other name change
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 11:54:02 -07:00
Meredith Lancaster
7838e912b6
more mock http client cleanup
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 11:37:02 -07:00
Meredith Lancaster
9d88ca8cf8
simplify mock http client
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 11:32:49 -07:00
Meredith Lancaster
ecf55c6c16
use mock to assert number of http calls
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 10:54:17 -07:00
Meredith Lancaster
e34e188ee2
add http client test constructors
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 10:43:24 -07:00
Meredith Lancaster
9ecd90c26c
setup testing struct for test cases
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-07 10:24:42 -07:00
Meredith Lancaster
69865117ab
add mutex for test field
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 13:14:02 -07:00
Meredith Lancaster
0202ca8df5
add test case for bundle url fetch failure
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 12:58:09 -07:00
Meredith Lancaster
e03a36ea3c
add tests for bundle url fetch and fallback
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 12:12:26 -07:00
Meredith Lancaster
070b67e5a4
fetch bundles in parallel
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 10:44:55 -07:00
Meredith Lancaster
311f2b2e23
return fetch attestations err directly
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 10:39:40 -07:00
Meredith Lancaster
9051da39fc
provide additional logging and fallback
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-01-06 10:19:47 -07:00