Skip to content
Snippets Groups Projects
Commit 0087c44a authored by latlon team's avatar latlon team
Browse files

Code drop


- XPLANBOX-3614/-3609 - fixed sripts executing integration and soapui tests (f5023ece5)
- XPLANBOX-3613 - disabled appending of X-Forwarded header (92191e885)

Co-authored-by: default avatarLyn Elisa Goltz <goltz@lat-lon.de>

Dropped from commit: bf50c83af3aae502056ca58303c61bcd342bb0b5
parent 9d10598a
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,8 @@ xplanbox.gateway.rewrite.backend.xplan-mapproxy.uri=${XPLAN_MAPPROXY_URL_INTERNA
xplanbox.gateway.rewrite.backend.xplan-services.uri=${XPLAN_SERVICES_URL_INTERNAL:http://xplan-services}
xplanbox.gateway.rewrite.backend.xplan-validator-wms.uri=${XPLAN_VALIDATOR_WMS_URL_INTERNAL:http://xplan-validator-wms}
spring.cloud.gateway.x-forwarded.host-append=false
spring.cloud.gateway.x-forwarded.port-append=false
spring.cloud.gateway.x-forwarded.proto-append=false
spring.codec.max-in-memory-size: 1000KB
......@@ -30,12 +30,16 @@ function waitForRightVersion() {
sleep $((sleepDuration))s
fi
done
echo " [failed]"
return 2
}
############################################
if [ -n "$XPLAN_NOTIFY_SLACK_CHANNEL" ] && [ -n "$XPLAN_NOTIFY_SLACK_TOKEN" ]; then
sendSlackMessage "Starting Integration tests..."
fi
echo "Waiting for services with git revision $GIT_REVISION:"
waitForRightVersion $XPLAN_DOKUMENTEAPI_URL_PUBLIC/actuator/info
waitForRightVersion $XPLAN_MANAGERAPI_URL_PUBLIC/actuator/info
......@@ -55,10 +59,10 @@ mvn surefire-report:failsafe-report-only -q
REPORT_PATH_PDF=target/test-report.pdf
echo "Transforming to PDF $REPORT_PATH_PDF..."
sed -i 's/display:none;//' target/site/failsafe-report.html
weasyprint file://$PWD/target/site/failsafe-report.html $REPORT_PATH_PDF
sed -i 's/display:none;//' target/reports/failsafe.html
weasyprint file://$PWD/target/reports/failsafe.html $REPORT_PATH_PDF
REPORT_PATH_TAR=target/test-report.tar.gz
tar cfz $REPORT_PATH_TAR -C target site failsafe-reports
tar cfz $REPORT_PATH_TAR -C target reports failsafe-reports
if [ "$XPLAN_UPLOAD_TEST_REPORT" = "true" ];
then
......@@ -81,7 +85,7 @@ fi
if [ -n "$XPLAN_NOTIFY_SLACK_CHANNEL" ] && [ -n "$XPLAN_NOTIFY_SLACK_TOKEN" ]; then
echo "Sending slack notification to $XPLAN_NOTIFY_SLACK_CHANNEL"
message="Finished Selenium tests"
message="Finished Integration tests"
if [ -n "$S3_PATH_PDF" ]; then
message="$message%0A%0A\
Get test reports from S3 bucket with:%0A\
......
......@@ -35,7 +35,7 @@ function waitForRightVersion() {
sleep $((sleepDuration))s
fi
done
echo " [failed]"
return 2
}
......@@ -111,10 +111,10 @@ mvn surefire-report:report-only -q
REPORT_PATH_PDF=target/test-report.pdf
echo "Transforming to PDF $REPORT_PATH_PDF..."
sed -i 's/display:none;//' target/site/surefire-report.html
weasyprint file://$PWD/target/site/surefire-report.html $REPORT_PATH_PDF
sed -i 's/display:none;//' target/reports/surefire.html
weasyprint file://$PWD/target/reports/surefire.html $REPORT_PATH_PDF
REPORT_PATH_TAR=target/test-report.tar.gz
tar cfz $REPORT_PATH_TAR -C target site soapui
tar cfz $REPORT_PATH_TAR -C target reports soapui
if [ "$XPLAN_UPLOAD_TEST_REPORT" = "true" ];
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.