Commit Graph

26 Commits

Author SHA1 Message Date
25fa9e74fa
Refactored to give username and password to login function as parameters, and use the clap framework to built the command line interface
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-23 23:35:30 +02:00
8e8dcece2d
lychee_session => &lychee_session in logout
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-21 17:10:17 +02:00
14d801d907
Added logout method and its correspoding tests
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-21 16:48:04 +02:00
e27c4e5f00
Added more tests for session::login
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-21 00:02:16 +02:00
f7ffe1473f
Refactored .env files to use more specific names, to avoid collision
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-20 11:48:27 +02:00
b6dd77f26d
Added a first draft for the client unit testing using mockito
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-20 11:47:13 +02:00
539bf51bab
Replaced dotenv::var with std::env::var
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-19 23:04:43 +02:00
567e750f73
Refactored to separate session and albums related functions
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-19 11:40:02 +02:00
a949f196c8
Added test body_to_str_not_empty
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-18 10:45:07 +02:00
cb9d1d50fd
Added test in CI/CD
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-18 10:22:54 +02:00
43750ab47a
Added test draft
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-18 10:21:47 +02:00
a07c11228f
Removed useless timelife
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-18 09:36:00 +02:00
c3882de838
Added get_albums and refactoring to make code more usable and less coupled
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 23:36:18 +02:00
6ef99ec389
Added json crate to dependencies
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 23:31:27 +02:00
80765c2bbd
Added USERNAME and PASSWORD fields in .env
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 23:30:41 +02:00
503323aac9
Added missing slash to LYCHEE_ENPOINT concatenation
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 10:19:36 +02:00
603e8127f9
Added string concatenation to only have to set the base URI for lychee instance
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 10:17:34 +02:00
d30656cc45
Added API_KEY to .env
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-17 10:16:46 +02:00
21fe4418f2
Added POST call for Session::init for demo purposes
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-16 22:20:46 +02:00
0907126f09
Added .env to gitignore
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-16 22:18:48 +02:00
70ca346e93
Switched to a .env config file
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-16 22:17:57 +02:00
43d9f7c71d
Updated Cargo.lock
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-15 10:05:30 +02:00
0a76255b75
Changed Rust edition for 2018
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-15 09:15:56 +02:00
3f5cfb7a14
Added CI configuration
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-15 09:12:33 +02:00
dc3a673818
Renamed Rust project
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-15 09:03:25 +02:00
71ff73799a
Initial commit
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-15 08:59:12 +02:00