Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions testing/admin.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2025 Alexander Todorov <atodorov@otb.bg>
# Copyright (c) 2021-2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html
Expand All @@ -9,7 +9,7 @@ Library SeleniumLibrary

*** Variables ***
# "empty" tenant is created during initial_setup
${SERVER} https://empty.testing.example.bg:8443
${SERVER} https://empty.testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${LOGIN_URL} ${SERVER}/accounts/login/
Expand Down
2 changes: 1 addition & 1 deletion testing/keycloak.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Library SeleniumLibrary

*** Variables ***
${SERVER} https://testing.example.bg:8443
${SERVER} https://testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${LOGIN_URL} ${SERVER}/login/keycloak
Expand Down
4 changes: 2 additions & 2 deletions testing/ldap.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 Alexander Todorov <atodorov@otb.bg>
# Copyright (c) 2020-2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html
Expand All @@ -7,7 +7,7 @@
Library SeleniumLibrary

*** Variables ***
${SERVER} https://testing.example.bg:8443
${SERVER} https://testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${LOGIN_URL} ${SERVER}/accounts/login/
Expand Down
2 changes: 1 addition & 1 deletion testing/password-reset-confirm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Library SeleniumLibrary

*** Variables ***
# "empty" tenant is created during initial_setup
${SERVER} https://testing.example.bg:8443
${SERVER} https://testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${DASHBOARD_URL} ${SERVER}/
Expand Down
2 changes: 1 addition & 1 deletion testing/password-reset-request.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Library SeleniumLibrary

*** Variables ***
# "empty" tenant is created during initial_setup
${SERVER} https://testing.example.bg:8443
${SERVER} https://testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${PWD_RESET_URL} ${SERVER}/accounts/passwordreset/
Expand Down
4 changes: 2 additions & 2 deletions testing/start_keycloak.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (c) 2021-2022 Alexander Todorov <atodorov@otb.bg>
# Copyright (c) 2021-2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html
Expand Down Expand Up @@ -34,7 +34,7 @@ docker exec -i keycloak_server \
/opt/jboss/keycloak/bin/kcadm.sh create clients \
-r kiwi -s clientId=kiwitcms-web-app -s enabled=true -s protocol=openid-connect \
-s attributes='{"user.info.response.signature.alg": "RS256"}' \
-s publicClient=false -s rootUrl=https://testing.example.bg:8443 -o > kc_client.json
-s publicClient=false -s rootUrl=https://testing.example.bg -o > kc_client.json
KC_CLIENT_ID=`cat kc_client.json | jq -r '.id'`

docker exec -i keycloak_server \
Expand Down
6 changes: 3 additions & 3 deletions testing/test_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

. /usr/share/beakerlib/beakerlib.sh

HTTPS="https://testing.example.bg:8443"
HTTPS="https://testing.example.bg"

WRK_DIR=$(mktemp -d ./wrk-logs-XXXX)
chmod go+rwx "$WRK_DIR"

assert_up_and_running() {
sleep 10
# HTTP redirects; HTTPS displays the login page
rlRun -t -c "curl -o- --referer assert_up_and_running http://testing.example.bg:8080/ | grep '301 Moved Permanently'"
rlRun -t -c "curl -o- --referer assert_up_and_running http://testing.example.bg/ | grep '301 Moved Permanently'"
rlRun -t -c "curl -k -L -o- --referer assert_up_and_running $HTTPS/ | grep 'Welcome to Kiwi TCMS'"
}

Expand Down Expand Up @@ -51,7 +51,7 @@ rlJournalStart
rlRun -t -c "docker compose -f docker-compose.testing up -d"
sleep 5

IP_ADDRESS=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' web)
IP_ADDRESS="127.0.0.1"
rlLogInfo "--- testing.example.bg: $IP_ADDRESS --"
rlRun -t -c "sudo sh -c \"echo '$IP_ADDRESS testing.example.bg empty.testing.example.bg' >> /etc/hosts\""

Expand Down
4 changes: 2 additions & 2 deletions testing/test_upload_file.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024-2025 Alexander Todorov <atodorov@otb.bg>
# Copyright (c) 2024-2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html
Expand All @@ -8,7 +8,7 @@ Library OperatingSystem
Library SeleniumLibrary

*** Variables ***
${SERVER} https://testing.example.bg:8443
${SERVER} https://testing.example.bg
${BROWSER} Headless Firefox
${DELAY} 0
${LOGIN_URL} ${SERVER}/accounts/login/
Expand Down