blob: ddd0f7ba3fb3263e081a19044d69a0fcf0643f2d [file] [log] [blame]
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +03001<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
2
3<suite verbose="1" name="VID API Tests" annotations="JDK">
4
5 <listeners>
6 <listener class-name="vid.automation.test.infra.FeatureTogglingTestngTransformer" />
7 </listeners>
8
9 <test name="test">
Ittay Sternf4dff322019-07-08 15:46:44 +030010 <method-selectors>
11 <method-selector>
12 <script language="beanshell">
13 <![CDATA[
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030014
Ittay Sternf4dff322019-07-08 15:46:44 +030015 //these tests call to MaintenanceController which is restricted to localhost, so it can not run on jenkins pipeline
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030016
Ittay Sternf4dff322019-07-08 15:46:44 +030017 String [] exclusionGroups = new String [] {
18 "worksOnlyWithLocalASDC",
19 "worksOnlyWithLocalhostVID",
20 "underDevelopment"
21 };
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030022
Ittay Sternf4dff322019-07-08 15:46:44 +030023 String [] classes1 = new String [] {
24 "AsyncInstantiationALaCarteApiTest"
25 };
26 int selectPart = 0;
27
28 for (g: exclusionGroups) {
29 if (groups.containsKey(g)) return false;
30 }
31 if (selectPart == 0) return true;
32
33 methodClass = method.getDeclaringClass().toString();
34
35 if (methodClass.contains("org.onap.vid.api.Base")) return true;
36
37 for (c: classes1) {
38 if (methodClass.endsWith(c)) return selectPart==1;
39 }
40
41 // else
42 return selectPart==2;
43 ]]>
44 </script>
45 </method-selector>
46 </method-selectors>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030047 <packages>
Ittay Stern6ad41e32018-12-31 17:21:27 +020048 <package name="org.onap.vid.*"/>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030049 </packages>
50 </test>
51</suite>