18004: Fixes a couple of race condition bugs related to caching remote users.
[arvados.git] / services / api / script / rake_test.sh
1 #! /bin/sh
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 # This script invokes `rake test' in a fresh Docker instance of the
7 # API server, e.g.:
8 #   docker run -t -i arvados/api /usr/src/arvados/services/api/script/rake_test.sh
9
10 /etc/init.d/postgresql start
11
12 export RAILS_ENV=test
13 cd /usr/src/arvados/services/api
14 cp config/environments/test.rb.example config/environments/test.rb
15 bundle exec rake db:setup
16 bundle exec rake test