mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-24 19:02:01 +00:00
cookie for session
This commit is contained in:
parent
ec2caa4134
commit
0154e46c8a
@ -49,9 +49,7 @@ public class EndpointInterceptor implements HandlerInterceptor {
|
|||||||
|| request.getRequestURI().contains("/images/")
|
|| request.getRequestURI().contains("/images/")
|
||||||
|| request.getRequestURI().contains("/favicon")
|
|| request.getRequestURI().contains("/favicon")
|
||||||
|| request.getRequestURI().contains("/error")
|
|| request.getRequestURI().contains("/error")
|
||||||
|| request.getRequestURI().contains("/session/status")
|
|| request.getRequestURI().contains("/session")
|
||||||
|| request.getRequestURI().contains("/session/expire")
|
|
||||||
|| request.getRequestURI().contains("/session/expire/")
|
|
||||||
|| request.getRequestURI().endsWith(".js")
|
|| request.getRequestURI().endsWith(".js")
|
||||||
|| request.getRequestURI().endsWith(".png")
|
|| request.getRequestURI().endsWith(".png")
|
||||||
|| request.getRequestURI().endsWith(".webmanifest")
|
|| request.getRequestURI().endsWith(".webmanifest")
|
||||||
|
@ -212,8 +212,8 @@ main() {
|
|||||||
|
|
||||||
cd "$PROJECT_ROOT"
|
cd "$PROJECT_ROOT"
|
||||||
|
|
||||||
export DOCKER_CLI_EXPERIMENTAL=enabled
|
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||||
export COMPOSE_DOCKER_CLI_BUILD=0
|
export COMPOSE_DOCKER_CLI_BUILD=0
|
||||||
export DOCKER_ENABLE_SECURITY=false
|
export DOCKER_ENABLE_SECURITY=false
|
||||||
# Run the gradlew build command and check if it fails
|
# Run the gradlew build command and check if it fails
|
||||||
if ! ./gradlew clean build; then
|
if ! ./gradlew clean build; then
|
||||||
|
@ -9,7 +9,7 @@ check_webpage() {
|
|||||||
local result_file="$3"
|
local result_file="$3"
|
||||||
|
|
||||||
# Use curl to fetch the page with timeout
|
# Use curl to fetch the page with timeout
|
||||||
response=$(curl -s -w "\n%{http_code}" --max-time $timeout "$full_url")
|
response=$(curl -b cookies.txt -s -w "\n%{http_code}" --max-time $timeout "$full_url")
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "FAILED - Connection error or timeout $full_url" >> "$result_file"
|
echo "FAILED - Connection error or timeout $full_url" >> "$result_file"
|
||||||
return 1
|
return 1
|
||||||
@ -158,6 +158,9 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
curl -s $base_url/session/expire/all
|
||||||
|
curl -s -c cookies.txt $base_url/session
|
||||||
|
|
||||||
# Run tests using the URL list
|
# Run tests using the URL list
|
||||||
if test_all_urls "$url_file" "$base_url" "$max_parallel"; then
|
if test_all_urls "$url_file" "$base_url" "$max_parallel"; then
|
||||||
echo "All webpage tests passed!"
|
echo "All webpage tests passed!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user