Make cross-configuration validation deterministic
This commit is contained in:
@@ -480,6 +480,18 @@ publish:
|
||||
}
|
||||
}
|
||||
|
||||
func TestScriptoriumOutputPathsIgnoreInvalidKeys(t *testing.T) {
|
||||
scriptorium := &ScriptoriumConfig{Artifacts: map[string]ScriptoriumArtifactConfig{
|
||||
" artifact": {OutputPath: "artifacts/invalid.md"},
|
||||
"artifact": {OutputPath: "artifacts/canonical.md"},
|
||||
}}
|
||||
|
||||
paths := scriptoriumOutputPathMap(scriptorium)
|
||||
if got := paths["artifact"]; got != "artifacts/canonical.md" {
|
||||
t.Fatalf("output path = %q, want canonical artifact declaration", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPublishLockValidation(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user