File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
workers/tests/emulator_tests Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88
88
python -m pytest -q -n auto --dist loadfile --reruns 4 --ignore=tests/emulator_tests/test_servicebus_functions.py tests/emulator_tests
89
89
env:
90
90
AzureWebJobsStorage: "UseDevelopmentStorage=true"
91
- AzureWebJobsEventHubConnectionString: "Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"
92
- AzureWebJobsCosmosDBConnectionString: "AccountEndpoint=http://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==;"
91
+ AzureWebJobsEventHubConnectionString: $(EmulatorEventHubConnectionString)
92
+ AzureWebJobsCosmosDBConnectionString: $(EmulatorCosmosDBConnectionString)
93
93
workingDirectory: $(Build.SourcesDirectory)/workers
94
94
displayName: "Running $(PYTHON_VERSION) Python Linux Emulator Tests"
95
95
- bash : |
@@ -105,6 +105,6 @@ jobs:
105
105
python -m pytest -q -n auto --dist loadfile --reruns 4 tests/emulator_tests/test_servicebus_functions.py
106
106
env:
107
107
AzureWebJobsStorage: "UseDevelopmentStorage=true"
108
- AzureWebJobsServiceBusConnectionString: "Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"
108
+ AzureWebJobsServiceBusConnectionString: $(EmulatorServiceBusConnectionString)
109
109
workingDirectory: $(Build.SourcesDirectory)/workers
110
110
displayName: "Running $(PYTHON_VERSION) Python ServiceBus Linux Emulator Tests"
Original file line number Diff line number Diff line change 3
3
import json
4
4
import time
5
5
from azure .cosmos import CosmosClient , PartitionKey
6
+ from unittest import skip
6
7
7
8
from tests .utils import testutils
8
9
@@ -64,6 +65,7 @@ def test_cosmosdb_trigger(self):
64
65
self .assertTrue ('_rid' in response )
65
66
self .assertTrue ('_ts' in response )
66
67
68
+ @skip ("Waiting for 'Read collection feed' support in CosmosDB Emulator" )
67
69
def test_cosmosdb_input (self ):
68
70
data = str (round (time .time ()))
69
71
doc = {'id' : 'cosmosdb-input-test' ,
You can’t perform that action at this time.
0 commit comments