This task seeks to establish an integration test pattern at the backend API endpoint interface.
Helpful items:
Consider using httpc-test crate for endpoint testing
Research and discuss use of a real test database vs use of a mock database provided by seaORM (note: some areas will be ripe for real DB, some ripe for mock DB)
Definition of Done:
Successfully seed a test database
Assert expected data on the /organization endpoint using the test data
The instructions in README.md for setting up a new user and granting schema permissions for that new user refactor_rs don't give the right permissions needed to successfully perform the up migration.
The failed run looks like:
DATABASE_URL=postgres://refactor_rs:password@localhost:5432/refactor_platform_rs sea-orm-cli migrate up -s refactor_platform_rs
Running `cargo run --manifest-path ./migration/Cargo.toml -- up -u postgres://refactor_rs:password@localhost:5432/refactor_platform_rs -s refactor_platform_rs`
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
Running `target/debug/migration up -u 'postgres://refactor_rs:password@localhost:5432/refactor_platform_rs' -s refactor_platform_rs`
Execution Error: error returned from database: no schema has been selected to create in
Fail to run migration
Establish baseline items needed to easily guide and onboard new contributors to the project (e.g. documentation additions, setting code patterns, GitHub templates, choose a license, convert repo to public, etc).
Definition of Done:
Project intro in README.md exists (i.e. what is the platform?)
GPLv3 license is put in place in the source tree
GitHub Issue and Pull Request templates are in place
Top documentation that defines what each Rust module is exists