Skip to content

Added tests for query and access endpoints #72

Added tests for query and access endpoints

Added tests for query and access endpoints #72

Triggered via push November 23, 2023 13:05
Status Success
Total duration 54s
Artifacts

check_format.yml

on: push
cargo fmt
22s
cargo fmt
Clippy lint and check
43s
Clippy lint and check
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
unused import: `crate::api::ecdar_api::handle_session`: src/api/../tests/api/ecdar_api.rs#L3
warning: unused import: `crate::api::ecdar_api::handle_session` --> src/api/../tests/api/ecdar_api.rs:3:9 | 3 | use crate::api::ecdar_api::handle_session; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth`: src/api/../tests/api/ecdar_api.rs#L4
warning: unused import: `crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth` --> src/api/../tests/api/ecdar_api.rs:4:9 | 4 | use crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::api::server::server::get_auth_token_request::user_credentials`: src/api/../tests/api/ecdar_api.rs#L5
warning: unused import: `crate::api::server::server::get_auth_token_request::user_credentials` --> src/api/../tests/api/ecdar_api.rs:5:9 | 5 | use crate::api::server::server::get_auth_token_request::user_credentials; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::api::server::server::get_auth_token_request::UserCredentials`: src/api/../tests/api/ecdar_api.rs#L6
warning: unused import: `crate::api::server::server::get_auth_token_request::UserCredentials` --> src/api/../tests/api/ecdar_api.rs:6:9 | 6 | use crate::api::server::server::get_auth_token_request::UserCredentials; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `CreateUserRequest`, `GetAuthTokenRequest`, `UpdateUserRequest`: src/api/../tests/api/ecdar_api.rs#L7
warning: unused imports: `CreateUserRequest`, `GetAuthTokenRequest`, `UpdateUserRequest` --> src/api/../tests/api/ecdar_api.rs:7:38 | 7 | use crate::api::server::server::{CreateUserRequest, GetAuthTokenRequest, UpdateUserRequest}; | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
unused imports: `entities::session::Model as Session`, `entities::user::Model as User`: src/api/../tests/api/ecdar_api.rs#L9
warning: unused imports: `entities::session::Model as Session`, `entities::user::Model as User` --> src/api/../tests/api/ecdar_api.rs:9:58 | 9 | api::server::server::ecdar_api_server::EcdarApi, entities::session::Model as Session, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | entities::user::Model as User, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `async_trait::async_trait`: src/api/../tests/api/ecdar_api.rs#L12
warning: unused import: `async_trait::async_trait` --> src/api/../tests/api/ecdar_api.rs:12:9 | 12 | use async_trait::async_trait; | ^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::database::database_context::DatabaseContextTrait`: src/api/../tests/api/ecdar_api.rs#L18
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/../tests/api/ecdar_api.rs:18:9 | 18 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::database::entity_context::EntityContextTrait`: src/api/../tests/api/ecdar_api.rs#L19
warning: unused import: `crate::database::entity_context::EntityContextTrait` --> src/api/../tests/api/ecdar_api.rs:19:9 | 19 | use crate::database::entity_context::EntityContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `UserContextTrait`, `UserContext`: src/api/../tests/api/ecdar_api.rs#L20
warning: unused imports: `UserContextTrait`, `UserContext` --> src/api/../tests/api/ecdar_api.rs:20:41 | 20 | use crate::database::user_context::{UserContext, UserContextTrait}; | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^