Skip to content

Commit

Permalink
Do minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 28, 2018
1 parent b01a572 commit e73ec49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion demo/complex/tests/main.bats
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ load ../../../library
}

@test "999 Clean up" {
# docker-compose down -v
docker-compose down -v
}
13 changes: 5 additions & 8 deletions demo/shibboleth/tests/main.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,31 @@ load ../../../library
[ "$status" -eq 302 ]
}

@test "041 Check Shibboleth redirection (/midpoint/)" {
@test "041 Check Shibboleth redirection (/midpoint/)" {
status="$(curl -k --write-out %{http_code} --silent --output /dev/null https://localhost:8443/midpoint/)"
[ "$status" -eq 302 ]
}

@test "042 Check Shibboleth redirection (/midpoint/login)" {
@test "042 Check Shibboleth redirection (/midpoint/login)" {
status="$(curl -k --write-out %{http_code} --silent --output /dev/null https://localhost:8443/midpoint/login)"
[ "$status" -eq 302 ]
}

@test "043 Check Shibboleth redirection (/midpoint/something)" {
@test "043 Check Shibboleth redirection (/midpoint/something)" {
status="$(curl -k --write-out %{http_code} --silent --output /dev/null https://localhost:8443/midpoint/something)"
[ "$status" -eq 302 ]
}

@test "044 Check SOAP without Shibboleth redirection (/midpoint/ws/)" {
@test "044 Check SOAP without Shibboleth redirection (/midpoint/ws/)" {
status="$(curl -k --write-out %{http_code} --silent --output /dev/null https://localhost:8443/midpoint/ws/)"
[ "$status" -eq 200 ]
}

@test "045 Check SOAP without Shibboleth redirection (/midpoint/model/)" {
@test "045 Check SOAP without Shibboleth redirection (/midpoint/model/)" {
status="$(curl -k --write-out %{http_code} --silent --output /dev/null https://localhost:8443/midpoint/model/)"
[ "$status" -eq 200 ]
}


# TODO check that e.g. accessing some URLs results in shibboleth redirection (check login page, some REST calls etc)

@test "999 Clean up" {
cd ../simple ; docker-compose down -v ; true
docker-compose down -v
Expand Down

0 comments on commit e73ec49

Please sign in to comment.