Changes for .changelog/20261015_1430_why-tests-fail.md: 18 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
# Why tests fail (diagnosis only — no code changed)
`mvn test`: 129 run, 25 failures, 0 errors. Three root causes, all are committed source changes that the tests were never updated for. None comes from the pom bump to `org.etsi.osl.model.tmf` 2.0.0-SNAPSHOT.
## 1. `resourceStatus` no longer declared by specs — 20 failures
Commit `ec2aab4` ("resource changes") commented out `resourceUpdate.declareResourceStatus(ResourceStatusType.AVAILABLE);` in every spec (Core5G, Cpe, KubernetesCluster, MobilePhone, RadioEngineer, RadioNode, ResourceA/B, VirtualMachine, VpnAccess). The same commit added tests that assert it.
`ResourceRepoService.postPlanningResourceCallback` has `//callbackHeaders.put("org.etsi.osl.resourceStatus", status.name());` (also from `ec2aab4`). `assertStates` checks the status header first, so the X.731 headers are never reached. Those headers are probably correct.
Commit `f8db7c0` ("update pom.xml for dev") changed `profileFor`: creationCost `1.2+0.6n` → `10.0+0.1n`, operationCostPerHour `0.04+0.02n` → `0.0+0.2n` (operationCostPerHour will fail next once creationCost is fixed). The javadoc still promises the original flat profile at n=3.
## Decision needed
For each cause: either revert the code or update the tests/javadoc to match the new intent.
Changes for .changelog/index.md: 1 added line, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -2,6 +2,7 @@
| Doc | Description |
|---|---|
| [20261015_1430_why-tests-fail.md](20261015_1430_why-tests-fail.md) | Diagnosis of 25 failing tests: specs stopped declaring `resourceStatus` (20), planning callback no longer sends the `org.etsi.osl.resourceStatus` header (3), and KubernetesCluster cost coefficients were recalibrated without updating its tests (2). No code changed. |
| [20261003_1734_report-held-before-up-on-create.md](20261003_1734_report-held-before-up-on-create.md) | A real (non-simulation) `createResource` now writes a partial `HELD` update to the catalog before running the spec's `resourceLogic`, so the resource goes `PENDING -> HELD -> UP` like the planning path instead of jumping straight from `PENDING` to `UP`. |
| [20261001_1230_architecture-diagram-two-paths.md](20261001_1230_architecture-diagram-two-paths.md) | Redrew the guide's architecture diagram to separate the production and planning paths, and to show that planning callbacks land in the internal tentative planning inventory. |
| [20261001_1200_move-docs-to-changelog.md](20261001_1200_move-docs-to-changelog.md) | Moved change docs from `docs/` to `.changelog/`; `docs/` keeps only `writing-an-openslice-controller.md`, and the README now points to it. |