Load native PromptKit settings through application configuration version six
This commit is contained in:
@@ -16,7 +16,7 @@ func TestDocumentRejectsExplicitInvalidBranches(t *testing.T) {
|
||||
if slot == "output" {
|
||||
body = "input: {module: input}\n output: {module: output, validators: []}"
|
||||
}
|
||||
_, err := loadConfigSource(configkit.Bytes("document.yml", []byte("version: 5\npipelines:\n session:\n "+body+"\n")), LoadOptions{})
|
||||
_, err := loadConfigSource(configkit.Bytes("document.yml", []byte("version: 6\npipelines:\n session:\n "+body+"\n")), LoadOptions{})
|
||||
assertDocumentDiagnosticAt(t, err, "/pipelines/session/"+slot+"/validators")
|
||||
})
|
||||
}
|
||||
@@ -27,7 +27,7 @@ func TestDocumentRejectsExplicitInvalidBranches(t *testing.T) {
|
||||
"{path: null, artifact: {step: previous, lane: registry}}",
|
||||
} {
|
||||
t.Run(value, func(t *testing.T) {
|
||||
content := fmt.Sprintf("version: 5\npipelines:\n session:\n input: {module: input}\n artifacts:\n lane:\n extract:\n module: extract\n references:\n party: %s\n", value)
|
||||
content := fmt.Sprintf("version: 6\npipelines:\n session:\n input: {module: input}\n artifacts:\n lane:\n extract:\n module: extract\n references:\n party: %s\n", value)
|
||||
_, err := loadConfigSource(configkit.Bytes("document.yml", []byte(content)), LoadOptions{})
|
||||
path := "/pipelines/session/artifacts/lane/extract/references/party"
|
||||
if value == "{path: ''}" || value == "{path: ' '}" || value == "{path: null, artifact: {step: previous, lane: registry}}" {
|
||||
@@ -40,7 +40,7 @@ func TestDocumentRejectsExplicitInvalidBranches(t *testing.T) {
|
||||
|
||||
func TestDocumentPreservesSupportedEmptyValidatorsAndReferenceForms(t *testing.T) {
|
||||
t.Parallel()
|
||||
loaded, err := loadConfigSource(configkit.Bytes("document.yml", []byte(`version: 5
|
||||
loaded, err := loadConfigSource(configkit.Bytes("document.yml", []byte(`version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: input}
|
||||
@@ -76,7 +76,7 @@ pipelines:
|
||||
func TestDocumentPipelineNormalizesCanonicalIdentifiers(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
loaded, err := loadDocumentSource(configkit.Bytes("document.yml", []byte(`version: 5
|
||||
loaded, err := loadDocumentSource(configkit.Bytes("document.yml", []byte(`version: 6
|
||||
pipelines:
|
||||
" session ":
|
||||
llm_profile: " local "
|
||||
@@ -127,7 +127,7 @@ func TestDocumentPipelineRejectsInvalidShapes(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "both pipeline forms",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim}
|
||||
@@ -140,7 +140,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "empty ordered steps",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim}
|
||||
@@ -150,7 +150,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "normalized pipeline collision",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session: {input: {module: seriatim}}
|
||||
" session ": {input: {module: seriatim}}
|
||||
@@ -159,7 +159,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "duplicate lane across ordered steps",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim}
|
||||
@@ -173,7 +173,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "invalid reference union",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim}
|
||||
@@ -201,7 +201,7 @@ func TestDocumentPipelineRejectsInvalidBindingPlacementAndPresence(t *testing.T)
|
||||
}{
|
||||
{
|
||||
name: "input validators",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input:
|
||||
@@ -212,7 +212,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "blank selected profile",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
llm_profile: " "
|
||||
@@ -222,7 +222,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "null validators",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim}
|
||||
@@ -232,7 +232,7 @@ pipelines:
|
||||
},
|
||||
{
|
||||
name: "negative retry budget",
|
||||
source: `version: 5
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim, retries: -1}
|
||||
|
||||
Reference in New Issue
Block a user