Skip to content

Commit

Permalink
Merge branch 'feature/database-test-experiment' into feature/main-aut…
Browse files Browse the repository at this point in the history
…hz-bugfix
  • Loading branch information
MKodde committed Feb 20, 2024
2 parents 1fbbbe9 + 8f378f5 commit e032125
Show file tree
Hide file tree
Showing 28 changed files with 1,152 additions and 315 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
- See docs/MiddlewareConfiguration.md
- See https://www.pivotaltracker.com/epic/show/5024251 for details

# 5.0.10
- Bugfix: ensure RA(A) authorisations are verified against the ra_listing projection
this caused RAA authorisations to be available to RA users.
- BC: SelfService 3.5 was not compatible with Middleware 5.0.9. The self vet command changed
from using the authoring second factor identifier to use the authoring loa. Underwater, the
second factor identifier field already transported the loa, in version 5.0 that field was
renamed. In this release MW can support use of both fields. Version 5.1 should remove this
support. #402

# 5.0.9
- Support self-vetting of self-asserted tokens #401

Expand Down
8 changes: 8 additions & 0 deletions ci/qa/create-test-db
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd $(dirname $0)/../../

printf "\nCreating 'middleware' test database\n\n"

./bin/console doctrine:schema:drop -qf --env=test
./bin/console doctrine:schema:create -q --env=test
8 changes: 7 additions & 1 deletion ci/qa/phpunit
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/env bash

# Exit the script when any of the statements has a non-true return value
set -e

cd $(dirname $0)/../../

./ci/qa/create-test-db

# PHPUnit Bridge should always be used in Symfony applications. (https://symfony.com/doc/current/components/phpunit_bridge.html)
# This will create a phpunit executable in /bin/ instead of /vendor/bin/
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=ci/qa/phpunit.xml --coverage-text
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=ci/qa/phpunit.xml --coverage-text --testsuite=unit
./vendor/bin/phpunit --configuration=ci/qa/phpunit.xml --testsuite=database
6 changes: 5 additions & 1 deletion ci/qa/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
</php>

<testsuites>
<testsuite name="Project Test Suite">
<testsuite name="unit">
<directory suffix="Test.php">../../src</directory>
</testsuite>

<testsuite name="database">
<directory suffix="Test.php">../../tests/database</directory>
</testsuite>
</testsuites>

<filter>
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
]
},
"autoload-dev": {
"psr-4": {
"Surfnet\\StepupMiddleware\\Test\\Database\\": "tests\\database"
},
"classmap": [
"src/Surfnet/StepupMiddleware/ApiBundle/Tests/Request/commands.php"
]
Expand All @@ -24,7 +27,6 @@
"broadway/broadway": "^2.3",
"broadway/event-store-dbal": "^0.5.0",
"doctrine/doctrine-bundle": "^1.12",
"doctrine/doctrine-fixtures-bundle": "^3.3",
"doctrine/doctrine-migrations-bundle": "^1.2",
"doctrine/orm": "^2.5",
"incenteev/composer-parameter-handler": "~2.0",
Expand Down Expand Up @@ -53,7 +55,7 @@
},
"require-dev": {
"doctrine/data-fixtures": "~1.1",
"doctrine/doctrine-fixtures-bundle": "^3.3",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"liip/test-fixtures-bundle": "^1.0.0",
"mockery/mockery": "^1.3",
"moontoast/math": "~1.1",
Expand Down
Loading

0 comments on commit e032125

Please sign in to comment.