Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/credential-store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ pub const HUMAN_STORE: &str = human_store(cfg!(debug_assertions));

pub const fn human_service(debug: bool) -> &'static str {
if debug {
"xyz.block.buzz.desktop.identity.debug"
"xyz.block.buzz.desktop.identity.debug.onboarding" // DO NOT MERGE
} else {
"xyz.block.buzz.desktop.identity"
}
}

pub const fn human_store(debug: bool) -> &'static str {
if debug {
"dev.local.buzz.foundation.identity.debug"
"dev.local.buzz.foundation.identity.debug.onboarding" // DO NOT MERGE
} else {
"dev.local.buzz.foundation.identity"
}
Expand Down
7 changes: 5 additions & 2 deletions crates/credential-store/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,15 @@ fn home_child() {
#[test]
fn human_identity_slots_stay_separate() {
assert_eq!(HUMAN_ACCOUNT, "human");
assert_eq!(human_service(true), "xyz.block.buzz.desktop.identity.debug");
assert_eq!(
human_service(true),
"xyz.block.buzz.desktop.identity.debug.onboarding"
);
assert_eq!(human_service(false), "xyz.block.buzz.desktop.identity");
assert_eq!(HUMAN_SERVICE, human_service(cfg!(debug_assertions)));
assert_eq!(
human_store(true),
"dev.local.buzz.foundation.identity.debug"
"dev.local.buzz.foundation.identity.debug.onboarding"
);
assert_eq!(human_store(false), "dev.local.buzz.foundation.identity");
assert_eq!(HUMAN_STORE, human_store(cfg!(debug_assertions)));
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/identity/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn development_and_release_items_are_separate() {
assert_eq!(
credentials::HUMAN_SERVICE,
if cfg!(debug_assertions) {
"xyz.block.buzz.desktop.identity.debug"
"xyz.block.buzz.desktop.identity.debug.onboarding"
} else {
"xyz.block.buzz.desktop.identity"
}
Expand Down
Loading