Verify native execution usage and delivery behavior
This commit is contained in:
@@ -220,7 +220,7 @@ func TestServeListenAndConfigurationFailures(t *testing.T) {
|
||||
t.Fatalf("serve configuration classification: %+v %q", outcome, diagnostics)
|
||||
}
|
||||
writeNativeFile(t, "bad-framework.yml", "profiles: [\n")
|
||||
writeNativeFile(t, "bad-framework-app.yml", "promptkit:\n configuration: bad-framework.yml\n")
|
||||
writeNativeFile(t, "bad-framework-app.yml", "config: {imports: [{path: bad-framework.yml, destination: [promptkit]}]}\n")
|
||||
for _, command := range []string{"run", "serve"} {
|
||||
args := []string{command}
|
||||
if command == "run" {
|
||||
@@ -228,7 +228,7 @@ func TestServeListenAndConfigurationFailures(t *testing.T) {
|
||||
}
|
||||
args = append(args, "--config=bad-framework-app.yml")
|
||||
outcome, _, diagnostics := executeNative(t, args...)
|
||||
if outcome.Status != 2 || !strings.Contains(diagnostics, "PromptKit configuration") || !strings.Contains(diagnostics, "yaml.invalid") {
|
||||
if outcome.Status != 2 || !strings.Contains(diagnostics, "Application configuration") || !strings.Contains(diagnostics, "yaml.invalid") {
|
||||
t.Fatalf("framework diagnostics: %+v %q", outcome, diagnostics)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user