Sha256: 79622ea31bc51815db82c06240d1ed634958c9907ced8b0f1c8609261d908da4
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
#!/bin/bash -e function finish { echo 'Removing test environment' echo '---' docker-compose down --rmi 'local' --volumes } trap finish EXIT function main() { # Generate reports folders locally mkdir -p spec/reports features/reports startConjur runTests } function startConjur() { echo 'Starting Conjur environment' echo '-----' docker-compose pull conjur postgres docker-compose build --pull tester docker-compose up -d conjur } function runTests() { echo 'waiting for Conjur to come up...' # TODO: remove this once we have HEALTHCHECK in place docker-compose run --rm tester ./ci/wait_for_server.sh local api_key=$(docker-compose exec -T conjur rails r "print Credentials['cucumber:user:admin'].api_key") echo 'Running tests' echo '-----' docker-compose run --rm \ -e CONJUR_AUTHN_API_KEY="$api_key" \ tester } main
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-5.0.0 | test.sh |
conjur-api-5.0.0.rc1 | test.sh |