Commit ab6070b2 authored by MrMan's avatar MrMan

Almost working e2e test, getting 404

parent b568116b
Pipeline #47811112 failed with stage
in 2 minutes and 51 seconds
use common::postmgr::models::user::MailboxUser;
pub fn test_user() -> MailboxUser {
MailboxUser {
email: String::from("test"),
password: String::from("test"),
quota: 5
......@@ -2,6 +2,9 @@ extern crate tempfile;
extern crate rand;
extern crate mail;
extern crate new_tokio_smtp;
extern crate postmgr;
pub mod fixtures;
use std::process::{Command, Stdio};
use std::net::{TcpListener, Ipv4Addr};
extern crate reqwest;
mod common;
use reqwest::header::COOKIE;
use crate::common::DockerizedPostmgr;
use std::net::TcpStream;
use std::io::{Write, BufRead, BufReader};
use reqwest::header::COOKIE;
mod common;
use crate::common::DockerizedPostmgr;
use crate::common::fixtures;
use common::{
......@@ -157,9 +158,10 @@ pub fn test_user_creation() {
let client = reqwest::Client::new();
// Add a new user
let url = format!("{}/{}", &base_url, "/users");
let resp =
let url = format!("http://{}/{}", &base_url, "users");
let test_user = fixtures::test_user();
let resp =
.expect("failed to POST new user");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment