Skip to content

Commit

Permalink
test: add sign up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Aug 9, 2024
1 parent 72de677 commit 0e7d8f0
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 305 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jsonwebtoken = "9.3.0"
log = "0.4"
metrics = { version = "0.23", default-features = false }
metrics-exporter-prometheus = { version = "0.15.3", default-features = false }
mime = "0.3"
oauth2 = "4.1"
once_cell = "1.19.0"
openssl = "*"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "master-server-testing"
services:
database:
container_name: test-database
image: postgres:12
image: postgres:16
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
Expand Down
2 changes: 1 addition & 1 deletion migrations/2024-08-02-114025_initial/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CREATE TABLE
"password_hash" TEXT NOT NULL,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP
)
);

CREATE TABLE
"oauth" (
Expand Down
4 changes: 2 additions & 2 deletions src/enums/errors/external/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ impl std::fmt::Display for ExternalError {
ExternalError::DeviceError(e) => write!(f, "{}", e),
ExternalError::CountryError(e) => write!(f, "{}", e),
ExternalError::SessionError(e) => write!(f, "{}", e),
ExternalError::SerializationError => write!(f, "Serialization error"),
ExternalError::Internal => write!(f, "Internal server error"),
ExternalError::SerializationError => write!(f, "SerializationError"),
ExternalError::Internal => write!(f, "InternalError"),
}
}
}
Expand Down
33 changes: 0 additions & 33 deletions src/tests/config.rs

This file was deleted.

65 changes: 0 additions & 65 deletions src/tests/e2e/auth/logout.rs

This file was deleted.

4 changes: 1 addition & 3 deletions src/tests/e2e/auth/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pub mod logout;
pub mod sign_in;
pub mod sign_up;
mod sign_up;
96 changes: 0 additions & 96 deletions src/tests/e2e/auth/sign_in.rs

This file was deleted.

Loading

0 comments on commit 0e7d8f0

Please sign in to comment.