Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
grouper-appliance/tests/running.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (25 sloc)
928 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bats | |
load ../common | |
@test "Contains mysql grouper user" { | |
docker exec -i mariadb mysql -u root -h 127.0.0.1 --password=123321 -e 'SELECT User FROM mysql.user' | grep grouper_user | |
} | |
@test "Grouper database tables created" { | |
docker exec -i mariadb mysql -u root -h 127.0.0.1 --password=123321 grouper -e 'show tables' | grep grouper | |
} | |
@test "Continues running grouper container" { | |
docker ps | grep grouper | grep Up | |
} | |
@test "curl can connect to Grouper diagnostics URL successfully" { | |
skip | |
run docker exec -i grouper curl http://localhost:8080/grouper-ws/status?diagnosticType=all | |
echo ${output} | |
[ "$status" -eq 0 ] | |
[[ ${output} == *"302"* || ${output} == *"200"* ]] | |
} | |
@test "curl can connect to Grouper WS endpoint" { | |
skip | |
run docker exec -i grouper curl http://`docker-machine ip`/grouper-ws/ | |
echo ${output} | |
[ "$status" -eq 0 ] | |
[[ ${output} == *"302"* || ${output} == *"200"* ]] | |
} |