@@ -120,7 +120,7 @@ extends:
120120 - script : eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_InternalBuildArgs) $(_InternalRuntimeDownloadArgs) $(_AdditionalBuildArgs)
121121 env :
122122 Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
123- name : Build
123+ displayName : Build
124124 templateContext :
125125 outputs :
126126 - output : pipelineArtifact
@@ -131,7 +131,7 @@ extends:
131131 - job : macOS
132132 pool :
133133 name : Azure Pipelines
134- image : macOS-11
134+ image : macOS-12
135135 os : macOS
136136 variables :
137137 # Rely on task Arcade injects, not auto-injected build step.
@@ -149,7 +149,7 @@ extends:
149149 Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
150150 # Work-around for https://github.com/dotnet/runtime/issues/70758
151151 COMPlus_EnableWriteXorExecute : 0
152- name : Build
152+ displayName : Build
153153 templateContext :
154154 outputs :
155155 - output : pipelineArtifact
@@ -172,12 +172,10 @@ extends:
172172 steps :
173173 - bash : |
174174 echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
175- echo "##vso[task.setvariable variable=_CosmosToken]$(ef-nightly-cosmos-key)"
176175 displayName: Prepare to run Cosmos tests on ef-nightly-test
177176 condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '0'), endsWith(variables['_runCounter'], '2'), endsWith(variables['_runCounter'], '4'), endsWith(variables['_runCounter'], '6'), endsWith(variables['_runCounter'], '8')))
178177 - bash : |
179178 echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
180- echo "##vso[task.setvariable variable=_CosmosToken]$(ef-pr-cosmos-test)"
181179 displayName: Prepare to run Cosmos tests on ef-pr-test
182180 condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '1'), endsWith(variables['_runCounter'], '3'), endsWith(variables['_runCounter'], '5'), endsWith(variables['_runCounter'], '7'), endsWith(variables['_runCounter'], '9')))
183181 - task : Bash@3
@@ -188,10 +186,20 @@ extends:
188186 env :
189187 Token : $(dn-bot-dnceng-artifact-feeds-rw)
190188 - script : eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
189+ displayName : Build
190+ - task : AzureCLI@2
191+ displayName : Run Cosmos tests
192+ inputs :
193+ azureSubscription : EFCosmosTesting
194+ scriptType : bash
195+ scriptLocation : ' inlineScript'
196+ inlineScript : |
197+ ./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj
191198 env :
192199 Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
193- Test__Cosmos__AuthToken : $(_CosmosToken)
194- name : Build
200+ Test__Cosmos__UseTokenCredential : true
201+ Test__Cosmos__SubscriptionId : d709b837-4a74-4aec-addc-b6e4b9b23e7e
202+ Test__Cosmos__ResourceGroup : efcosmosci
195203 templateContext :
196204 outputs :
197205 - output : pipelineArtifact
0 commit comments