MCPcopy Create free account
hub / github.com/docker/docker-agent / TestExec_OpenAI_V3Config

Function TestExec_OpenAI_V3Config

e2e/exec_test.go:18–24  ·  view source on GitHub ↗

TestExec_OpenAI_V3Config tests that v3 configs work correctly with thinking disabled by default. This uses gpt-5 with a v3 config file to verify thinking is disabled for old config versions.

(t *testing.T)

Source from the content-addressed store, hash-verified

16// TestExec_OpenAI_V3Config tests that v3 configs work correctly with thinking disabled by default.
17// This uses gpt-5 with a v3 config file to verify thinking is disabled for old config versions.
18func TestExec_OpenAI_V3Config(t *testing.T) {
19 t.Parallel()
20 out := runCLI(t, "run", "--exec", "testdata/basic_v3.yaml", "What's 2+2?")
21
22 // v3 config with gpt-5 should work correctly (thinking disabled by default for old configs)
23 require.Equal(t, "4", out)
24}
25
26// TestExec_OpenAI_WithThinkingBudget tests that when thinking_budget is explicitly configured
27// in the YAML, thinking is enabled by default.

Callers

nothing calls this directly

Calls 1

runCLIFunction · 0.85

Tested by

no test coverage detected