mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
Groundwork for moving the remaining resource types out of CloudFormationResourceProvisioner into per-service provisioners. No behaviour change: every type is provisioned and deleted as before. Make a dropped type fail loudly. The provision switch's default arm stubs an unknown type with a fake ARN and reports CREATE_COMPLETE, so a type that fell out of both the switch and the registry would pass every test while provisioning nothing. Adds registeredTypes() on the registry, a LEGACY_SWITCH_TYPES constant, a throwing default arm for a declared type with no arm, and a checked-in inventory of all 112 types and their owner. The inventory test runs under QuarkusTest so it compares against the CDI-resolved registry, catching a provisioner written without @ApplicationScoped. Fix delete precedence. The registry lookup in delete(StackResource, region) sat after a Custom:: prefix branch and nine attribute-aware special cases, so migrating one of those types would leave its provisioner's delete unreachable. The lookup now runs first, the nine branches sit behind a DELETE_NEEDS_STACK_RESOURCE set that gates them, and a duplicated AWS::Events::Rule block is removed. Replace 13 positional constructions with one fixture. Every test built the provisioner with 30-plus positional nulls, so each constructor change edited all of them. CfnProvisionerFixture gives one named setter per argument; removing the already-dead sqsService argument now touches only that file. Add the helpers the slices will use: ProvisionContext.isUpdate() and resolveTags, CfnDeletes.safeDelete with explicit tolerated error codes, and CfnDynamicReferences, which extracts 189 lines of dynamic-reference handling so a future RDS provisioner injects one collaborator instead of two unrelated services. resolveTags migrates no call sites: the seven existing copies disagree on real behaviour and each adopts it in its own slice. Also fixes AslExecutorTaskHistoryEventsTest, which does not compile on main: #2703 added it and #2688 then added a CustomResourceLiveness parameter to AslExecutor without updating the call.