Skip to content

Commit

Permalink
Add test for PSA login URLs on login page. Refs #83
Browse files Browse the repository at this point in the history
Note: adjust create_tenant to account for the non-standard port we use
during testing!
  • Loading branch information
atodorov committed Jul 10, 2021
1 parent 64e50af commit 1762c91
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
docker exec -i web /Kiwi/manage.py create_tenant \
--schema_name public --name "TT" --paid_until 2050-12-31 \
--publicly_readable False --owner_id 1 --organization "Testing dept" \
--domain-domain testing.example.bg --domain-is_primary True
--domain-domain testing.example.bg:8443 --domain-is_primary True
- name: Sanity test - download login page
if: matrix.command == 'docker-image'
Expand Down Expand Up @@ -107,6 +107,12 @@ jobs:
curl -k -f -o /dev/null https://testing.example.bg:8443/$URL
done
# social icons point to correct backend login URL, even with port
for BACKEND in `cat page.html | grep "/static/images/social_auth/backends/" | cut -d= -f2 | cut -d"'" -f2 | cut -f6 -d/ | cut -f1 -d.`; do
echo "Verify $BACKEND login is present"
cat page.html | grep "https://testing.example.bg:8443/login/$BACKEND/?next=/"
done
- name: Sanity test - LDAP login and sync
if: matrix.command == 'docker-image'
run: |
Expand Down

0 comments on commit 1762c91

Please sign in to comment.