Skip to content

Commit

Permalink
wip: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshi06 committed Mar 26, 2024
1 parent 0bd445c commit 895ba80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Start Azure Cosmos DB emulator
run: docker run --detach --publish 8081:8081 --publish 10250-10255:10250-10255 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
run: docker run --detach --publish 8082:8081 --publish 10250-10255:10250-10255 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest

- name: Setup database
run: |
Expand Down Expand Up @@ -50,5 +50,5 @@ jobs:

- name: Run ndc-test
working-directory: ndc-spec
# run: cargo run --bin ndc-test -- replay --endpoint http://0.0.0.0:8080 --snapshots-dir ../cosmos/ndc-test-snapshots
run: cargo run --bin ndc-test -- test --endpoint http://0.0.0.0:8080
run: cargo run --bin ndc-test -- replay --endpoint http://0.0.0.0:8080 --snapshots-dir ../cosmos/ndc-test-snapshots
# run: cargo run --bin ndc-test -- test --endpoint http://0.0.0.0:8080
2 changes: 1 addition & 1 deletion connector_config_emulator.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"azure_cosmos_key": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
"azure_cosmos_db_endpoint": "https://localhost:8081/",
"azure_cosmos_db_endpoint": "https://localhost:8082/",
"azure_cosmos_db_name": "ConnectorTest",
"azure_cosmos_no_of_rows_to_fetch": 100
}
2 changes: 1 addition & 1 deletion script/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CosmosClient } from '@azure/cosmos'

const cosmosClient = new CosmosClient({
endpoint: 'https://localhost:8081/',
endpoint: 'https://localhost:8082/',
key: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
})

Expand Down

0 comments on commit 895ba80

Please sign in to comment.