-
Notifications
You must be signed in to change notification settings - Fork 372
Fix integration tests: update domain checks from CLI flags to JSON config keys #29429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,10 +136,10 @@ Test protocol-specific domains in safe-outputs. | |
| } | ||
| } | ||
|
|
||
| // If checking AWF args, verify --allow-domains flag is present | ||
| // If checking AWF args, verify allowDomains key is present in the config JSON | ||
| if tt.checkAWFArgs { | ||
| if !strings.Contains(lockYAML, "--allow-domains") { | ||
| t.Error("Expected --allow-domains flag in compiled workflow") | ||
| if !strings.Contains(lockYAML, `"allowDomains"`) { | ||
| t.Error("Expected 'allowDomains' key in config JSON of compiled workflow") | ||
|
Comment on lines
+139
to
+142
|
||
| } | ||
| } | ||
|
|
||
|
|
@@ -301,8 +301,8 @@ Test backward compatibility with domains without protocols. | |
| } | ||
| } | ||
|
|
||
| // Verify --allow-domains flag is present | ||
| if !strings.Contains(lockYAML, "--allow-domains") { | ||
| t.Error("Expected --allow-domains flag in compiled workflow") | ||
| // Verify allowDomains key is present in the config JSON | ||
| if !strings.Contains(lockYAML, `"allowDomains"`) { | ||
| t.Error("Expected 'allowDomains' key in config JSON of compiled workflow") | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test now asserts that the compiled lock file does not contain the
blockDomainsJSON key, but the subtest name still says “does not have block-domains flag”. Renaming thet.Run(...)description to match the new JSON-config-based behavior will make failures easier to interpret.