@@ -107,64 +107,64 @@ tasks.whenTaskAdded {task ->
107107}
108108
109109def splitTestConfig = [
110- dlicDlsflsTest : [
111- description : " Runs Document- and Field-Level Security tests ." ,
110+ ciSecurityIntegrationTest : [
111+ description : " Runs integration tests from all classes ." ,
112112 filters : [
113113 includeTestsMatching : [
114- " org.opensearch.security.dlic.dlsfls.*"
114+ " org.opensearch.security.*Integ*"
115+ ],
116+ excludeTestsMatching : [
117+ " org.opensearch.security.sanity.tests.*"
115118 ]
116119 ]
117120 ],
118- dlicRestApiTest : [
119- description : " Runs REST Management API tests." ,
121+ crossClusterTest : [
122+ description : " Runs cross-cluster tests." ,
120123 filters : [
121124 includeTestsMatching : [
122- " org.opensearch.security.dlic.rest .*"
125+ " org.opensearch.security.ccstest .*"
123126 ]
124127 ]
125128 ],
126- crossClusterTest : [
127- description : " Runs cross-cluster tests." ,
129+ dlicDlsflsTest : [
130+ description : " Runs Document- and Field-Level Security tests." ,
128131 filters : [
129132 includeTestsMatching : [
130- " org.opensearch.security.ccstest .*"
133+ " org.opensearch.security.dlic.dlsfls .*"
131134 ]
132135 ]
133136 ],
134- sslTest : [
135- description : " Runs most of the SSL tests." ,
137+ dlicRestApiTest : [
138+ description : " Runs REST Management API tests." ,
136139 filters : [
137140 includeTestsMatching : [
138- " org.opensearch.security.ssl.*"
139- ],
140- excludeTestsMatching : [
141- " org.opensearch.security.ssl.OpenSSL*"
141+ " org.opensearch.security.dlic.rest.*"
142142 ]
143143 ]
144144 ],
145- opensslCiTest : [
146- description : " Runs portion of SSL tests related to OpenSSL. Explained in https://github.com/opensearch-project/security/pull/2301" ,
147- include : ' **/OpenSSL*.class'
148- ],
149- securityIntegrationTest : [
150- description : " Runs integration tests from all classes." ,
145+ indicesTest : [
146+ description : " Runs indices tests from all classes." ,
151147 filters : [
152148 includeTestsMatching : [
153- " org.opensearch.security.*Integ *"
149+ " org.opensearch.security.*indices *"
154150 ],
155151 excludeTestsMatching : [
156152 " org.opensearch.security.sanity.tests.*"
157153 ]
158154 ]
159155 ],
160- indicesTest : [
161- description : " Runs indices tests from all classes." ,
156+ opensslCITest : [
157+ description : " Runs portion of SSL tests related to OpenSSL. Explained in https://github.com/opensearch-project/security/pull/2301" ,
158+ include : ' **/OpenSSL*.class'
159+ ],
160+ sslTest : [
161+ description : " Runs most of the SSL tests." ,
162162 filters : [
163163 includeTestsMatching : [
164- " org.opensearch.security.*indices *"
164+ " org.opensearch.security.ssl. *"
165165 ],
166166 excludeTestsMatching : [
167- " org.opensearch.security.sanity.tests. *"
167+ " org.opensearch.security.ssl.OpenSSL *"
168168 ]
169169 ]
170170 ]
@@ -177,7 +177,7 @@ task listTasksAsJSON {
177177 // want this action to be started. Without it the output
178178 // is not shown at all or can be mixed with other outputs.
179179 doLast {
180- System . out. println (new JsonBuilder (taskNames))
180+ System . out. println (new JsonBuilder ([ " citest " ] + taskNames))
181181 }
182182}
183183
@@ -269,7 +269,7 @@ task citest(type: Test) {
269269 excludeTestsMatching " org.opensearch.security.sanity.tests.*"
270270 excludeTestsMatching " org.opensearch.security.ssl.OpenSSL*"
271271 splitTestConfig. each { entry ->
272- entry. value. each{ test ->
272+ entry. value. filters . each{ test ->
273273 if (test. key == " includeTestsMatching" ) {
274274 test. value. each{
275275 excludeTestsMatching " ${ it} "
0 commit comments