mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* fix(config): a started configuration recorder keeps recording across a restart Whether a recorder was recording, and when it last started and stopped, lived in memory while the recorder itself was persisted. After a restart with persistent storage every recorder reported recording=false, so Terraform's aws_config_configuration_recorder_status planned to start it again on every refresh, and a deployment that relies on Config looked off. The three are now persisted alongside the recorders. docs/services/config.md notes that the recording state persists. * test(config): assert recorder start and stop times survive a restart The restart test only checked recording(), so reverting either timestamp store to memory left it green. It now captures lastStartTime after the start and lastStopTime after the stop, and asserts each keeps its exact value through a reload. * test(config): restart AWS Config persistence tests through files on disk The restart tests shared one set of in-memory stores between service instances, so nothing was written or read back and a broken save or load of the recorder state stayed green. Each simulated restart now builds a fresh factory whose backends are new PersistentStorage files in a temporary directory, loaded from disk, including the restart after the recorder is deleted. * test(config): drop blank lines left at the top of the persistence tests * test(config): restart persistence tests through StorageFactories.open