Skip to content

Commit df5f964

Browse files
Added long emulator CI to cosmos pipelines (#46358)
* Added long emulator CI to cosmos pipelines * Commented out the query part and fixed rest of the tests * Separated out retry context tests for query * Enabled Container create delete tests * Moved flaky unit sink overflow test to its own unit test file * Increased the sleep duration for the sink to catch up
1 parent f14d55b commit df5f964

File tree

22 files changed

+480
-251
lines changed

22 files changed

+480
-251
lines changed

eng/pipelines/templates/stages/cosmos-emulator-matrix.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,28 @@
1111
"Emulator Only Integration Tests Tcp - Java 8": {
1212
"ProfileFlag": "-Pemulator",
1313
"PROTOCOLS": "[\"Tcp\"]",
14-
"DESIRED_CONSISTENCIES": "[\"Strong\", \"Session\"]",
14+
"DESIRED_CONSISTENCIES": "[\"Session\"]",
1515
"JavaTestVersion": "1.8",
1616
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
1717
},
1818
"Emulator Only Integration Tests Tcp - Java 17": {
1919
"ProfileFlag": "-Pemulator",
2020
"PROTOCOLS": "[\"Tcp\"]",
21-
"DESIRED_CONSISTENCIES": "[\"Strong\", \"Session\"]",
21+
"DESIRED_CONSISTENCIES": "[\"Strong\"]",
22+
"JavaTestVersion": "1.17",
23+
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
24+
},
25+
"Long Emulator Only Integration Tests Tcp - Java 8": {
26+
"ProfileFlag": "-Plong-emulator",
27+
"PROTOCOLS": "[\"Tcp\"]",
28+
"DESIRED_CONSISTENCIES": "[\"Session\"]",
29+
"JavaTestVersion": "1.8",
30+
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
31+
},
32+
"Long Emulator Only Integration Tests Tcp - Java 17": {
33+
"ProfileFlag": "-Plong-emulator",
34+
"PROTOCOLS": "[\"Tcp\"]",
35+
"DESIRED_CONSISTENCIES": "[\"Strong\"]",
2236
"JavaTestVersion": "1.17",
2337
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
2438
},
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!--
2+
~ The MIT License (MIT)
3+
~ Copyright (c) 2018 Microsoft Corporation
4+
~
5+
~ Permission is hereby granted, free of charge, to any person obtaining a copy
6+
~ of this software and associated documentation files (the "Software"), to deal
7+
~ in the Software without restriction, including without limitation the rights
8+
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
~ copies of the Software, and to permit persons to whom the Software is
10+
~ furnished to do so, subject to the following conditions:
11+
~
12+
~ The above copyright notice and this permission notice shall be included in all
13+
~ copies or substantial portions of the Software.
14+
~
15+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
~ SOFTWARE.
22+
-->
23+
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
24+
<suite name="long-emulator">
25+
<test name="long-emulator" group-by-instances="true">
26+
<groups>
27+
<run>
28+
<include name="long-emulator"/>
29+
</run>
30+
</groups>
31+
<packages>
32+
<package name="com.azure.cosmos.*"/>
33+
</packages>
34+
</test>
35+
</suite>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!--
2+
~ The MIT License (MIT)
3+
~ Copyright (c) 2018 Microsoft Corporation
4+
~
5+
~ Permission is hereby granted, free of charge, to any person obtaining a copy
6+
~ of this software and associated documentation files (the "Software"), to deal
7+
~ in the Software without restriction, including without limitation the rights
8+
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
~ copies of the Software, and to permit persons to whom the Software is
10+
~ furnished to do so, subject to the following conditions:
11+
~
12+
~ The above copyright notice and this permission notice shall be included in all
13+
~ copies or substantial portions of the Software.
14+
~
15+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
~ SOFTWARE.
22+
-->
23+
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
24+
<suite name="long-emulator">
25+
<test name="long-emulator" group-by-instances="true">
26+
<groups>
27+
<run>
28+
<include name="long-emulator"/>
29+
</run>
30+
</groups>
31+
<packages>
32+
<package name="com.azure.cosmos.*"/>
33+
</packages>
34+
</test>
35+
</suite>

0 commit comments

Comments
 (0)