add testing around OCI and API client
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
277af34e89
commit
5492f8974d
14 changed files with 88 additions and 32 deletions
|
|
@ -93,6 +93,9 @@ func loadBundlesFromJSONLinesFile(path string) ([]*api.Attestation, error) {
|
|||
}
|
||||
|
||||
func getRemoteAttestations(c FetchAttestationsConfig) ([]*api.Attestation, error) {
|
||||
if c.APIClient == nil {
|
||||
return nil, fmt.Errorf("api client must be provided")
|
||||
}
|
||||
// check if Repo is set first because if Repo has been set, Owner will be set using the value of Repo.
|
||||
// If Repo is not set, the field will remain empty. It will not be populated using the value of Owner.
|
||||
if c.Repo != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue