Skip to content

Commit b04b9ee

Browse files
Updated compute gateway encoding test (Azure#32663)
* Updated compute gateway encoding test * Removed enableaad as it is on by default now
1 parent 527b28b commit b04b9ee

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

eng/pipelines/templates/stages/cosmos-sdk-client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ stages:
8080
PreSteps:
8181
- template: /eng/common/pipelines/templates/steps/cosmos-emulator.yml
8282
parameters:
83-
StartParameters: '/noexplorer /noui /enablepreview /EnableSqlComputeEndpoint /disableratelimiting /enableaadauthentication /partitioncount=50 /consistency=Strong'
83+
StartParameters: '/noexplorer /noui /enablepreview /EnableSqlComputeEndpoint /disableratelimiting /partitioncount=50 /consistency=Strong'
8484
- powershell: |
8585
$Key = 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
8686
$password = ConvertTo-SecureString -String $Key -Force -AsPlainText

sdk/cosmos/azure-cosmos/docs/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Emulator Integration tests are with test group `emulator`, labeled in the code a
9292
Latest version of Azure Cosmos DB Emulator can be downloaded and installed from [here](https://learn.microsoft.com/azure/cosmos-db/local-emulator)
9393
Our CI pipelines start Azure Cosmos DB Emulator with these parameters. It is highly recommended to use these for local development and testing.
9494
```shell
95-
/enablepreview /EnableSqlComputeEndpoint /disableratelimiting /enableaadauthentication /partitioncount=50 /consistency=Strong
95+
/enablepreview /EnableSqlComputeEndpoint /disableratelimiting /partitioncount=50 /consistency=Strong
9696
```
9797

9898
Other test groups are meant to be tested against Azure Cosmos DB production account, but can also be tested against Emulator. There are multiple different test groups like `groups = {"simple", "long", "direct", "multi-region", "multi-master"}`. For example, `CosmosItemTest` is a simple group test which can be run against Azure Cosmos DB production account, as well as against emulator.

sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/CosmosItemIdEncodingTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ public CosmosItemIdEncodingTest(CosmosClientBuilder clientBuilder) {
4444
super(clientBuilder.contentResponseOnWriteEnabled(true));
4545
}
4646

47-
@BeforeClass(groups = {"simple"}, timeOut = SETUP_TIMEOUT)
47+
@BeforeClass(groups = {"simple", "emulator"}, timeOut = SETUP_TIMEOUT)
4848
public void before_CosmosItemTest() {
4949
assertThat(this.client).isNull();
5050
this.client = getClientBuilder().buildClient();
5151
CosmosAsyncContainer asyncContainer = getSharedMultiPartitionCosmosContainer(this.client.asyncClient());
5252
container = client.getDatabase(asyncContainer.getDatabase().getId()).getContainer(asyncContainer.getId());
5353
}
5454

55-
@AfterClass(groups = {"simple"}, timeOut = SHUTDOWN_TIMEOUT, alwaysRun = true)
55+
@AfterClass(groups = {"simple", "emulator"}, timeOut = SHUTDOWN_TIMEOUT, alwaysRun = true)
5656
public void afterClass() {
5757
assertThat(this.client).isNotNull();
5858
this.client.close();
5959
}
6060

61-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
61+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
6262
public void plainVanillaId() {
6363
TestScenario scenario = new TestScenario(
6464
"PlainVanillaId",
@@ -85,7 +85,7 @@ public void plainVanillaId() {
8585
this.executeTestCase(scenario);
8686
}
8787

88-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
88+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
8989
public void containerIdWithUnicodeCharacter() {
9090
TestScenario scenario = new TestScenario(
9191
"ContainerIdWithUnicode鱀",
@@ -112,7 +112,7 @@ public void containerIdWithUnicodeCharacter() {
112112
this.executeTestCase(scenario);
113113
}
114114

115-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
115+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
116116
public void idWithWhitespaces() {
117117
TestScenario scenario = new TestScenario(
118118
"IdWithWhitespaces",
@@ -139,7 +139,7 @@ public void idWithWhitespaces() {
139139
this.executeTestCase(scenario);
140140
}
141141

142-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
142+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
143143
public void idStartingWithWhitespace() {
144144
TestScenario scenario = new TestScenario(
145145
"IdStartingWithWhitespace",
@@ -166,7 +166,7 @@ public void idStartingWithWhitespace() {
166166
this.executeTestCase(scenario);
167167
}
168168

169-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
169+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
170170
public void idStartingWithWhitespaces() {
171171
TestScenario scenario = new TestScenario(
172172
"IdStartingWithWhitespaces",
@@ -193,7 +193,7 @@ public void idStartingWithWhitespaces() {
193193
this.executeTestCase(scenario);
194194
}
195195

196-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
196+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
197197
public void idEndingWithWhitespace() {
198198
TestScenario scenario = new TestScenario(
199199
"IdEndingWithWhitespace",
@@ -220,7 +220,7 @@ public void idEndingWithWhitespace() {
220220
this.executeTestCase(scenario);
221221
}
222222

223-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
223+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
224224
public void idEndingWithWhitespaces() {
225225
TestScenario scenario = new TestScenario(
226226
"IdEndingWithWhitespaces",
@@ -247,7 +247,7 @@ public void idEndingWithWhitespaces() {
247247
this.executeTestCase(scenario);
248248
}
249249

250-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
250+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
251251
public void idWithUnicodeCharacters() {
252252
TestScenario scenario = new TestScenario(
253253
"IdWithUnicodeCharacters",
@@ -274,7 +274,7 @@ public void idWithUnicodeCharacters() {
274274
this.executeTestCase(scenario);
275275
}
276276

277-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
277+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
278278
public void idWithAllowedSpecialCharacters() {
279279
TestScenario scenario = new TestScenario(
280280
"IdWithAllowedSpecialCharacters",
@@ -301,7 +301,7 @@ public void idWithAllowedSpecialCharacters() {
301301
this.executeTestCase(scenario);
302302
}
303303

304-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
304+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
305305
public void idWithBase64EncodedIdCharacters() {
306306
String base64EncodedId = "BQE1D3PdG4N4bzU9TKaCIM3qc0TVcZ2/Y3jnsRfwdHC1ombkX3F1dot/SG0/UTq9AbgdX3kOWoP6qL6lJqWeKgV3zwWWPZO/t5X0ehJzv9LGkWld07LID2rhWhGT6huBM6Q=";
307307
String safeBase64EncodedId = base64EncodedId.replace("/", "-");
@@ -331,7 +331,7 @@ public void idWithBase64EncodedIdCharacters() {
331331
this.executeTestCase(scenario);
332332
}
333333

334-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
334+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
335335
public void idEndingWithPercentEncodedWhitespace() {
336336
TestScenario scenario = new TestScenario(
337337
"IdEndingWithPercentEncodedWhitespace",
@@ -358,7 +358,7 @@ public void idEndingWithPercentEncodedWhitespace() {
358358
this.executeTestCase(scenario);
359359
}
360360

361-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
361+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
362362
public void idWithPercentEncodedSpecialChar() {
363363
TestScenario scenario = new TestScenario(
364364
"IdWithPercentEncodedSpecialChar",
@@ -385,7 +385,7 @@ public void idWithPercentEncodedSpecialChar() {
385385
this.executeTestCase(scenario);
386386
}
387387

388-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
388+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
389389
public void idWithDisallowedCharQuestionMark() {
390390
TestScenario scenario = new TestScenario(
391391
"IdWithDisallowedCharQuestionMark",
@@ -413,7 +413,7 @@ public void idWithDisallowedCharQuestionMark() {
413413
}
414414

415415
@Ignore("Throws IllegalArgumentException instead of CosmosException")
416-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
416+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
417417
public void idWithDisallowedCharForwardSlash() {
418418
TestScenario scenario = new TestScenario(
419419
"IdWithDisallowedCharForwardSlash",
@@ -440,7 +440,7 @@ public void idWithDisallowedCharForwardSlash() {
440440
this.executeTestCase(scenario);
441441
}
442442

443-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
443+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
444444
public void idWithDisallowedCharBackSlash() {
445445
TestScenario scenario = new TestScenario(
446446
"IdWithDisallowedCharBackSlash",
@@ -467,7 +467,7 @@ public void idWithDisallowedCharBackSlash() {
467467
this.executeTestCase(scenario);
468468
}
469469

470-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
470+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
471471
public void idWithDisallowedCharPoundSign() {
472472
TestScenario scenario = new TestScenario(
473473
"IdWithDisallowedCharPoundSign",
@@ -494,7 +494,7 @@ public void idWithDisallowedCharPoundSign() {
494494
this.executeTestCase(scenario);
495495
}
496496

497-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
497+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
498498
public void idWithCarriageReturn() {
499499
TestScenario scenario = new TestScenario(
500500
"IdWithCarriageReturn",
@@ -521,7 +521,7 @@ public void idWithCarriageReturn() {
521521
this.executeTestCase(scenario);
522522
}
523523

524-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
524+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
525525
public void idWithTab() {
526526
TestScenario scenario = new TestScenario(
527527
"IdWithTab",
@@ -548,7 +548,7 @@ public void idWithTab() {
548548
this.executeTestCase(scenario);
549549
}
550550

551-
@Test(groups = { "simple" }, timeOut = TIMEOUT)
551+
@Test(groups = { "simple", "emulator" }, timeOut = TIMEOUT)
552552
public void idWithLineFeed() {
553553
TestScenario scenario = new TestScenario(
554554
"IdWithLineFeed",

0 commit comments

Comments
 (0)