Skip to content

Commit fd8b698

Browse files
rename secret
1 parent b5156b4 commit fd8b698

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/documentdb-integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333

3434
- name: Check DocumentDB test URI secret
3535
env:
36-
MONGO_TEST_DATA_URL: ${{ secrets.MONGO_TEST_DATA_URL }}
36+
MONGO_TEST_DATA_URL: ${{ secrets.AZURE_DOCUMENTDB_TEST_DATA_URL }}
3737
run: |
3838
if [ -n "${MONGO_TEST_DATA_URL}" ]; then
3939
echo "::add-mask::${MONGO_TEST_DATA_URL}"
4040
fi
4141
4242
if [ -z "${MONGO_TEST_DATA_URL}" ]; then
43-
echo "::error::Set the MONGO_TEST_DATA_URL repository or organization secret."
43+
echo "::error::Set the AZURE_DOCUMENTDB_TEST_DATA_URL repository or organization secret."
4444
exit 1
4545
fi
4646
@@ -52,13 +52,13 @@ jobs:
5252

5353
- name: Mask DocumentDB hosts
5454
env:
55-
MONGO_TEST_DATA_URL: ${{ secrets.MONGO_TEST_DATA_URL }}
55+
MONGO_TEST_DATA_URL: ${{ secrets.AZURE_DOCUMENTDB_TEST_DATA_URL }}
5656
run: |
5757
# Use MongoDB's connection-string parser; WHATWG URL rejects valid
5858
# multi-host MongoDB URIs.
5959
corepack pnpm --filter @powersync/lib-service-mongodb exec node -e "const ConnectionString = require('mongodb-connection-string-url').default || require('mongodb-connection-string-url'); const uri = new ConnectionString(process.env.MONGO_TEST_DATA_URL); for (const host of uri.hosts) console.log('::add-mask::' + host);"
6060
6161
- name: Test DocumentDB integration
6262
env:
63-
MONGO_TEST_DATA_URL: ${{ secrets.MONGO_TEST_DATA_URL }}
63+
MONGO_TEST_DATA_URL: ${{ secrets.AZURE_DOCUMENTDB_TEST_DATA_URL }}
6464
run: pnpm --filter='./modules/module-mongodb' test

modules/module-mongodb/test/DOCUMENTDB_TESTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ npx vitest run documentdb --reporter=verbose
7777

7878
## GitHub Actions
7979

80-
The `.github/workflows/documentdb-integration.yml` workflow runs these tests manually via `workflow_dispatch` only. Add a repository or organization secret named `MONGO_TEST_DATA_URL`, then dispatch the workflow.
80+
The `.github/workflows/documentdb-integration.yml` workflow runs these tests manually via `workflow_dispatch` only. Add a repository or organization secret named `AZURE_DOCUMENTDB_TEST_DATA_URL`, then dispatch the workflow. The workflow maps that secret to the test suite's `MONGO_TEST_DATA_URL` environment variable.
8181

8282
The URI must include a database name in the path. The tests clear/drop this database as part of setup, so use a dedicated test database and cluster.
8383

0 commit comments

Comments
 (0)