24 lines
865 B
Bash
24 lines
865 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||
|
|
||
|
source "$SCRIPT_DIR/lib.sh"
|
||
|
|
||
|
# Test reg.cadoles.com/cadoles/symfony:alpine-php-7.4-standalone with Symfony 4.4
|
||
|
test_alpine_sp_oidc() {
|
||
|
# FIXME
|
||
|
|
||
|
local container_name=$(run_symfony_app_container "4.4" "7.4" "alpine-php-7.4-standalone")
|
||
|
local image_name=$(docker inspect -f '{{.Config.Image}}' ${container_name})
|
||
|
|
||
|
trap_add "docker kill ${container_name}" EXIT
|
||
|
trap_add "docker rmi -f ${image_name}" EXIT
|
||
|
|
||
|
local app_url="http://$(docker port ${container_name} 8080/tcp)"
|
||
|
|
||
|
# Check that application is responding as expected
|
||
|
local page_content=$(curl -s "${app_url}" | pandoc -f html -t plain)
|
||
|
|
||
|
assert_matches 'Welcome to Symfony 4\.4\.*' "${page_content}" "Could not find Symfony default welcome message !"
|
||
|
}
|