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>2025-12-03 11:38:07 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-03 11:38:07 +0000
commite30dfd5e5abb96cdc89b80f1d085466e55c347e0 (patch)
treec12c1d54d30f0541c9689acbcb3b64d54cc8b996 /tests
parent2eaff5b79fed364d5eba5eb38e4b7bf76326884d (diff)
remove depricated audit mode label ci / production ~> isolated / shared
Diffstat (limited to 'tests')
-rw-r--r--tests/cors.rs2
-rw-r--r--tests/git_clone.rs2
-rw-r--r--tests/nip01_compliance.rs6
-rw-r--r--tests/nip11_document.rs2
-rw-r--r--tests/nip34_announcements.rs2
-rw-r--r--tests/push_authorization.rs2
-rw-r--r--tests/repository_creation.rs2
7 files changed, 9 insertions, 9 deletions
diff --git a/tests/cors.rs b/tests/cors.rs
index b5a0a87..a4e92bc 100644
--- a/tests/cors.rs
+++ b/tests/cors.rs
@@ -36,7 +36,7 @@ macro_rules! isolated_cors_test {
36 #[tokio::test] 36 #[tokio::test]
37 async fn $test_name() { 37 async fn $test_name() {
38 let relay = TestRelay::start().await; 38 let relay = TestRelay::start().await;
39 let config = AuditConfig::ci(); 39 let config = AuditConfig::isolated();
40 let client = AuditClient::new(relay.url(), config) 40 let client = AuditClient::new(relay.url(), config)
41 .await 41 .await
42 .expect("Failed to create audit client"); 42 .expect("Failed to create audit client");
diff --git a/tests/git_clone.rs b/tests/git_clone.rs
index c8a91a2..a6d810b 100644
--- a/tests/git_clone.rs
+++ b/tests/git_clone.rs
@@ -37,7 +37,7 @@ macro_rules! isolated_test {
37 #[tokio::test] 37 #[tokio::test]
38 async fn $test_name() { 38 async fn $test_name() {
39 let relay = TestRelay::start().await; 39 let relay = TestRelay::start().await;
40 let config = AuditConfig::ci(); 40 let config = AuditConfig::isolated();
41 let client = AuditClient::new(relay.url(), config) 41 let client = AuditClient::new(relay.url(), config)
42 .await 42 .await
43 .expect("Failed to create audit client"); 43 .expect("Failed to create audit client");
diff --git a/tests/nip01_compliance.rs b/tests/nip01_compliance.rs
index 6fb721a..045bddb 100644
--- a/tests/nip01_compliance.rs
+++ b/tests/nip01_compliance.rs
@@ -36,7 +36,7 @@ macro_rules! isolated_test {
36 #[tokio::test] 36 #[tokio::test]
37 async fn $test_name() { 37 async fn $test_name() {
38 let relay = TestRelay::start().await; 38 let relay = TestRelay::start().await;
39 let config = AuditConfig::ci(); 39 let config = AuditConfig::isolated();
40 let client = AuditClient::new(relay.url(), config) 40 let client = AuditClient::new(relay.url(), config)
41 .await 41 .await
42 .expect("Failed to create audit client"); 42 .expect("Failed to create audit client");
@@ -73,7 +73,7 @@ async fn test_relay_lifecycle() {
73 let url = relay.url().to_string(); 73 let url = relay.url().to_string();
74 74
75 // Verify we can connect 75 // Verify we can connect
76 let config = AuditConfig::ci(); 76 let config = AuditConfig::isolated();
77 let client = AuditClient::new(&url, config) 77 let client = AuditClient::new(&url, config)
78 .await 78 .await
79 .expect("Failed to connect to relay"); 79 .expect("Failed to connect to relay");
@@ -101,7 +101,7 @@ async fn test_parallel_relays() {
101 ); 101 );
102 102
103 // Both should be connectable 103 // Both should be connectable
104 let config = AuditConfig::ci(); 104 let config = AuditConfig::isolated();
105 105
106 let client1 = AuditClient::new(relay1.url(), config.clone()) 106 let client1 = AuditClient::new(relay1.url(), config.clone())
107 .await 107 .await
diff --git a/tests/nip11_document.rs b/tests/nip11_document.rs
index 2104ad0..147bb26 100644
--- a/tests/nip11_document.rs
+++ b/tests/nip11_document.rs
@@ -36,7 +36,7 @@ macro_rules! isolated_test {
36 #[tokio::test] 36 #[tokio::test]
37 async fn $test_name() { 37 async fn $test_name() {
38 let relay = TestRelay::start().await; 38 let relay = TestRelay::start().await;
39 let config = AuditConfig::ci(); 39 let config = AuditConfig::isolated();
40 let client = AuditClient::new(relay.url(), config) 40 let client = AuditClient::new(relay.url(), config)
41 .await 41 .await
42 .expect("Failed to create audit client"); 42 .expect("Failed to create audit client");
diff --git a/tests/nip34_announcements.rs b/tests/nip34_announcements.rs
index 2a83886..aa623d3 100644
--- a/tests/nip34_announcements.rs
+++ b/tests/nip34_announcements.rs
@@ -36,7 +36,7 @@ macro_rules! isolated_test {
36 #[tokio::test] 36 #[tokio::test]
37 async fn $test_name() { 37 async fn $test_name() {
38 let relay = TestRelay::start().await; 38 let relay = TestRelay::start().await;
39 let config = AuditConfig::ci(); 39 let config = AuditConfig::isolated();
40 let client = AuditClient::new(relay.url(), config) 40 let client = AuditClient::new(relay.url(), config)
41 .await 41 .await
42 .expect("Failed to create audit client"); 42 .expect("Failed to create audit client");
diff --git a/tests/push_authorization.rs b/tests/push_authorization.rs
index b9e0545..df291d5 100644
--- a/tests/push_authorization.rs
+++ b/tests/push_authorization.rs
@@ -38,7 +38,7 @@ macro_rules! isolated_push_test {
38 #[tokio::test] 38 #[tokio::test]
39 async fn $test_name() { 39 async fn $test_name() {
40 let relay = TestRelay::start().await; 40 let relay = TestRelay::start().await;
41 let config = AuditConfig::ci(); 41 let config = AuditConfig::isolated();
42 let client = AuditClient::new(relay.url(), config) 42 let client = AuditClient::new(relay.url(), config)
43 .await 43 .await
44 .expect("Failed to create audit client"); 44 .expect("Failed to create audit client");
diff --git a/tests/repository_creation.rs b/tests/repository_creation.rs
index 352e2cc..a1cca11 100644
--- a/tests/repository_creation.rs
+++ b/tests/repository_creation.rs
@@ -38,7 +38,7 @@ macro_rules! isolated_test {
38 #[tokio::test] 38 #[tokio::test]
39 async fn $test_name() { 39 async fn $test_name() {
40 let relay = TestRelay::start().await; 40 let relay = TestRelay::start().await;
41 let config = AuditConfig::ci(); 41 let config = AuditConfig::isolated();
42 let client = AuditClient::new(relay.url(), config) 42 let client = AuditClient::new(relay.url(), config)
43 .await 43 .await
44 .expect("Failed to create audit client"); 44 .expect("Failed to create audit client");