diff --git a/behat.yml.dist b/behat.yml.dist index e815f593a..470b78598 100644 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -30,12 +30,7 @@ default: DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~ - FriendsOfBehat\SymfonyExtension: - kernel: - path: src/Kernel.php - class: App\Kernel - environment: behat - debug: true + FriendsOfBehat\SymfonyExtension: ~ EzSystems\BehatBundle\BehatExtension: ~ diff --git a/config/packages/behat/doctrine.yaml b/config/packages/behat/doctrine.yaml new file mode 100644 index 000000000..0a7c53b44 --- /dev/null +++ b/config/packages/behat/doctrine.yaml @@ -0,0 +1,32 @@ +doctrine: + orm: + auto_generate_proxy_classes: false + metadata_cache_driver: + type: service + id: doctrine.system_cache_provider + query_cache_driver: + type: service + id: doctrine.system_cache_provider + result_cache_driver: + type: service + id: doctrine.result_cache_provider + +services: + doctrine.result_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.result_cache_pool' + doctrine.system_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.system_cache_pool' + +framework: + cache: + pools: + doctrine.result_cache_pool: + adapter: cache.app + doctrine.system_cache_pool: + adapter: cache.system diff --git a/config/packages/behat/ezplatform.yaml b/config/packages/behat/ezplatform.yaml index 7cb21747a..257cdccb0 100644 --- a/config/packages/behat/ezplatform.yaml +++ b/config/packages/behat/ezplatform.yaml @@ -1,22 +1,6 @@ -# Siteaccesses are first added in ../ezplatform.yaml. -# Only merge additional siteaccesses here. - -ezplatform: - siteaccess: - list: - - other_site - groups: - site_group: - - other_site - default_siteaccess: site - match: - URIElement: 1 ezdesign: phpstorm: enabled: false -ez_platform_standard_design: - override_kernel_templates: false - parameters: ezsettings.admin_group.notifications.success.timeout: 20000 diff --git a/config/packages/behat/framework.yaml b/config/packages/behat/framework.yaml deleted file mode 100644 index f76cc2ef5..000000000 --- a/config/packages/behat/framework.yaml +++ /dev/null @@ -1,2 +0,0 @@ -framework: - test: true diff --git a/config/packages/behat/routing.yaml b/config/packages/behat/routing.yaml new file mode 100644 index 000000000..4116679a2 --- /dev/null +++ b/config/packages/behat/routing.yaml @@ -0,0 +1,3 @@ +framework: + router: + strict_requirements: true diff --git a/doc/docker/entrypoint/varnish/entrypoint.sh b/doc/docker/entrypoint/varnish/entrypoint.sh index 8b53cd2cd..1ae5f981e 100755 --- a/doc/docker/entrypoint/varnish/entrypoint.sh +++ b/doc/docker/entrypoint/varnish/entrypoint.sh @@ -3,6 +3,7 @@ # Script takes the following parameters: # [--acl-all-networks] - Add all container's network in the PURGE ACL. # [--acl-add ...] - Add a host or network segment to the PURGE ACL +# [--debug-acl-add ...] - Add a host or network segment to the debuggers ACL function create_template_file { @@ -34,7 +35,7 @@ function get_net_segments } # $1 is segment, format 1.2.3.4/24 or myhostname -function add_segment +function format_segment { # convert format 1.2.3.4/24 --> "1.2.3.4"/24; segment=`echo $1 | sed "s|\(.*\)/\(.*\)|\"\1\"/\2;|"` @@ -42,10 +43,27 @@ function add_segment # convert format myhost --> "myhost"; ( any string not containing slash ) segment=`echo $segment | sed -E "s|^([^/]+)\$|\"\1\";|"` + echo "$segment" +} + +# $1 is segment, format 1.2.3.4/24 or myhostname +function add_segment_to_purge_acl +{ + segment=`format_segment $1` + echo "Adding network segment to varnish ACL : $segment" sed -i -s "s|\(.*ACL_INVALIDATOR.*\)| $segment\n\1|" /etc/varnish/parameters.vcl } +# $1 is segment, format 1.2.3.4/24 or myhostname +function add_segment_to_debugger_acl +{ + segment=`format_segment $1` + + echo "Adding network segment to varnish debuggers : $segment" + sed -i -s "s|\(.*DEBUGGER.*\)| $segment\n\1|" /etc/varnish/parameters.vcl +} + create_template_file while (( "$#" )); do @@ -53,7 +71,7 @@ while (( "$#" )); do segments=`get_net_segments` for segment in `echo $segments`; do - add_segment $segment + add_segment_to_purge_acl $segment done elif [ "$1" = "--acl-add" ]; then shift @@ -62,7 +80,16 @@ while (( "$#" )); do if [ "$new_network" = "" ]; then echo "Warning : --acl-add parameter needs to be followed by a network segment, for instance \"--acl-add 10.0.1.0/24\"" else - add_segment $new_network + add_segment_to_purge_acl $new_network + fi + elif [ "$1" = "--debug-acl-add" ]; then + shift + new_network="$1" + + if [ "$new_network" = "" ]; then + echo "Warning : --debug-acl-add parameter needs to be followed by a network segment, for instance \"--debug-add 10.0.1.0/24\"" + else + add_segment_to_debugger_acl $new_network fi else echo "Warning : Unrecognized parameter $1" diff --git a/doc/docker/entrypoint/varnish/parameters.vcl b/doc/docker/entrypoint/varnish/parameters.vcl index c3f40c97e..b234cb0d4 100644 --- a/doc/docker/entrypoint/varnish/parameters.vcl +++ b/doc/docker/entrypoint/varnish/parameters.vcl @@ -15,4 +15,5 @@ acl invalidators { acl debuggers { "127.0.0.1"; "172.16.0.0"/20; +// DEBUGGER } diff --git a/doc/docker/varnish.yml b/doc/docker/varnish.yml index 15ecd8f49..2d97f94e1 100644 --- a/doc/docker/varnish.yml +++ b/doc/docker/varnish.yml @@ -29,7 +29,7 @@ services: networks: - frontend - backend - command: ["--acl-add", "app"] + command: ["--acl-add", "app", "--debug-acl-add", "app"] ## DEBUG?? # In need of debugging all request going to Varnish, use varnishlog, example: