|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +# What version of the kernel to download |
| 4 | +# and use when running tests. |
| 5 | +# @see http://npm.im/mongodb-version-manager |
| 6 | +export MONGODB_VERSION='unstable'; |
| 7 | + |
| 8 | +# Topology of the kernel to test against. |
| 9 | +# |
| 10 | +# standalone|replicaset|cluster |
| 11 | +# |
| 12 | +# @see http://npm.im/mongodb-runner |
| 13 | +export MONGODB_TOPOLOGY='replicaset'; |
| 14 | + |
| 15 | +rm -rf ~/scout-ci; |
| 16 | +mkdir -p ~/scout-ci; |
| 17 | +cd ~/scout-ci; |
| 18 | + |
| 19 | +# First test the connection-model which is the basis. |
| 20 | +# it provides a gaurantee to everything else that |
| 21 | +# it will talk to the driver correctly. |
| 22 | +# If we're talking to the driver correctly, |
| 23 | +# the driver has already been heavily tested |
| 24 | +# for all auth scenarios. |
| 25 | +git clone [email protected]:mongodb-js/mongodb-connection-model.git ; |
| 26 | +cd mongodb-connection-model; |
| 27 | +npm link && npm test; |
| 28 | +cd ../; |
| 29 | + |
| 30 | +# Is scout-server using connection-model correctly? |
| 31 | +git clone [email protected]:10gen/scout-server.git ; |
| 32 | +cd scout-server; |
| 33 | +git checkout -t origin/auth; |
| 34 | +npm install; |
| 35 | +npm link mongodb-connection-model; |
| 36 | +npm test; |
| 37 | +npm link; |
| 38 | +cd ../; |
| 39 | + |
| 40 | +# Is the client using the connection-model |
| 41 | +# correctly when talking to the server? |
| 42 | +git clone [email protected]:10gen/scout-client.git ; |
| 43 | +cd scout-client; |
| 44 | +git checkout -t origin/auth; |
| 45 | +npm link; |
| 46 | +npm link scout-server; |
| 47 | +npm link mongodb-connection-model; |
| 48 | +npm test; |
| 49 | + |
| 50 | +# @todo (imlucas): Is the connection dialog in Compass |
| 51 | +# and the app in general using scout-client correctly? |
| 52 | +# 1. Pulls the branch for compass |
| 53 | +# 2. build it |
| 54 | +# 3. npm link's the deps above |
| 55 | +# 4. fires up `chromedriver` |
| 56 | +# 5. fill in connect dialog with creds for each test deployment on Cloud Manager |
| 57 | +# 6. do we get a list of namespaces after connecting |
0 commit comments