mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #419] Add MySQL/PostgreSQL integration tests #161
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JaneJeon on GitHub (Jan 13, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/419
Sort of a "continuation ticket" from #87, obviously the feature is working now as the changes have been hand-tested, but there's no guarantee that MySQL/PostgreSQL support will continue to work down the line, as the codebase continues to change.
Setting integration tests, especially in CI, will help ensure compatibility with PostgreSQL/MySQL. In practice, it will probably look like running the test suite multiple times (which is all the more reason to push this
manual laborwork to CI), each time with a different connection configuration (connecting the ORM/querybuilder to connect to the MySQL/PostgreSQL instances running in Docker).Thanks in advance.
@nitnelave commented on GitHub (Jan 13, 2023):
Thanks for keeping me honest :D
I wouldn't mind a hand on this one if someone has experience with GitHub actions to set up MySQL and postgres. @martadinata666 maybe?
I'll work on at least some basic integration tests working with SQLite, and we can override the database URL with an environment variable.
@martadinata666 commented on GitHub (Jan 14, 2023):
Creating job
testitself is not hard, but it justup and run, other lldap functionalityadd user, deletion, avatar, etci think should be come from lldap itself.Like maybe add
lldap run diagnostic, alikelldap run test-emailso lldap itself will throwerrorif something bad happen. 🤔@nitnelave commented on GitHub (Jan 24, 2023):
Thanks to @martadinata666 we now have very basic DB tests, where we try to stand up an LLDAP server and check that it reports itself as alive!
This is far from exercising all the functionality, but it's a very good start.
@nitnelave commented on GitHub (Aug 3, 2023):
The integration tests are now run on all DBs, so I'm closing this issue.