mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
DeleteKeyPair with KeyName mutated the detached list returned by StorageBackend.scan, which is documented not to affect the store — so the call reported success while leaving the key pair in place. Resolve matching key pairs to their store key and delete through the backend instead. The only existing DeleteKeyPair test passed KeyPairId, the branch that already worked, and asserted just a 200; DeleteKeyPair always returns true, so the no-op was invisible. Cover the by-name path and assert removal rather than status. Closes #2185