diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml new file mode 100644 index 0000000000..9227440641 --- /dev/null +++ b/.github/workflows/browser-tests.yaml @@ -0,0 +1,19 @@ +name: Browser tests + +on: + push: + branches: + - main + - '[0-9]+.[0-9]+' + pull_request: ~ + +jobs: + core-behat: + name: "Kernel Behat Core tests" + uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main + with: + project-edition: 'oss' + project-version: '^4.0.x-dev' + test-suite: '--mode=standard --profile=core --tags=~@broken' + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.travis.yml b/.travis.yml index c538e4d3e4..c4bb0df268 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,15 +22,7 @@ env: matrix: fast_finish: true include: -# 7.4 - - name: "Kernel Behat Core tests" - php: 7.4 - env: - - COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml" - - BEHAT_OPTS="--mode=standard --profile=core --tags=~@broken -c=behat_ibexa_oss.yaml" - - APP_ENV=behat - - APP_DEBUG=1 - - PROJECT_VERSION=^4.0.x-dev +# 7.3 - name: 'Solr 7.7.3 integration tests (using shared cores) with Redis cache pool' php: 7.4 env: SOLR_VERSION="7.7.3" TEST_CONFIG="phpunit-integration-legacy-solr.xml" CUSTOM_CACHE_POOL="singleredis" CORES_SETUP="shared" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/custom-fields-types.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml" JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/" @@ -65,14 +57,12 @@ before_install: install: - if [ "$TEST_CONFIG" != "" -o "$BEHAT_OPTS" != "" ] ; then travis_retry composer install --no-progress --no-interaction --prefer-dist $COMPOSER_FLAGS; fi - - if [ "$BEHAT_OPTS" != "" ] ; then ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE} ; fi # Setup Solr search if asked for - if [ "$TEST_CONFIG" = "phpunit-integration-legacy-solr.xml" ] ; then ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh; fi # execute phpunit or behat as the script command script: - if [ "$TEST_CONFIG" != "" ] ; then php -d date.timezone=$TEST_TIMEZONE -d memory_limit=-1 vendor/bin/phpunit -c $TEST_CONFIG ; fi - - if [ "$BEHAT_OPTS" != "" ] ; then cd "$HOME/build/project"; docker-compose exec --user www-data app sh -c "vendor/bin/ezbehat $BEHAT_OPTS" ; fi notifications: slack: diff --git a/src/bundle/Core/Features/Exception/unauthorized_login_form.feature b/src/bundle/Core/Features/Exception/unauthorized_login_form.feature index 200c4b4a3e..7f2505321f 100644 --- a/src/bundle/Core/Features/Exception/unauthorized_login_form.feature +++ b/src/bundle/Core/Features/Exception/unauthorized_login_form.feature @@ -7,5 +7,5 @@ Feature: Handling of Unauthorized repository exceptions Scenario: When a Repository UnauthorizedException is throw, authenticated users are shown the exception Given that I am logged in When a repository UnauthorizedException is thrown during an HTTP request - Then an \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException is displayed + Then an Ibexa\Core\Base\Exceptions\UnauthorizedException is displayed And an Symfony\Component\Security\Core\Exception\AccessDeniedException is displayed