Skip to content

Commit

Permalink
Upgrade Symfony 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaky212 committed Dec 8, 2022
1 parent f890942 commit 3a2b53f
Show file tree
Hide file tree
Showing 309 changed files with 2,202 additions and 2,385 deletions.
95 changes: 0 additions & 95 deletions .env

This file was deleted.

50 changes: 43 additions & 7 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -35,60 +35,96 @@ DATABASE_URL="mysql://spdrw:secret@db.vm.openconext.org/spdashboard?serverVersio
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
MAILER_DSN=null://null
###< symfony/swiftmailer-bundle ###

locale=en
mailer_transport=smtp
mailer_host=127.0.0.1
mailer_user=null
mailer_password=null

# A secret key that's used to generate certain security-related tokens
secret=ThisTokenIsNotSoSecretChangeIt

session_max_absolute_lifetime=3600
session_max_relative_lifetime=600

logout_redirect_url='https=//www.surf.nl/over-surf/werkmaatschappijen/surfnet'
administrator_teams=['urn:collab:org:surf.nl', 'urn:collab:org:vm.openconext.org']
saml_sp_publickey='%kernel.root_dir%/../vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_publickey.cer'
saml_sp_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'

# All users in these teams get the administrator role
administrator_teams="'urn:collab:org:surf.nl','urn:collab:org:vm.openconext.org','urn:collab:org:dev.support.surfconext.nl'"

saml_sp_publickey='%kernel.project_dir%//vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_publickey.cer'
saml_sp_privatekey='%kernel.project_dir%//vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_privatekey.pem'
saml_metadata_publickey='%kernel.project_dir%//vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_publickey.cer'
saml_metadata_privatekey='%kernel.project_dir%//vendor/surfnet/stepup-saml-bundle/src/Resources/keys/development_privatekey.pem'
saml_remote_idp_entity_id='https://engine.vm.openconext.org/authentication/idp/metadata'
saml_remote_idp_host=engine.vm.openconext.org
saml_remote_idp_sso_url='https://engine.vm.openconext.org/authentication/idp/single-sign-on'
saml_remote_idp_certificate=MIIDuDCCAqCgAwIBAgIJAPdqJ9JQKN6vMA0GCSqGSIb3DQEBBQUAMEYxDzANBgNVBAMTBkVuZ2luZTERMA8GA1UECxMIU2VydmljZXMxEzARBgNVBAoTCk9wZW5Db25leHQxCzAJBgNVBAYTAk5MMB4XDTE1MDQwMjE0MDE1NFoXDTI1MDQwMTE0MDE1NFowRjEPMA0GA1UEAxMGRW5naW5lMREwDwYDVQQLEwhTZXJ2aWNlczETMBEGA1UEChMKT3BlbkNvbmV4dDELMAkGA1UEBhMCTkwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCeVodghQwFR0pItxGaJ3LXHA+ZLy1w/TMaGDcJaszAZRWRkL/6djwbabR7TB45QN6dfKOFGzobQxG1Oksky3gz4Pki1BSzi/DwsjWCw+Yi40cYpYeg/XM0tvHKVorlsx/7Thm5WuC7rwytujr/lV7f6lavf/ApnLHnOORU2h0ZWctJiestapMaC5mc40msruWWp04axmrYICmTmGhEy7w0qO4/HLKjXtWbJh71GWtJeLzG5Hj04X44wI+D9PUJs9U3SYh9SCFZwq0v+oYeqajiX0JPzB+8aVOPmOOM5WqoT8OCddOM/TlsL/0PcxByGHsgJuWbWMI1PKlK3omR764PAgMBAAGjgagwgaUwHQYDVR0OBBYEFLowmsUCD2CrHU0lich1DMkNppmLMHYGA1UdIwRvMG2AFLowmsUCD2CrHU0lich1DMkNppmLoUqkSDBGMQ8wDQYDVQQDEwZFbmdpbmUxETAPBgNVBAsTCFNlcnZpY2VzMRMwEQYDVQQKEwpPcGVuQ29uZXh0MQswCQYDVQQGEwJOTIIJAPdqJ9JQKN6vMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAIF9tGG1C9HOSTQJA5qL13y5Ad8G57bJjBfTjp/dw308zwagsdTeFQIgsP4tdQqPMwYmBImcTx6vUNdiwlIol7TBCPGuqQAHD0lgTkChCzWezobIPxjitlkTUZGHqn4Kpq+mFelX9x4BElmxdLj0RQV3c3BhoW0VvJvBkqVKWkZ0HcUTQMlMrQEOq6D32jGh0LPCQN7Ke6ir0Ix5knb7oegND49fbLSxpdo5vSuxQd+Zn6nI1/VLWtWpdeHMKhiw2+/ArR9YM3cY8UwFQOj9Y6wI6gPCGh/q1qv2HnngmnPrNzZik8XucGcf1Wm2zE4UIVYKW31T52mqRVDKRk8F3Eo=

# The default timeout for Curl requests when retrieving metadata
metadata_url_timeout=30

# Manage defaults

## Manage test instance
manage_test_host='https://manage.vm.openconext.org'
manage_test_username=sp-dashboard
manage_test_password=secret
manage_test_publication_status=testaccepted

## Manage production instance
manage_prod_host='https://manage.vm.openconext.org'
manage_prod_username=sp-dashboard
manage_prod_password=secret
manage_prod_publication_status=prodaccepted

## Teams test instance
teams_host='https://teams.vm.openconext.org'
teams_username=spdashboard
teams_password=secret

# Mail default settings
mail_from=support@surfconext.nl
mail_receiver=support@surfconext.nl
mail_no_reply=no-reply@surfconext.nl

# Jira settings
jira_host='https://jira.example.com'
jira_username=sp-dashboard
jira_password=secret
jira_enable_test_mode=true
surfnet_dashboard_repository_issue=DevelopmentIssueRepository

# By enabling 'jira_enable_test_mode', no real Jira backend is required to still simulate the Jira integration
#jira_enable_test_mode=true

# When 'jira_enable_test_mode' is enabled, 'jira_test_mode_storage_path' must be configured with a filename in a directory that is writable for the user run ning the application.
jira_test_mode_storage_path=../var/issues.json

# Jira default issue settings
jira_issue_priority=Medium
jira_issue_type=spd-delete-production-entity
jira_issue_type_publication_request=spd-request-production-entity
jira_issue_type_entity_change_request=spd-request-change-request-prod
jira_issue_entityid_fieldname=customfield_13018

# The label that is set for the manage id field, used to compose the JQL which identifies a custom field by its label
jira_issue_manageid_fieldname=customfield_13401
jira_issue_reporter_fieldname=customfield_99999
jira_issue_manageid_field_label='Manage entity ID'
jira_issue_project_key=CXT

# Playground uri's for OIDC entities
playground_uri_test='https://test.dev.playground.surfconext.nl'
playground_uri_prod='https://prod.dev.playground.surfconext.nl'

## Toggle display & content of global site notice. Use a date to ensure that multiple notification in short order do not interfere with each other (aka: th e user can close the first, and still see the second).
global_site_notice_show=false
global_site_notice_date='11.05.2021'
global_site_notice_allowed_tags='<a><u><i><br><wbr><strong><em><blink><marquee><p><ul><ol><dl><li><dd><dt><div><span><blockquote><hr><h2></h2><h3><h4><h5><h6>'

# Teams urn prefix, see: https://www.pivotaltracker.com/story/show/179572218/comments/227653860
team_prefix_default_stem_name='urn:collab:group:vm.openconext.org:'
team_prefix_group_name_context='demo:openconext:org:'

7 changes: 4 additions & 3 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
KERNEL_CLASS='Surfnet\ServiceProviderDashboard\Kernel'
APP_ENV=test
APP_DEBUG=false
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
DATABASE_URL="sqlite:////tmp/spdashboard-webtests.sqlite"
8 changes: 2 additions & 6 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,13 @@ jobs:
run: |
docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T php-fpm chmod 777 /var/www/html/var/{logs,cache}
- name: Copy parameters.yaml.dist to parameters.yaml
- name: Copy .env.dist to .env
run: |
docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T php-fpm cp /var/www/html/app/config/parameters.yml.dist /var/www/html/app/config/parameters.yml
docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T php-fpm cp /var/www/html/.env.dist /var/www/html/.env
- name: Wait until the spdashboard is accessable
run: |
docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T openconext sh /usr/local/sbin/spdup.sh
- name: Disable Symfony debug mode
run: |
docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T php-fpm sed -i s/\'dev\',\ true/\'dev\',\ false/g /var/www/html/web/app_dev.php
- name: Run cypress tests
run: docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T cypress cypress run --browser chrome
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.vagrant/
/ansible/*.retry
docker-compose.override.yml
app/js/coverage
assets/js/coverage
/build/
/var/*
!/var/cache
Expand All @@ -15,11 +15,12 @@ app/js/coverage
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/
/.idea
/node_modules
/web/build
/web/coverage
/.env
###> symfony 4 ###
/public/build/
###< symfony 4 ###

###> phpunit/phpunit ###
/phpunit.xml
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ before_install:

before_script:
- phpenv config-add travis.php.ini
- composer self-update --1
- composer install --no-interaction
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
Expand Down
7 changes: 0 additions & 7 deletions app/AppCache.php

This file was deleted.

67 changes: 0 additions & 67 deletions app/AppKernel.php

This file was deleted.

11 changes: 0 additions & 11 deletions app/autoload.php

This file was deleted.

14 changes: 0 additions & 14 deletions app/config/config.yml

This file was deleted.

5 changes: 0 additions & 5 deletions app/config/config_dev.yml

This file was deleted.

5 changes: 0 additions & 5 deletions app/config/config_test.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jest
describe('validate collection widget', function() {

let stateHtml = `
<form action="/" method="POST">
<form action="/public" method="POST">
<div class="collection-widget" data-prototype="<input type=&quot;text&quot; id=&quot;dashboard_bundle_entity_type_metadata_redirectUris___name__&quot; name=&quot;dashboard_bundle_entity_type[metadata][redirectUris][__name__]&quot; />">
<ul class="collection-list"></ul>
</div>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jest

describe('validate visibility toggling of acl list on the entity acl form', function() {

let aclFormHtml = require('fs').readFileSync('./app/js/components/mock/entity_acl_form.html').toString();
let aclFormHtml = require('fs').readFileSync('./assets/js/components/mock/entity_acl_form.html').toString();

it('hides the acl container when select all is checked', function() {
document.body.innerHTML = aclFormHtml;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3a2b53f

Please sign in to comment.