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

Added containers for testing #8707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BOHEUS
Copy link
Contributor

@BOHEUS BOHEUS commented Nov 24, 2024

Related to #8469 and #6641

Webhook.site container must be in compose file as it requires 3 containers, one of them being Redis which is already used by Twenty. To prevent any problems with running 2 Redis containers simultaneously, network was created to separate both containers.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added Docker container configurations for testing authentication and webhook functionality in the e2e testing environment.

  • Added mock-saml container setup in packages/twenty-e2e-testing/Makefile for SAML authentication testing
  • Added smtp4dev container in Makefile for email testing on ports 8090, 2525, and 143
  • Created isolated webhook testing environment in containers/webhook.yml with separate Redis instance to avoid conflicts
  • Configured webhook.site container with Laravel Echo server for real-time event handling
  • Requires configuration of public/private key pair for mock-saml container before use

2 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

packages/twenty-e2e-testing/Makefile Show resolved Hide resolved
Comment on lines +4 to +11
docker run \
--name mock_saml \
-p 4000:4000 \
-e APP_URL="http://localhost:4000" \
-e ENTITY_ID="https://saml.example.com/entityid" \
-e PUBLIC_KEY= \
-e PRIVATE_KEY= \
-d boxyhq/mock-saml
Copy link
Contributor

Choose a reason for hiding this comment

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

style: No restart policy specified - container will not automatically restart if it crashes

@charlesBochet
Copy link
Member

Hi @BOHEUS, thanks for all the PRs.

I'm missing context about this one, why do we need these containers for?
To me we should be able to run e2e tests against environment that are already up:

  • local
  • app.twenty-main.com (our new main/dev env)
  • demo.twenty.com (our demo env)
  • app.twenty.com (cloud prod)

@BOHEUS
Copy link
Contributor Author

BOHEUS commented Dec 18, 2024

The idea behind this was to help with testing locally if someone, who wants to run these tests, doesn't have needed accounts to run these tests (and prevent from being banned thanks to high usage of free online versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Planned
Development

Successfully merging this pull request may close these issues.

3 participants