-
Notifications
You must be signed in to change notification settings - Fork 10
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
Service connections #136
Service connections #136
Conversation
Implemented a new ServiceConnection class to manage service connections in SCM. Created corresponding Pydantic models and unit tests to cover functionality for creating, updating, fetching, and listing service connections. This provides a robust, validated interface for interacting with SCM service connections.
- Added validation checks to ensure that months, days, hours, and minutes all have leading zeros - Added validation to ensure that years are numeric - Fixed previously skipped test test_schedule_create_model_invalid_date_format - Maintained backward compatibility with existing validation tests
This commit introduces tests for additional functionality, such as logger initialization in `ServiceConnection`, detailed date and time format validation in scheduling models, and Pydantic model configurations like `populate_by_name` and `validate_assignment`. These updates enhance test coverage and ensure stricter validation of input formats and configurations.
Introduced new documentation and model definitions for Service Connections in the SDK. Updated related configurations, examples, and navigation entries to reflect the support for managing service connections to cloud providers.
This update includes a new mapping for "service_connection" in the SCM client configuration. It ensures proper referencing of service connections in the deployment settings.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found.
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Added validation to ensure the `name` parameter is a non-empty, trimmed string and does not exceed 255 characters. Updated tests to cover edge cases for invalid `name` values, including empty strings, overly long names, and non-string types. Improved error handling and test coverage for fetch method when no exact name match is found.
Introduced Service Connection management, including CRUD operations, filtering, validation, and pagination. Enhanced API parameter validation and added detailed usage examples in the documentation. Updated version to 0.3.18.
User description
Checklist for This Pull Request
🚨Please adhere to the guidelines for contributing to this repository.
Pull Request Description
Adding support for service connections.
What does this pull request accomplish?
Are there any breaking changes included?
PR Type
Enhancement
Description
Add Service Connection management functionality
Implement ServiceConnection models and API methods
Update documentation for Service Connections
Enhance error handling and validation
Changes walkthrough 📝
12 files
Add service_connection mapping to SCM client
Import and expose ServiceConnection class
Implement ServiceConnection class with CRUD operations
Update network config imports and exports
Reorganize object imports and add __all__
Add __all__ for security configuration exports
Import and expose ServiceConnection models
Implement ServiceConnection Pydantic models
Reorganize network model imports and add __all__
Update object model imports and add __all__
Add __all__ for operations model exports
Add __all__ for security model exports
5 files
Add ServiceConnection factory classes for testing
Remove commented-out tests in remote networks
Add comprehensive tests for ServiceConnection class
Add tests for ServiceConnection Pydantic models
Enhance schedule model tests with date validation
6 files
Add service_connection to unified client services
Add Service Connections to deployment config docs
Add comprehensive Service Connections documentation
Add Service Connections to deployment models docs
Add Service Connection models documentation
Update navigation to include Service Connections
1 files