-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HACBS-2405): add a setup script for tekton task testing
The new tekton dir will be used for storing init scripts for tekton task testing in the release-service-bundles repo. This change is needed by konflux-ci/release-service-catalog#159 Signed-off-by: Martin Malina <[email protected]>
- Loading branch information
Showing
4 changed files
with
58 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Description: This script is meant to set up mocks at the beginning | ||
# of each step of the push-sbom-to-pyxis task. | ||
|
||
function cosign() { | ||
echo Mock cosign called with: $* | ||
|
||
if [[ "$*" != "download sbom --output-file myImageID"[12]".json imageurl"[12] ]] | ||
then | ||
echo Error: Unexpected call | ||
exit 1 | ||
fi | ||
|
||
touch /workdir/sboms/${4} | ||
} | ||
|
||
function upload_sbom() { | ||
echo Mock upload_sbom called with: $* | ||
|
||
if [[ "$*" != "--retry --sbom-path "*".json" ]] | ||
then | ||
echo Error: Unexpected call | ||
exit 1 | ||
fi | ||
} |
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,16 @@ | ||
# Description: This script is meant to set up mocks at the beginning | ||
# of each step of the push-sbom-to-pyxis task. | ||
|
||
function cosign() { | ||
echo Mock cosign called with: $* | ||
|
||
echo Error: cosign should not be called | ||
exit 1 | ||
} | ||
|
||
function upload_sbom() { | ||
echo Mock upload_sbom called with: $* | ||
|
||
echo Error: upload_sbom should not be called | ||
exit 1 | ||
} |
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,16 @@ | ||
# Description: This script is meant to set up mocks at the beginning | ||
# of each step of the push-sbom-to-pyxis task. | ||
|
||
function cosign() { | ||
echo Mock cosign called with: $* | ||
|
||
echo Error: cosign should not be called | ||
exit 1 | ||
} | ||
|
||
function upload_sbom() { | ||
echo Mock upload_sbom called with: $* | ||
|
||
echo Error: upload_sbom should not be called | ||
exit 1 | ||
} |