Skip to content

Commit

Permalink
add to former commit
Browse files Browse the repository at this point in the history
Signed-off-by: rcohen <rcohen@armosec.io>
  • Loading branch information
rcohen committed Mar 27, 2023
1 parent d41282e commit 21a3241
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/storageclient/storage_client_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (sc *StorageHttpClientMock) PutData(key string, data any) error {
func (sc *StorageHttpClientMock) PostData(key string, data any) error {
return nil
}
func (sc *StorageHttpClientMock) GetResourceVersion(key string) string {
return "123"
}

func CreateStorageHttpClientFailureMock() *StorageHttpClientFailureMock {
var data spdxv1beta1.SBOMSPDXv2p3
Expand Down Expand Up @@ -83,7 +86,9 @@ func (sc *StorageHttpClientFailureMock) PutData(key string, data any) error {
func (sc *StorageHttpClientFailureMock) PostData(key string, data any) error {
return fmt.Errorf("error already exist")
}

func (sc *StorageHttpClientFailureMock) GetResourceVersion(key string) string {
return "123"
}
func (sc *StorageHttpClientFailureMock) IsAlreadyExist(err error) bool {
return true
}

0 comments on commit 21a3241

Please sign in to comment.