Skip to content

Integration tests for Elekto with GitHub oauth mocking#122

Open
oduludo wants to merge 5 commits intomainfrom
integration-tests
Open

Integration tests for Elekto with GitHub oauth mocking#122
oduludo wants to merge 5 commits intomainfrom
integration-tests

Conversation

@oduludo
Copy link
Collaborator

@oduludo oduludo commented Feb 14, 2026

This PR adds integration tests for the Elekto application. It's containerized with all required services being in the stack. A simple GitHub mocking service is included to simulate authorization flows and case sensitivity issues.

More integration tests have to be written still, but this PR introduces the foundational layer to do so.

@oduludo oduludo force-pushed the integration-tests branch 3 times, most recently from 10857e9 to 4aa0328 Compare February 14, 2026 13:50
@oduludo oduludo marked this pull request as ready for review February 14, 2026 14:15
AUTH_STATE = 'authentication'

# Github Endpoints
GITHUB_AUTHORIZE = 'https://github.com/login/oauth/authorize'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values effectively remain unchanged as long as there is no INTEGRATION_TEST env variable set to true.

POSTGRES_PASSWORD: root
volumes:
- pgdata:/var/lib/postgresql/data
- pgdata:/var/lib/postgresql
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./console --run
else
if [ $APP_CONNECT == "socket" ]; then
if [ "$APP_CONNECT" == "socket" ]; then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC I had to wrap this in tags because the elekto service wouldn't start in the integration test stack without these quotes. I'm not a bash specialist, but my impression is this change is fine.

@oduludo oduludo requested a review from jberkus February 14, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants