Load native PromptKit settings through application configuration version six
This commit is contained in:
@@ -21,7 +21,7 @@ func TestStepCompositionAcrossSourcesAndOverlays(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
write("notarius.yml", `version: 5
|
||||
write("notarius.yml", `version: 6
|
||||
config:
|
||||
imports:
|
||||
- path: one/pipeline.yml
|
||||
@@ -132,7 +132,7 @@ func TestStepIdentityRejectsDuplicatePeersWithoutRegisteringOtherLists(t *testin
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
for name, data := range map[string]string{
|
||||
"main.yml": "version: 5\nconfig:\n imports:\n - path: one.yml\n - path: two.yml\n",
|
||||
"main.yml": "version: 6\nconfig:\n imports:\n - path: one.yml\n - path: two.yml\n",
|
||||
"one.yml": "pipelines:\n session:\n " + tc.first + "\n",
|
||||
"two.yml": "pipelines:\n session:\n " + tc.second + "\n",
|
||||
} {
|
||||
@@ -150,7 +150,7 @@ func TestStepIdentityRejectsDuplicatePeersWithoutRegisteringOtherLists(t *testin
|
||||
func TestStepRecordInheritanceReplacesMatchingRecord(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
main := filepath.Join(root, "main.yml")
|
||||
if err := os.WriteFile(main, []byte(`version: 5
|
||||
if err := os.WriteFile(main, []byte(`version: 6
|
||||
pipelines:
|
||||
parent:
|
||||
input: {module: input}
|
||||
@@ -182,7 +182,7 @@ pipelines:
|
||||
|
||||
func TestIdentifiedStepInheritanceDoesNotCreateTemplateSteps(t *testing.T) {
|
||||
main := filepath.Join(t.TempDir(), "main.yml")
|
||||
if err := os.WriteFile(main, []byte(`version: 5
|
||||
if err := os.WriteFile(main, []byte(`version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: input}
|
||||
@@ -213,7 +213,7 @@ pipelines:
|
||||
|
||||
func TestIdentifiedValidatorRecordInheritanceResolves(t *testing.T) {
|
||||
main := filepath.Join(t.TempDir(), "main.yml")
|
||||
if err := os.WriteFile(main, []byte(`version: 5
|
||||
if err := os.WriteFile(main, []byte(`version: 6
|
||||
config:
|
||||
sequences:
|
||||
- destination: [pipelines, session, artifacts, result, extract, validators]
|
||||
@@ -257,7 +257,7 @@ pipelines:
|
||||
func TestEmptyStepOperationsAndOptionalImports(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
main := filepath.Join(root, "main.yml")
|
||||
if err := os.WriteFile(main, []byte(`version: 5
|
||||
if err := os.WriteFile(main, []byte(`version: 6
|
||||
config:
|
||||
imports:
|
||||
- path: absent.yml
|
||||
|
||||
Reference in New Issue
Block a user