[roads] QA F-04: a dangling owner or group member drops only itself, not every plan
Deleting a person from directory.json without editing devices.json left a dangling owner, a snapshot error, and so no plans for anybody. A well-formed owner or member id that is not a person is now reported on its own codes (devices.owner-unknown, directory.member-unknown) and removed: the device is ownerless, the member leaves the group. Malformed ids, duplicates and bad JSON still stop every plan. Two new structural fixtures keep devices.owner and directory.member covered.
This commit is contained in:
@@ -56,10 +56,12 @@ pub const DIRECTORY_ID: &str = "directory.id";
|
||||
pub const DIRECTORY_DUPLICATE: &str = "directory.duplicate";
|
||||
pub const DIRECTORY_NAME: &str = "directory.name";
|
||||
pub const DIRECTORY_MEMBER: &str = "directory.member";
|
||||
pub const DIRECTORY_MEMBER_UNKNOWN: &str = "directory.member-unknown";
|
||||
pub const DEVICES_KEY: &str = "devices.key";
|
||||
pub const DEVICES_DUPLICATE: &str = "devices.duplicate";
|
||||
pub const DEVICES_NAME: &str = "devices.name";
|
||||
pub const DEVICES_OWNER: &str = "devices.owner";
|
||||
pub const DEVICES_OWNER_UNKNOWN: &str = "devices.owner-unknown";
|
||||
pub const DEVICES_ADDRESS: &str = "devices.address";
|
||||
pub const DEVICES_ROUTE: &str = "devices.route";
|
||||
pub const DEVICES_OVERLAP: &str = "devices.overlap";
|
||||
@@ -117,10 +119,12 @@ pub const ALL: &[&str] = &[
|
||||
DIRECTORY_DUPLICATE,
|
||||
DIRECTORY_NAME,
|
||||
DIRECTORY_MEMBER,
|
||||
DIRECTORY_MEMBER_UNKNOWN,
|
||||
DEVICES_KEY,
|
||||
DEVICES_DUPLICATE,
|
||||
DEVICES_NAME,
|
||||
DEVICES_OWNER,
|
||||
DEVICES_OWNER_UNKNOWN,
|
||||
DEVICES_ADDRESS,
|
||||
DEVICES_ROUTE,
|
||||
DEVICES_OVERLAP,
|
||||
|
||||
Reference in New Issue
Block a user