-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #703 --------- Signed-off-by: laurentsimon <[email protected]>
- Loading branch information
1 parent
e2c7ca1
commit 54010d9
Showing
5 changed files
with
29 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,6 +305,23 @@ func Test_verifySourceURI(t *testing.T) { | |
expectedSourceURI: "https://github.com/some/repo", | ||
err: serrors.ErrorInvalidDssePayload, | ||
}, | ||
{ | ||
name: "match source no git no material ref (npm) v2 buildType", | ||
provBuildType: common.NpmCLIBuildTypeV2, | ||
provTriggerURI: "git+https://github.com/some/[email protected]", | ||
provMaterialsURI: "git+https://github.com/some/repo", | ||
expectedSourceURI: "https://github.com/some/repo", | ||
// NOTE: Unlike for v1, we expect the URIs in material and trigger to match. | ||
err: serrors.ErrorMalformedURI, | ||
}, | ||
{ | ||
name: "mismatch source material ref (npm) v2 builtType", | ||
provBuildType: common.NpmCLIBuildTypeV2, | ||
provTriggerURI: "git+https://github.com/some/[email protected]", | ||
provMaterialsURI: "git+https://github.com/some/[email protected]", | ||
expectedSourceURI: "https://github.com/some/repo", | ||
err: serrors.ErrorInvalidDssePayload, | ||
}, | ||
{ | ||
name: "match source no git no material ref (byob)", | ||
provBuildType: common.BYOBBuildTypeV0, | ||
|
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
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