From 984800f1a81a563daf6ac29c004e7294a0d11c15 Mon Sep 17 00:00:00 2001 From: LukeMathWalker Date: Sat, 14 Aug 2021 23:01:18 +0100 Subject: [PATCH] Random creds. --- tests/api/helpers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/api/helpers.rs b/tests/api/helpers.rs index f3fd82a..2b97571 100644 --- a/tests/api/helpers.rs +++ b/tests/api/helpers.rs @@ -46,6 +46,7 @@ impl TestApp { pub async fn post_newsletters(&self, body: serde_json::Value) -> reqwest::Response { reqwest::Client::new() .post(&format!("{}/newsletters", &self.address)) + .basic_auth(Uuid::new_v4().to_string(), Some(Uuid::new_v4().to_string())) .json(&body) .send() .await