Skip to content

Commit

Permalink
Merged branch '1.3' of ezsystems/ezplatform-kernel into main (#49)
Browse files Browse the repository at this point in the history
Merged up #276
  • Loading branch information
alongosz authored Jan 18, 2022
2 parents 5c85f3f + d728cb6 commit 418365e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 418365e

Please # to comment.