Skip to content

Commit b1a9569

Browse files
authored
fix: update firewall_args_integration_test for --allow-domains→allowDomains and strict mode id (#29753)
1 parent 37a92b2 commit b1a9569

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

pkg/workflow/firewall_args_integration_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Test workflow with custom AWF arguments.
8585
t.Error("Compiled workflow should exclude COPILOT_GITHUB_TOKEN via --exclude-env")
8686
}
8787

88-
if !strings.Contains(lockYAML, "--allow-domains") {
89-
t.Error("Compiled workflow should still contain '--allow-domains' flag")
88+
if !strings.Contains(lockYAML, "allowDomains") {
89+
t.Error("Compiled workflow should still contain 'allowDomains' in the AWF config JSON")
9090
}
9191

9292
if !strings.Contains(lockYAML, "--log-level") {
@@ -152,8 +152,8 @@ Test workflow without custom AWF arguments.
152152
t.Error("Compiled workflow should exclude COPILOT_GITHUB_TOKEN via --exclude-env")
153153
}
154154

155-
if !strings.Contains(lockYAML, "--allow-domains") {
156-
t.Error("Compiled workflow should contain '--allow-domains' flag")
155+
if !strings.Contains(lockYAML, "allowDomains") {
156+
t.Error("Compiled workflow should contain 'allowDomains' in the AWF config JSON")
157157
}
158158

159159
if !strings.Contains(lockYAML, "--log-level") {
@@ -321,6 +321,7 @@ permissions:
321321
engine: copilot
322322
sandbox:
323323
agent:
324+
id: awf
324325
version: v0.25.0
325326
---
326327

0 commit comments

Comments
 (0)