mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 14:06:37 +00:00
Random creds.
This commit is contained in:
parent
1d0d1cc382
commit
984800f1a8
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ impl TestApp {
|
||||||
pub async fn post_newsletters(&self, body: serde_json::Value) -> reqwest::Response {
|
pub async fn post_newsletters(&self, body: serde_json::Value) -> reqwest::Response {
|
||||||
reqwest::Client::new()
|
reqwest::Client::new()
|
||||||
.post(&format!("{}/newsletters", &self.address))
|
.post(&format!("{}/newsletters", &self.address))
|
||||||
|
.basic_auth(Uuid::new_v4().to_string(), Some(Uuid::new_v4().to_string()))
|
||||||
.json(&body)
|
.json(&body)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in a new issue