test: additional coverage for clusters with services#274
test: additional coverage for clusters with services#274rshoemaker wants to merge 2 commits intomainfrom
Conversation
📝 WalkthroughWalkthroughThe PR introduces comprehensive golden test data and helper infrastructure for service resource operations in database updates. New JSON test fixtures define expected operation sequences for adding, removing, and managing services, alongside test stubs and expanded test cases for service-aware database state transitions. Changes
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@server/internal/database/operations/helpers_test.go`:
- Around line 180-274: The test stub serviceInstanceSpecResource currently
inherits AnyExecutor from orchestratorResource but must mirror the real
ServiceInstanceSpecResource by overriding Executor(); add a hostID (or hostId)
field to serviceInstanceSpecResource and implement Executor() to return
resource.HostExecutor(r.hostID) instead of the default, so plan grouping matches
production behavior (ensure the Identifier(), Dependencies(), and DiffIgnore
remain unchanged).
Follow-on PR that adds golden test coverage for service resources.
PLAT-412