Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tmproto/robustness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func TestArtifactRef_Validate(t *testing.T) {
}{
{"valid url", ArtifactRef{Type: ArtifactRefTypeURL, Value: "https://x"}, "", ""},
{"missing value", ArtifactRef{Type: ArtifactRefTypeURL}, "value", ""},
{"unknown type", ArtifactRef{Type: "starlink", Value: "x"}, "type", "starlink"},
{"unknown type", ArtifactRef{Type: "starlink", Value: "x"}, "not a known ArtifactRefType", "starlink"},
}
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
Expand Down Expand Up @@ -270,7 +270,7 @@ func TestAssetAccess_Validate(t *testing.T) {
{"sa bad provider", AssetAccess{Method: AssetAccessMethodServiceAccount, Provider: "azure"}, "provider", "azure"},
{"signed ok", NewSignedURLAccess(), "", ""},
{"missing method", AssetAccess{}, "method: required", ""},
{"unknown method", AssetAccess{Method: "unknown"}, "method", "unknown"},
{"unknown method", AssetAccess{Method: "unknown"}, "not a known AssetAccessMethod", "unknown"},
}
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
Expand Down
Loading