Skip to content

Commit

Permalink
Use different parameters.yml in test
Browse files Browse the repository at this point in the history
The dev/prod parameters are distributed via OpenConext devconf. We
however run tests on a Travis environment. And ship a set of dev/test
keys which are referenced in the parameters.yaml
  • Loading branch information
MKodde authored and quartje committed Jul 14, 2023
1 parent 128df6b commit 88528ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ before_script:

# Install dependencies
- cp .env.ci .env
- cp config/packages/parameters.yaml.dist config/packages/parameters.yaml
- cp config/packages/parameters.yaml.ci config/packages/parameters.yaml
- composer install
- yarn install
- yarn encore dev
Expand Down
12 changes: 12 additions & 0 deletions config/packages/parameters.yaml.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is a "template" of what your parameters.yml file should look like
# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
parameters:
saml_idp_publickey: '%kernel.root_dir%/../../../../vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_publickey.cer'
saml_idp_privatekey: '%kernel.root_dir%/../../../../vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_privatekey.pem'
saml_metadata_publickey: '%kernel.root_dir%/../../../../vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_publickey.cer'
saml_metadata_privatekey: '%kernel.root_dir%/../../../../vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_privatekey.pem'
saml_remote_sp_entity_id: 'https://pieter.aai.surfnet.nl/simplesamlphp/module.php/saml/sp/metadata.php/default-sp'
saml_remote_sp_sso_url: '"https://pieter.aai.surfnet.nl/simplesamlphp/module.php/saml/sp/saml2-acs.php/default-sp"'
saml_remote_sp_certificate: '%kernel.root_dir%/../../../../vendor/surfnet/stepup-gssp-bundle/src/Resources/keys/pieter.aai.surfnet.nl.pem'
saml_remote_sp_acs: 'https://pieter.aai.surfnet.nl/simplesamlphp/module.php/saml/sp/saml2-acs.php/default-sp'

0 comments on commit 88528ea

Please sign in to comment.