Add test cases for aaf authz modules
[aaf/authz.git] / pom.xml
1 <!--
2   ============LICENSE_START====================================================
3   * org.onap.aaf
4   * ===========================================================================
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6   * ===========================================================================
7   * Licensed under the Apache License, Version 2.0 (the "License");
8   * you may not use this file except in compliance with the License.
9   * You may obtain a copy of the License at
10   * 
11    *      http://www.apache.org/licenses/LICENSE-2.0
12   * 
13    * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * ============LICENSE_END====================================================
19   *
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21   *
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25
26         <modelVersion>4.0.0</modelVersion>
27         <groupId>org.onap.aaf.authz</groupId>
28         <artifactId>parent</artifactId>
29         <version>1.0.1-SNAPSHOT</version>
30         <name>aaf-authz</name>
31         <packaging>pom</packaging>
32         <url>https://github.com/att/AAF</url>
33         
34         <parent>             
35         <groupId>org.onap.oparent</groupId>
36         <artifactId>oparent</artifactId>
37         <version>0.1.1</version>
38     </parent>
39         
40
41         <developers>
42                 <developer>
43                 <name>Jonathan Gathman</name>
44                 <email></email>
45         <organization>ATT</organization>
46         <organizationUrl></organizationUrl>
47                 </developer>
48         </developers>
49         <description>This module is used to organize all of the common SWM (Software Manager) 
50                 artifacts and capabilities that are inherited by all modules that are SWM
51                 packaged.  This prevents duplication of these common artifacts, plugins, and 
52                 other settings and provides a single place to support this configuration.
53         </description>
54         <properties>
55                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
56                 <skipTests>false</skipTests>
57                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
58                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
59                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
60                 <project.dme2Version>3.1.200</project.dme2Version>
61         <!--  SONAR  -->
62                  <jacoco.version>0.7.7.201606060606</jacoco.version>
63             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
64             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
65             <!-- Default Sonar configuration -->
66             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
67             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
68             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
69             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
70                 <nexusproxy>https://nexus.onap.org</nexusproxy>
71                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
72                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
73                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
74                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
75         </properties>
76         <build>
77                 <pluginManagement>
78                 <plugins>
79                           <plugin>
80                                         <groupId>org.apache.maven.plugins</groupId>
81                                         <artifactId>maven-compiler-plugin</artifactId>
82                                         <version>2.3.2</version> 
83                                         <configuration>
84                                                 <source>1.8</source>
85                                                 <target>1.8</target>
86                                         </configuration>
87                                 </plugin>
88                                 
89         
90                                 <plugin>
91                                   <groupId>org.apache.maven.plugins</groupId>
92                                   <artifactId>maven-surefire-plugin</artifactId>
93                                   <version>2.17</version>
94                                   <configuration>
95                                         <skipTests>${skipTests}</skipTests>
96                                         <includes>
97                                           <include>**/JU*.java</include>
98                                         </includes>
99                                         <excludes>
100                                 
101                                                 <exclude>**/JU_DataFile.java</exclude>
102                                         <exclude>**/JU_ArtiDAO.java</exclude>
103                                         <exclude>**/JU_CertDAO.java</exclude>
104                                         <exclude>**/JU_FastCalling.java</exclude>
105                                         <exclude>**/JU_NsDAO.java</exclude>
106                                           <!-- <exclude>**/authz-cass/**</exclude> -->
107                                           <!-- <exclude>**/JU_UseCase1.java</exclude> -->
108                                           <exclude>**/JU_RoleDAO.java</exclude>
109                                           <exclude>**/JU_PermDAO.java</exclude>
110                                            <exclude>**/JU_Question.java</exclude> 
111                                           <!-- <exclude>**/JU_NS.java</exclude> -->
112                                           <exclude>**/JU_HistoryDAO.java</exclude>                                
113                                           <exclude>**/JU_DelegateDAO.java</exclude>
114                                           <exclude>**/JU_CredDAO.java</exclude>
115                                           <exclude>**/JU_CacheInfoDAO.java</exclude>
116                                           <exclude>**/JU_ApprovalDAO.java</exclude>
117                                         <!--  <exclude>**/JU_Define.java</exclude>  -->
118                                         <exclude>**/JU_Identities.java</exclude>
119                                           <exclude>**/JU_AuthzTransFilter.java</exclude>
120                                           <exclude>**/JU_CachingFileAccess.java</exclude>
121                                           <!-- <exclude>**/AbsServiceTest.java</exclude>  -->
122                                   <!--            <exclude>**/JU_DefaultOrg.java</exclude> -->
123                                           <exclude>**/JU_FileServer.java</exclude>
124                                           <exclude>**/JU_DirectAAFLur.java</exclude>
125                                           <exclude>**/JU_AuthAPI.java</exclude>
126                                           <exclude>**/JU_GwAPI.java</exclude>  
127                                           
128                                           <!-- <exclude>**/JU_Perm_2_0*.java</exclude> -->
129                                           <!-- <exclude>**/JU_Role_2_0*.java</exclude>                             -->
130                         
131                                         </excludes>
132         
133                                   </configuration>
134                                 </plugin>
135         
136                                 <plugin>
137                                         <groupId>org.codehaus.mojo</groupId>
138                                         <artifactId>jaxb2-maven-plugin</artifactId>
139                                         <version>1.3</version>
140                                         <executions>
141                                                 <execution>
142                                                         <phase>generate-sources</phase>
143                                                         <goals>
144                                                                 <goal>xjc</goal>
145                                                         </goals>
146                                                 </execution>
147                                         </executions>
148                                         <configuration>
149                                                 <schemaDirectory>src/main/xsd</schemaDirectory>
150                                         </configuration>
151                                 </plugin>
152         
153                                 <plugin>
154                                   <groupId>org.apache.maven.plugins</groupId>
155                                   <artifactId>maven-failsafe-plugin</artifactId>
156                                   <version>2.17</version>
157                                   <configuration>
158                                                 <skipTests>true</skipTests>
159                                   </configuration>
160                                   <executions>
161                                         <execution>
162                                           <id>integration-test</id>
163                                           <goals>
164                                                 <goal>integration-test</goal>
165                                                 <goal>verify</goal>
166                                           </goals>
167                                         </execution>
168                                   </executions>
169                                 </plugin>
170                                 <plugin>
171                                         <groupId>org.apache.maven.plugins</groupId>
172                                         <artifactId>maven-jarsigner-plugin</artifactId>
173                                         <version>1.2</version>
174                                         <executions>
175                                                 <execution>
176                                                         <id>sign</id>
177                                                         <goals>
178                                                                 <goal>sign</goal>
179                                                         </goals>
180                                                         <configuration>
181                                                                 <!--  skip>${skipSigning}</skip -->
182                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
183                                                         </configuration>
184                                                 </execution>
185                                                 <execution>
186                                                         <id>verify</id>
187                                                         <goals>
188                                                                 <goal>verify</goal>
189                                                         </goals>
190                                                         <configuration>
191                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
192                                                         </configuration>
193                                                 </execution>
194                                         </executions>
195                                         <configuration>
196                                                 <skip>true</skip>
197                                                 <alias>aaf</alias>
198                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
199                                                 <storepass>Surprise!</storepass>
200                                                 <keypass>Surprise!</keypass>
201                                                 <verbose>true</verbose>
202                                                 <certs>true</certs>
203                                         </configuration>
204                                 </plugin>
205                                 
206                 <plugin>
207                         <groupId>org.apache.maven.plugins</groupId>
208                         <artifactId>maven-javadoc-plugin</artifactId>
209                         <version>2.10.4</version>
210                         <configuration>
211                         <failOnError>false</failOnError>
212                         </configuration>
213                         <executions>
214                                 <execution>
215                                         <id>attach-javadocs</id>
216                                         <goals>
217                                                 <goal>jar</goal>
218                                         </goals>
219                                 </execution>
220                         </executions>
221                 </plugin> 
222
223
224            
225                <plugin>
226                       <groupId>org.apache.maven.plugins</groupId>
227                       <artifactId>maven-source-plugin</artifactId>
228                       <version>2.2.1</version>
229                       <executions>
230                         <execution>
231                           <id>attach-sources</id>
232                           <goals>
233                             <goal>jar-no-fork</goal>
234                           </goals>
235                         </execution>
236                       </executions>
237                     </plugin>
238
239                         
240                 <plugin>
241                                 <groupId>org.codehaus.mojo</groupId>
242                                 <artifactId>cobertura-maven-plugin</artifactId>
243                                 <version>2.7</version>
244                                 <configuration>
245                                         <formats>
246                                         <format>html</format>
247                                         <format>xml</format>
248                                   </formats>
249                                 </configuration>
250                         </plugin>
251                 <plugin>
252                                 <groupId>org.sonatype.plugins</groupId>
253                                 <artifactId>nexus-staging-maven-plugin</artifactId>
254                                 <version>1.6.7</version>
255                                 <extensions>true</extensions>
256                                 <configuration>
257                                         <nexusUrl>${nexusproxy}</nexusUrl>
258                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
259                                         <serverId>ecomp-staging</serverId>
260                                 </configuration>
261                         </plugin>               
262                 <plugin>
263           <groupId>org.jacoco</groupId>
264           <artifactId>jacoco-maven-plugin</artifactId>
265           <version>${jacoco.version}</version>
266           <configuration>
267             <excludes>
268               <exclude>**/gen/**</exclude>
269               <exclude>**/generated-sources/**</exclude>
270               <exclude>**/yang-gen/**</exclude>
271               <exclude>**/pax/**</exclude>
272             </excludes>
273           </configuration>
274           <executions>
275
276             <execution>
277               <id>pre-unit-test</id>
278               <goals>
279                 <goal>prepare-agent</goal>
280               </goals>
281               <configuration>
282                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
283                 <propertyName>surefireArgLine</propertyName>
284               </configuration>
285             </execution>
286             
287        
288             <execution>
289               <id>post-unit-test</id>
290               <phase>test</phase>
291               <goals>
292                 <goal>report</goal>
293               </goals>
294               <configuration>
295                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
296                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
297               </configuration>
298             </execution>
299             <execution>
300               <id>pre-integration-test</id>
301               <phase>pre-integration-test</phase>
302               <goals>
303                 <goal>prepare-agent</goal>
304               </goals>
305               <configuration>
306                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
307
308                 <propertyName>failsafeArgLine</propertyName>
309               </configuration>
310             </execution>
311
312        
313             <execution>
314               <id>post-integration-test</id>
315               <phase>post-integration-test</phase>
316               <goals>
317                 <goal>report</goal>
318               </goals>
319               <configuration>
320                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
321                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
322               </configuration>
323             </execution>
324           </executions>
325         </plugin>       
326                                 
327                 </plugins>
328                 </pluginManagement>                     
329     </build>    
330         
331         <dependencies> 
332                 <dependency>
333                         <groupId>junit</groupId>
334                         <artifactId>junit</artifactId>
335                         <version>4.10</version>
336                         <scope>test</scope>
337                 </dependency>
338
339                 <dependency>
340                     <groupId>org.mockito</groupId>
341                     <artifactId>mockito-core</artifactId>
342                     <version>1.10.19</version>
343                     <scope>test</scope>
344                 </dependency>
345                 <dependency>
346                     <groupId>org.powermock</groupId>
347                     <artifactId>powermock-module-junit4</artifactId>
348                     <version>1.6.4</version>
349                     <scope>test</scope>
350                 </dependency>
351                 <dependency>
352                     <groupId>org.powermock</groupId>
353                     <artifactId>powermock-api-mockito</artifactId>
354                     <version>1.6.4</version>
355                     <scope>test</scope>
356                 </dependency> 
357
358          
359         </dependencies>         
360
361         <modules>
362                 <!-- 
363                    <module> auth-client</module>
364                    complile manually with mvn -N independently
365                 -->
366                 <module>authz-client</module>
367                 <module>authz-core</module>
368                 <module>authz-cass</module>
369                 <module>authz-defOrg</module>
370                 <module>authz-cmd</module>
371                 <!--  <module>authz-batch</module>-->
372                 <module>authz-test</module>
373                 <!--  <module>authz-gui</module> -->
374                 <module>authz-gw</module>
375                 <module>authz-certman</module>
376                 <module>authz-fs</module>
377                 <module>authz-service</module>
378         </modules>
379         
380         <dependencyManagement>
381                 <dependencies>
382                         <dependency>
383                                 <groupId>org.onap.aaf.inno</groupId>
384                                 <artifactId>env</artifactId>
385                                 <version>${project.innoVersion}</version>
386                         </dependency>
387
388                         <dependency>
389                                 <groupId>org.onap.aaf.inno</groupId>
390                                 <artifactId>log4j</artifactId>
391                                 <version>${project.innoVersion}</version>
392                         </dependency>
393
394                         <dependency>
395                                 <groupId>org.onap.aaf.inno</groupId>
396                                 <artifactId>rosetta</artifactId>
397                                 <version>${project.innoVersion}</version>
398                         </dependency>
399
400                         <dependency>
401                                 <groupId>org.onap.aaf.inno</groupId>
402                                 <artifactId>xgen</artifactId>
403                                 <version>${project.innoVersion}</version>
404                         </dependency>
405                         
406                         <dependency>
407                                 <groupId>org.onap.aaf.cadi</groupId>
408                                 <artifactId>cadi-core</artifactId>
409                                 <version>${project.cadiVersion}</version>
410                         </dependency>
411
412                         <dependency>
413                                 <groupId>org.onap.aaf.cadi</groupId>
414                                 <artifactId>cadi-client</artifactId>
415                                 <version>${project.cadiVersion}</version>
416                         </dependency>
417                         
418                         
419                         <dependency>
420                                 <groupId>org.onap.aaf.cadi</groupId>
421                                 <artifactId>cadi-aaf</artifactId>
422                                 <version>${project.cadiVersion}</version>
423                                 <exclusions>
424                               <exclusion> 
425                                         <groupId>org.apache.cassandra</groupId>
426                                 <artifactId>cassandra-all</artifactId>
427                       </exclusion>
428                             </exclusions> 
429                         </dependency>
430                         
431                         <dependency>
432                                 <groupId>org.onap.aaf.authz</groupId>
433                                 <artifactId>authz-client</artifactId>
434                                 <version>${project.interfaceVersion}</version>
435                         </dependency>
436                         
437                         
438                         <dependency>
439                                 <groupId>org.onap.aaf.authz</groupId>
440                                 <artifactId>authz-core</artifactId>
441                                 <version>${project.version}</version>
442                         </dependency>
443                         
444                         <dependency>
445                     <groupId>org.onap.aaf.authz</groupId>
446                     <artifactId>authz-cass</artifactId>
447                                 <version>${project.version}</version>
448                 </dependency>
449                 
450                 <dependency>
451                                 <groupId>org.onap.aaf.authz</groupId>
452                                 <artifactId>authz-batch</artifactId>
453                                 <version>${project.interfaceVersion}</version>
454                         </dependency>
455             
456
457
458                     <dependency>
459                     <groupId>org.onap.aaf.authz</groupId>
460                     <artifactId>authz-cmd</artifactId>
461                                 <version>${project.version}</version>
462                 </dependency>
463                 <dependency>
464                     <groupId>org.onap.aaf.authz</groupId>
465                     <artifactId>authz-gw</artifactId>
466                                 <version>${project.version}</version>
467                 </dependency>
468
469                         <dependency>
470                                 <groupId>com.att.aft</groupId>
471                                 <artifactId>dme2</artifactId>
472                                 <version>${project.dme2Version}</version>
473                         </dependency>
474                 
475                         <dependency>
476                           <groupId>javax.servlet</groupId>
477                           <artifactId>servlet-api</artifactId>
478                           <version>2.5</version>
479                         </dependency>
480                         
481                         <dependency>
482                                 <groupId>org.eclipse.jetty</groupId>
483                                 <artifactId>jetty-servlet</artifactId>
484                                 <version>9.0.3.v20130506</version>
485                         </dependency>
486                         
487                         <dependency>
488                                 <groupId>com.datastax.cassandra</groupId>
489                                 <artifactId>cassandra-all</artifactId>
490                                 <version>2.1.10</version>
491                                 <exclusions>
492                               <exclusion> 
493                                 <groupId>org.slf4j</groupId>
494                                 <artifactId>slf4j-log4j12</artifactId>
495                               </exclusion>
496                               <exclusion> 
497                                 <groupId>log4j</groupId>
498                                 <artifactId>log4j</artifactId>
499                               </exclusion>
500                             </exclusions> 
501                         </dependency>
502                         <dependency>
503                                 <groupId>com.datastax.cassandra</groupId>
504                                 <artifactId>cassandra-driver-core</artifactId>
505                                 <!-- version>1.0.3</version -->
506                                 <!-- version>1.0.5</version -->
507                                 <version>2.1.10</version>
508                                 <exclusions>
509                               <exclusion> 
510                                 <groupId>org.slf4j</groupId>
511                                 <artifactId>slf4j-log4j12</artifactId>
512                               </exclusion>
513                               <exclusion> 
514                                 <groupId>log4j</groupId>
515                                 <artifactId>log4j</artifactId>
516                               </exclusion>
517                             </exclusions> 
518                         </dependency>   
519
520                         <dependency>
521                                 <groupId>org.slf4j</groupId>
522                                 <artifactId>slf4j-log4j12</artifactId>
523                                 <version>1.7.5</version>
524                         </dependency>
525
526                         <dependency>
527                         <groupId>javax.mail</groupId>
528                         <artifactId>mail</artifactId>
529                         <version>1.4.5</version>
530                 </dependency> 
531
532                         
533                 </dependencies>
534         </dependencyManagement>
535         <distributionManagement>
536                 <repository>
537                         <id>ecomp-releases</id>
538                         <name>AAF Release Repository</name>
539                         <url>${nexusproxy}${releaseNexusPath}</url>
540                 </repository>
541                 <snapshotRepository>
542                         <id>ecomp-snapshots</id>
543                         <name>AAF Snapshot Repository</name>
544                         <url>${nexusproxy}${snapshotNexusPath}</url>
545                 </snapshotRepository>
546                 <site>
547                         <id>ecomp-site</id>
548                         <url>dav:${nexusproxy}${sitePath}</url>
549                 </site>
550         </distributionManagement>
551
552 </project>