Skip to content

Commit d0d53e5

Browse files
authored
Disable Cosmos tests on CI (#35933)
1 parent 314458d commit d0d53e5

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -170,36 +170,11 @@ extends:
170170
- _runCounter: $[counter(variables['Build.Reason'], 0)]
171171
# Rely on task Arcade injects, not auto-injected build step.
172172
- skipComponentGovernanceDetection: true
173-
- ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }}:
174-
- _CosmosConnectionUrl: 'true'
175173
steps:
176-
- bash: |
177-
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
178-
displayName: Prepare to run Cosmos tests on ef-nightly-test
179-
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')))
180-
- bash: |
181-
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
182-
displayName: Prepare to run Cosmos tests on ef-pr-test
183-
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')))
184174
- template: /eng/common/templates-official/steps/enable-internal-sources.yml
185175
- template: /eng/common/templates-official/steps/enable-internal-runtimes.yml
186176
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
187177
displayName: Build
188-
- task: AzureCLI@2
189-
displayName: Run Cosmos tests
190-
condition: notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
191-
inputs:
192-
azureSubscription: EFCosmosTesting
193-
scriptType: bash
194-
scriptLocation: 'inlineScript'
195-
inlineScript: |
196-
./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj
197-
env:
198-
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
199-
Test__Cosmos__UseTokenCredential: true
200-
Test__Cosmos__SubscriptionId: d709b837-4a74-4aec-addc-b6e4b9b23e7e
201-
Test__Cosmos__ResourceGroup: efcosmosci
202-
name: Build
203178
templateContext:
204179
outputs:
205180
- output: pipelineArtifact

test/EFCore.Cosmos.FunctionalTests/Query/AdHocJsonQueryCosmosTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected override async Task Seed21006(Context21006 context)
159159

160160
var wrapper = (CosmosClientWrapper)context.GetService<ICosmosClientWrapper>();
161161
var singletonWrapper = context.GetService<ISingletonCosmosClientWrapper>();
162-
var entitiesContainer = singletonWrapper.Client.GetContainer(StoreName, containerId: "Entities");
162+
var entitiesContainer = singletonWrapper.Client.GetContainer(TestStore.Name, containerId: "Entities");
163163

164164
var missingTopLevel =
165165
$$"""

test/EFCore.Cosmos.FunctionalTests/Query/AdHocMiscellaneousQueryCosmosTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected async Task Seed21006(JsonContext21006 context)
4545
{
4646
var wrapper = (CosmosClientWrapper)context.GetService<ICosmosClientWrapper>();
4747
var singletonWrapper = context.GetService<ISingletonCosmosClientWrapper>();
48-
var entitiesContainer = singletonWrapper.Client.GetContainer(StoreName, containerId: "Entities");
48+
var entitiesContainer = singletonWrapper.Client.GetContainer(TestStore.Name, containerId: "Entities");
4949

5050
var missingTopLevel =
5151
$$"""

0 commit comments

Comments
 (0)