Skip to content

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 pablothedude, phavekes and pmeulen 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.

4 participants