Skip to content
Permalink
baf42db03d
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
31 lines (25 sloc) 928 Bytes
#!/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"* ]]
}