blob: 9e9380faaa634a16f3b3a46326500b3b2fc9aeea [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" />
Eylon Malin7bb28ca2019-08-15 11:39:22 +03007 <listener class-name="vid.automation.test.infra.SkipTestUntilTestngTransformer"/>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +03008 </listeners>
9
10 <test name="test">
Ittay Sternf4dff322019-07-08 15:46:44 +030011 <method-selectors>
12 <method-selector>
13 <script language="beanshell">
14 <![CDATA[
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030015
Ittay Sternf4dff322019-07-08 15:46:44 +030016 //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 +030017
Ittay Sternf4dff322019-07-08 15:46:44 +030018 String [] exclusionGroups = new String [] {
19 "worksOnlyWithLocalASDC",
20 "worksOnlyWithLocalhostVID",
21 "underDevelopment"
22 };
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030023
Ittay Sternf4dff322019-07-08 15:46:44 +030024 String [] classes1 = new String [] {
25 "AsyncInstantiationALaCarteApiTest"
26 };
27 int selectPart = 0;
28
29 for (g: exclusionGroups) {
30 if (groups.containsKey(g)) return false;
31 }
32 if (selectPart == 0) return true;
33
34 methodClass = method.getDeclaringClass().toString();
35
36 if (methodClass.contains("org.onap.vid.api.Base")) return true;
37
38 for (c: classes1) {
39 if (methodClass.endsWith(c)) return selectPart==1;
40 }
41
42 // else
43 return selectPart==2;
44 ]]>
45 </script>
46 </method-selector>
47 </method-selectors>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030048 <packages>
Ittay Stern6ad41e32018-12-31 17:21:27 +020049 <package name="org.onap.vid.*"/>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030050 </packages>
51 </test>
Eylon Malin7bb28ca2019-08-15 11:39:22 +030052</suite>