summaryrefslogtreecommitdiff
path: root/server/src/tests.rs
AgeCommit message (Collapse)Author
2025-01-29Add git-server to docker-composeJoel Klinghed
To make a githook that can run on alpine images (using musl) they need to be cross-compiled. Then it became apparent that the githook binary was pulling in all the same dependencies as the server was. This is not good, but apparently also not something Rust/Cargo has figured out. RFC:s has been shutdown. workspace might be an option but then I probably need to also add a "code shared by both githook and server" library that both can link. Problem for another day.
2025-01-28Generate authorized_keys from user keysJoel Klinghed
2025-01-27Add user keys to databaseJoel Klinghed
Next step is to generate authorized_keys files for git server based on keys.
2025-01-26Fix tests after adding git reposJoel Klinghed
Use testdir to create directories to put test git in. Use custom test method to find githook binary. Stop using remote so that git repo doesn't try to fetch.
2025-01-09Improve (and test) error handlingJoel Klinghed
Non existent projects, users and such.
2025-01-09Add string id for project and reduce usage of numeric ids in generalJoel Klinghed
User: username must be unique, use as primary key and drop id.
2025-01-07Add remote & branch to project and reviewJoel Klinghed
Preparing for git connection.
2025-01-03Add more testsJoel Klinghed
Use project_check_maintainer correctly, should not panic (by .unwrap) but forward the error (by ?).
2025-01-03Add initital testsJoel Klinghed
Also add /users endpoint.