web3-proxy/web3_proxy/tests/test_users.rs

37 lines
862 B
Rust
Raw Normal View History

2023-06-29 22:41:21 +03:00
mod common;
use crate::common::TestApp;
use ethers::signers::Signer;
use tracing::info;
2023-06-29 22:41:21 +03:00
/// TODO: 191 and the other message formats in another test
#[cfg_attr(not(feature = "tests-needing-docker"), ignore)]
2023-06-29 22:41:21 +03:00
#[test_log::test(tokio::test)]
async fn test_log_in_and_out() {
let x = TestApp::spawn(true).await;
2023-06-29 22:41:21 +03:00
2023-06-29 23:12:35 +03:00
let w = x.wallet(0);
let login_url = format!("{}user/login/{:?}", x.proxy_provider.url(), w.address());
let login_response = reqwest::get(login_url).await.unwrap();
info!(?login_response);
// TODO: sign the message and POST it
// TODO: get bearer token out of response
// TODO: log out
2023-06-29 22:41:21 +03:00
todo!();
}
#[cfg_attr(not(feature = "tests-needing-docker"), ignore)]
#[ignore = "under construction"]
2023-06-29 22:41:21 +03:00
#[test_log::test(tokio::test)]
async fn test_referral_bonus() {
let x = TestApp::spawn(true).await;
2023-06-29 22:41:21 +03:00
todo!();
}