Permalink
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?
midPoint_container/demo/postgresql/tests/main.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created a special version of docker-compose files that do not expose any ports unless really needed for test execution. This is to minimize potential conflicts during test execution.
executable file
34 lines (27 sloc)
769 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 | |
load ../../../library | |
@test "000 Cleanup before running the tests" { | |
run docker-compose down -v | |
} | |
@test "010 Initialize and start midPoint" { | |
docker-compose -f docker-compose-tests.yml up --build -d | |
wait_for_midpoint_start postgresql_midpoint_server_1 | |
} | |
@test "020 Check health" { | |
check_health | |
} | |
@test "100 Get 'administrator'" { | |
check_health | |
get_and_check_object users 00000000-0000-0000-0000-000000000002 administrator | |
} | |
@test "110 And and get 'test110'" { | |
check_health | |
echo "<user><name>test110</name></user>" >/tmp/test110.xml | |
add_object users /tmp/test110.xml | |
rm /tmp/test110.xml | |
search_and_check_object users test110 | |
} | |
@test "999 Clean up" { | |
docker-compose down -v | |
} |