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

Make Behat tests Symfony 4 proof #130

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Mar 4, 2021

Some changes are required to get the Behat tests to work again

  1. The SF4 Nginx config is updated to enable smoke tests to run
  2. The behat contexts need to call console actions on bin/console, not app/console

MKodde added 2 commits March 4, 2021 10:59
By default, when the build is not in development mode, the production
debug=false option is used. When in dev mode, debug mode is engaged, and
a conditional smoketest env can be set if the testcookie was present.

Should be fine for production releases as they will not be polluted with
the additional config.

To pull this change run: './deploy-site-app.sh'

Should be rather compatible with the Stepup RV changes found here:
https://github.com/OpenConext/Stepup-Deploy/blob/572d09b8dc068710af3f39dcaccbca627293a9f7/roles/app/templates/php72-nginx-vhost-symfony4.conf.j2#L45-L51
app/console was used throughout this Context. This resulted in failing
behat tests.
@MKodde MKodde marked this pull request as draft March 4, 2021 10:14
@MKodde MKodde requested review from phavekes, pmeulen and pablothedude and removed request for phavekes March 4, 2021 10:14
}
{% endif %}

fastcgi_param SYMFONY_ENV $app_env;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would opt to hardcode this for production

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.

3 participants