upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-06-28 17:12:21 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-06-28 17:12:21 +0100
commit397080d94d8efdf2df95a1dc8dc82d4d7070028d (patch)
tree41146a6de506f405df956351208ccc41bf7ad1ff /tests
parent80599528e2a613791130dc59bcf346e223b6a30d (diff)
feat(login): login with nostr address via nip46
currently using patched version of rust-nostr with function to fetch nip46 relays from nip05 providers. this patch has been merged so it will make it into the next rust-nostr release.
Diffstat (limited to 'tests')
-rw-r--r--tests/login.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/login.rs b/tests/login.rs
index 9da2a0e..4cc2dbe 100644
--- a/tests/login.rs
+++ b/tests/login.rs
@@ -3,7 +3,7 @@ use git::GitTestRepo;
3use serial_test::serial; 3use serial_test::serial;
4use test_utils::*; 4use test_utils::*;
5 5
6static EXPECTED_NSEC_PROMPT: &str = "login with bunker uri / nsec"; 6static EXPECTED_NSEC_PROMPT: &str = "login with nostr address / nsec";
7static EXPECTED_LOCAL_REPOSITORY_PROMPT: &str = "just for this repository?"; 7static EXPECTED_LOCAL_REPOSITORY_PROMPT: &str = "just for this repository?";
8static EXPECTED_REQUIRE_PASSWORD_PROMPT: &str = "require password?"; 8static EXPECTED_REQUIRE_PASSWORD_PROMPT: &str = "require password?";
9static EXPECTED_SET_PASSWORD_PROMPT: &str = "encrypt with password"; 9static EXPECTED_SET_PASSWORD_PROMPT: &str = "encrypt with password";
@@ -909,7 +909,8 @@ mod with_offline_flag {
909 909
910 #[test] 910 #[test]
911 fn prompts_for_nsec_until_valid() -> Result<()> { 911 fn prompts_for_nsec_until_valid() -> Result<()> {
912 let invalid_nsec_response = "invalid. try again with nostr address / nsec"; 912 let invalid_nsec_response =
913 "invalid. try again with nostr address / bunker uri / nsec";
913 914
914 let test_repo = GitTestRepo::default(); 915 let test_repo = GitTestRepo::default();
915 let mut p = CliTester::new_from_dir(&test_repo.dir, ["login", "--offline"]); 916 let mut p = CliTester::new_from_dir(&test_repo.dir, ["login", "--offline"]);