fix: resolve remaining integration test failures
- Add POST /tool-types/validate endpoint for pre-creation validation - Add ToolConfigUpdate model with optional fields for PUT endpoint - Fix tool_configs POST to return 201 status code - Fix tool_configs list endpoint to return list instead of dict - Fix tool_configs defaults endpoint to return 'suggested_configs' - Fix tool_types create endpoint to include category and interfaces - Add model_validator to enforce dockerfile/compose template requirements - Update tests to match API response format
This commit is contained in:
@@ -206,7 +206,7 @@ class TestToolConfigsAPIExtended:
|
||||
"display_name": "Defaults Tool",
|
||||
"default_port": 8080,
|
||||
"definition_type": "compose",
|
||||
"compose_template": "version: '3.8'\nservices:\n app:\n image: nginx",
|
||||
"compose_template": "version: '3.8'\nservices:\n app:\n image: nginx\n volumes:\n - \"{{REPO_PATH}}:/workspace\"\n",
|
||||
"required_variables": ["REPO_PATH"],
|
||||
},
|
||||
)
|
||||
@@ -252,5 +252,5 @@ class TestToolConfigsAPIExtended:
|
||||
assert data["port_override"] is None
|
||||
assert data["start_command"] is None
|
||||
assert data["working_directory"] is None
|
||||
assert data["environment_variables"] == {}
|
||||
assert data["volumes"] == []
|
||||
assert data["environment_variables"] is None
|
||||
assert data["volumes"] is None
|
||||
|
||||
Reference in New Issue
Block a user