feat: add WebUI support for custom YAML playbook uploads#99
Draft
barnabasbusa wants to merge 1 commit intomasterfrom
Draft
feat: add WebUI support for custom YAML playbook uploads#99barnabasbusa wants to merge 1 commit intomasterfrom
barnabasbusa wants to merge 1 commit intomasterfrom
Conversation
This commit adds functionality to upload custom YAML test configuration files directly through the WebUI, in addition to the existing URL-based registration method. Changes: - Add new `/api/v1/tests/register_upload` API endpoint for file uploads - Modify WebUI register test modal to support both URL and file upload methods - Add radio button toggle to switch between "From URL" and "Upload File" modes - Support multipart form uploads with custom name and config overrides - Include metadata about uploaded files in test configuration - Maintain backward compatibility with existing URL-based registration The new upload functionality allows users to: 1. Select local YAML test configuration files 2. Override test names and add custom configuration 3. Upload files up to 10MB in size 4. View helpful form guidance text Example usage: Upload cgc-test.yaml for CGC validation testing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/v1/tests/register_uploadAPI endpoint for multipart form uploadsChanges Made
/api/v1/tests/register_uploadthat accepts multipart form dataFeatures
.yamland.ymlfilesUI Changes
The register test modal now includes:
.yaml/.ymlfile type restrictionsAPI Changes
POST /api/v1/tests/register_uploadmultipart/form-dataplaybook(file): YAML test configuration filename(optional): Custom test name overrideconfig(optional): YAML configuration overridesconfigVars(optional): YAML configuration variablesTest plan
Example
Included
cgc-test.yamldemonstrates the new upload functionality for CGC validation testing.🤖 Generated with Claude Code