Skip to content

feat: add all missing SDK operations with 100% test coverage - #39

Merged
retr0h merged 4 commits into
mainfrom
feat/add-missing-sdk-operations
Apr 6, 2026
Merged

feat: add all missing SDK operations with 100% test coverage#39
retr0h merged 4 commits into
mainfrom
feat/add-missing-sdk-operations

Conversation

@retr0h

@retr0h retr0h commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add 64 new typed operation constructors covering interface, route, sysctl, NTP, timezone, service, package, user, group, certificate, process, power, and log domains
  • Add operation reference docs for all new domains with usage, parameters, result types, and examples
  • Add internal (httptest) and public (step-creation) tests achieving 100% statement coverage on ops.go

Test plan

  • go test ./... -count=1 passes
  • go tool cover -func=coverage.out shows 100% on all ops.go functions
  • go build ./... compiles
  • cd examples/operations && go build *.go compiles

🤖 Generated with Claude Code

retr0h and others added 3 commits April 6, 2026 11:45
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>
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

Thank you for contributing to this project! 😊🕹️

@codecov

codecov Bot commented Apr 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@             Coverage Diff             @@
##              main       #39     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           14        14             
  Lines         1865      3123   +1258     
===========================================
+ Hits          1865      3123   +1258     
Files with missing lines Coverage Δ
pkg/orchestrator/ops.go 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5446b99...1387886. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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>
@retr0h
retr0h merged commit 27b7542 into main Apr 6, 2026
8 of 9 checks passed
@retr0h
retr0h deleted the feat/add-missing-sdk-operations branch April 6, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant