Skip to content

Commit

Permalink
Merge pull request #675 from opencb/TASK-5061
Browse files Browse the repository at this point in the history
TASK-5061 - Replace the mongoDB step in the Cellbase build with a kubectl that tunnels to a machine where the test data already exists
  • Loading branch information
juanfeSanahuja authored Nov 6, 2023
2 parents d9b8c6d + 39b9b95 commit baa3631
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Start MongoDB v6.0
uses: supercharge/[email protected]
with:
mongodb-version: 6.0
mongodb-replica-set: rs-test
- name: K8s Tunnel MongoDB
run: |
wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl
chmod +x ./kubectl
echo "${{ secrets.AZURE_KUBE_CONFIG }}" > admin.conf
./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 --kubeconfig ./admin.conf &
- name: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down
7 changes: 4 additions & 3 deletions cellbase-lib/src/test/resources/configuration.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ secretKey: "xPacig89igHSieEnveJEi4KCfdEslhmssC3vui1JJQGgDQ0y8v"
databases:
mongodb:
host: localhost:27017
user: ''
password: ''
user: 'cellbase'
password: 'cellbase'
options:
authenticationDatabase: ''
authenticationDatabase: 'admin'
authenticationMechanism: 'SCRAM-SHA-256'
readPreference: ''
replicaSet: ''
connectionsPerHost: 20
Expand Down

0 comments on commit baa3631

Please sign in to comment.