feat: add all missing SDK operations with 100% test coverage - #39
Merged
Conversation
Migrate all existing operations from the old monolithic c.Node/ c.Schedule SDK client to the new per-domain services (c.Hostname, c.DNS, c.Cron, c.FileDeploy, etc.). Add ~75 new operation constructors for 13 domains: - Sysctl: List, Get, Create, Update, Delete - NTP: Get, Create, Update, Delete - Timezone: Get, Update - Service: List, Get, Create, Update, Delete, Start, Stop, Restart, Enable, Disable - Package: List, Get, Install, Remove, Update, ListUpdates - User: List, Get, Create, Update, Delete, ListKeys, AddKey, RemoveKey, ChangePassword - Group: List, Get, Create, Update, Delete - Certificate: List, Create, Update, Delete - Process: List, Get, Signal - Power: Reboot, Shutdown - Log: Query, Sources, QueryUnit - Interface: List, Get, Create, Update, Delete - Route: List, Get, Create, Update, Delete - DNS: Delete (new on existing domain) Add 12 new operation examples demonstrating each new domain. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Add 76 new documentation files across 13 new domain directories: sysctl, ntp, timezone, service, package, user, group, certificate, process, power, log, interface, route. Add dns-delete to existing network docs. Update operations README with full 101-operation count. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Add internal (httptest round-trip) and public (step-creation) tests for all 64 previously uncovered operations across interface, route, sysctl, NTP, timezone, service, package, user, group, certificate, process, power, and log domains. Update operation docs formatting. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Thank you for contributing to this project! 😊🕹️ |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #39 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 14 14
Lines 1865 3123 +1258
===========================================
+ Hits 1865 3123 +1258
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Update README and CLAUDE.md to reflect all 101 operations across 21 domains. Add missing operations to examples so every constructor is demonstrated. Create group.go example. Fix docker.go cleanup to use separate orchestrator pattern. Fix import order in test files. 🤖 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
Test plan
go test ./... -count=1passesgo tool cover -func=coverage.outshows 100% on all ops.go functionsgo build ./...compilescd examples/operations && go build *.gocompiles🤖 Generated with Claude Code