test: adds testing #1
Merged
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.
This pull request introduces several enhancements and fixes across the codebase, focusing on task management, API updates, logging improvements, and test coverage. The most significant changes include the addition of new tasks in
Taskfile.yaml, updates to the MCP usage structure, and improvements to logging and test infrastructure.Task Management and Configuration Updates:
Taskfile.yamlfor generating code and fetching external APIs, including adownload-crdstask to fetch CRD files from external repositories (Taskfile.yaml) [1] [2].MCP Usage and API Changes:
MCPUsageSpecto make thedaily_usagefield optional by adding theomitemptytag (api/usage/v1/mcpusage_types.go).daily_usagefrom the required fields in the CRD manifest (api/crds/manifests/usage.openmcp.cloud_mcpusages.yaml).Logging Improvements:
logrfor consistency and better integration with the controller-runtime library (internal/controller/managedcontrolplane_controller.go) [1] [2] [3].Test Enhancements:
ChargingTargetresolver and MCP usage reconciliation logic (internal/helper/chargingtarget_test.go,internal/controller/managedcontrolplane_controller_test.go) [1] [2].internal/helper/suite_test.go).Dependency and Code Cleanup:
github.com/go-logr/logras a direct dependency ingo.modand removed its indirect reference for clarity (go.mod) [1] [2].MergeDailyUsagesfunction by removing redundant comments (internal/usage/helper.go).