Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run LDAP tests in another Rails test environment #16910

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

eduardoj
Copy link
Member

@eduardoj eduardoj commented Oct 2, 2024

For reviewers

First, make sure that the file src/api/config/database.yml has an test_ldap entry.

To run the tests in the new environment:

docker compose -f docker-compose.yml -f docker-compose.openldap.yml build
docker compose -f docker-compose.yml -f docker-compose.openldap.yml up
docker compose -f docker-compose.yml -f docker-compose.openldap.yml exec frontend bash
> RAILS_ENV=test_ldap bin/rspec spec/models/user_ldap_strategy_spec.rb

This container will be used to run our test suite against it when ldap
is configured.
@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Oct 2, 2024
@eduardoj eduardoj force-pushed the feature/dev_env_introduce_openldap_server branch from e740a79 to 7260789 Compare October 2, 2024 07:01
@eduardoj eduardoj changed the title Move LDAP tests to another Rails environment Run LDAP tests in another Rails test environment Oct 2, 2024
@eduardoj eduardoj force-pushed the feature/dev_env_introduce_openldap_server branch from 7260789 to 77dc45c Compare October 2, 2024 08:49
@danidoni danidoni force-pushed the feature/dev_env_introduce_openldap_server branch from 67566ce to e3971a4 Compare October 2, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants