even more tests and docs and reorg
This commit is contained in:
1 parent
1acf4f17c9
commit
f17111a239
6 files changed
+193
-60
No files matched your search
@@ -136,6 +136,8 @@ State is persisted in an embedded `sled` database (default
|
||||
Relative paths in config are resolved under `data_dir`.
|
||||
|
||||
Enroll tokens are now expiring and revocable. Issuance returns `expires_at_unix`.
|
||||
Expired tokens are rejected on enroll and can be garbage-collected periodically
|
||||
or on demand.
|
||||
|
||||
### Quick start
|
||||
|
||||
@@ -270,6 +272,14 @@ cargo test --no-run
|
||||
cargo clippy --all-targets --all-features -- -D warnings
|
||||
```
|
||||
|
||||
Focused control-plane state tests:
|
||||
|
||||
```sh
|
||||
cargo test -p wakey-control-plane state::store::tests::gc_removes_expired_tokens
|
||||
cargo test -p wakey-control-plane state::store::tests::enroll_rejects_expired_token
|
||||
cargo test -p wakey-control-plane state::store::tests::stats_counts_agents_and_expired_tokens
|
||||
```
|
||||
|
||||
### On-device
|
||||
|
||||
Some integration tests are intentionally `#[ignore]` because they use real
|
||||
|
||||
Reference in new issue
Block a user