homelabby/internal/netbox
Mikkel Georgsen 7908d40af3 feat(05-02): add CreateCable method and CableRecord type to netbox client
- CableRecord type added to types.go (ID, HWID, Label, TestData, CatalogStatus)
- CreateCable(ctx, label, assetTag, testDataJSON) uses DcimCablesCreate
- Sets test_data and catalog_status custom fields; hw_id if assetTag non-empty
- Rejects empty label with sentinel error message
- Unit tests use httptest.NewUnstartedServer (201 success, 422 error, empty label)
2026-04-10 07:12:00 +00:00
..
client.go feat(05-02): add CreateCable method and CableRecord type to netbox client 2026-04-10 07:12:00 +00:00
client_test.go feat(05-02): add CreateCable method and CableRecord type to netbox client 2026-04-10 07:12:00 +00:00
custom_fields.go feat(02-03): POST /api/intake handler with orchestrator and NetBox wiring 2026-04-10 05:54:33 +00:00
custom_fields_test.go feat(02-03): POST /api/intake handler with orchestrator and NetBox wiring 2026-04-10 05:54:33 +00:00
hwid.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
hwid_test.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
provision.go feat(01-03): implement custom field provisioning with go-netbox v4 2026-04-10 05:21:23 +00:00
provision_test.go test(01-03): add failing tests for custom field spec and provisioning 2026-04-10 05:20:37 +00:00
tags.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
tags_test.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
types.go feat(05-02): add CreateCable method and CableRecord type to netbox client 2026-04-10 07:12:00 +00:00