From 85b29df4208b83c1949032db56c8d76e8c76b705 Mon Sep 17 00:00:00 2001 From: alpaylan Date: Wed, 14 Apr 2021 16:36:42 +0300 Subject: embed user passwds to the code structs. --- tests/route_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/route_tests.rs') diff --git a/tests/route_tests.rs b/tests/route_tests.rs index 7c0651f..5c2d891 100644 --- a/tests/route_tests.rs +++ b/tests/route_tests.rs @@ -12,7 +12,7 @@ mod tests { db.users.write().insert( "mock_transaction_source".to_owned(), User { - user_id: MetuId::new("e254275".to_owned()).unwrap(), + user_id: MetuId::new("e254275".to_owned(), "DtNX1qk4YF4saRH".to_owned()).unwrap(), public_key: "-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4nU0G4WjkmcQUx0hq6LQ uV5Q+ACmUFL/OjoYMDwC/O/6pCd1UZgCfgHN2xEffDPznzcTn8OiFRxr4oWyBiny @@ -56,6 +56,7 @@ sQIDAQAB fn priviliged_mocked_user() -> AuthRequest { AuthRequest { student_id: String::from("e254275"), + passwd: String::from("DtNX1qk4YF4saRH"), public_key: "NOT IMPLEMENTED".to_owned(), } } @@ -64,6 +65,7 @@ sQIDAQAB fn unpriviliged_mocked_user() -> AuthRequest { AuthRequest { student_id: String::from("foobarbaz"), + passwd: String::from("DtNX1qk4YF4saRH"), public_key: "NOT IMPLEMENTED".to_owned(), } } -- cgit v1.2.3-70-g09d2