Add E2E tests, fix bugs

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-13 05:17:48 +03:00
parent 1f98b5e958
commit 8f7deb3fca
71 changed files with 4740 additions and 29 deletions
+56
View File
@@ -0,0 +1,56 @@
# Module: unlock_state
## Purpose
Defines the state machine enum for the multi-step Docker image unlock workflow.
## Public Interface
### Enums
#### `UnlockState` (str, Enum)
| Value | String Representation |
|------------------|-----------------------|
| idle | `"idle"` |
| authenticating | `"authenticating"` |
| downloading_key | `"downloading_key"` |
| decrypting | `"decrypting"` |
| loading_images | `"loading_images"` |
| ready | `"ready"` |
| error | `"error"` |
Inherits from `str` and `Enum`, so `.value` returns the string name directly.
## Internal Logic
No logic — pure enum definition. State transitions are managed externally by `main.py`.
## Dependencies
- **Internal**: none (leaf module)
- **External**: `enum` (stdlib)
## Consumers
- `main` — uses `UnlockState` to track and report the unlock workflow progress
## Data Models
`UnlockState` is the data model.
## Configuration
None.
## External Integrations
None.
## Security
None.
## Tests
No tests found.