Onboard PNF software version Ui test case
[sdc.git] / ui-ci / pom.xml
index e2508d1..30ed36c 100644 (file)
@@ -1,5 +1,5 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
        <modelVersion>4.0.0</modelVersion>
 
@@ -9,7 +9,7 @@
        <parent>
                <groupId>org.openecomp.sdc</groupId>
                <artifactId>sdc-main</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
+               <version>1.6.0-SNAPSHOT</version>
        </parent>
 
        <properties>
                <dependency>
                        <groupId>org.seleniumhq.selenium</groupId>
                        <artifactId>selenium-java</artifactId>
+
                        <version>2.53.1</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.eclipse.jetty</groupId>
+                                       <artifactId>jetty-util</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>io.netty</groupId>
+                                       <artifactId>netty</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.eclipse.jetty</groupId>
+                       <artifactId>jetty-util</artifactId>
+                       <version>${jetty.version}</version>
                </dependency>
 
                <dependency>
                        <scope>compile</scope>
                </dependency>
 
-               <!-- TITAN -->
-               <dependency>
-                       <groupId>com.thinkaurelius.titan</groupId>
-                       <artifactId>titan-core</artifactId>
-                       <version>${titan.version}</version>
-                       <scope>compile</scope>
-               </dependency>
-
-               <dependency>
-                       <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
-                       <artifactId>sdc-titan-cassandra</artifactId>
-                       <version>${sdc.titan.version}</version>
-                       <scope>compile</scope>
-               </dependency>
-
                <dependency>
                        <groupId>org.codehaus.jackson</groupId>
                        <artifactId>jackson-mapper-asl</artifactId>
                </dependency>
 
                <dependency>
-                       <groupId>com.fasterxml.jackson.core</groupId>
-                       <artifactId>jackson-core</artifactId>
-                       <version>${jackson.version}</version>
+                       <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
+                       <artifactId>sdc-distribution-client</artifactId>
+                       <version>1.2.3</version>
                        <scope>compile</scope>
                </dependency>
 
                <dependency>
-                       <groupId>com.fasterxml.jackson.core</groupId>
-                       <artifactId>jackson-annotations</artifactId>
-                       <version>${jackson.annotations.version}</version>
+                       <groupId>org.hamcrest</groupId>
+                       <artifactId>hamcrest</artifactId>
+                       <version>${hamcrest.version}</version>
                        <scope>compile</scope>
                </dependency>
 
                <dependency>
-                       <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
-                       <artifactId>sdc-distribution-client</artifactId>
-                       <version>1.2.3</version>
+                       <groupId>org.hamcrest</groupId>
+                       <artifactId>hamcrest-library</artifactId>
+                       <version>${hamcrest.version}</version>
                        <scope>compile</scope>
                </dependency>
 
 
                <dependency>
                        <groupId>net.lightbody.bmp</groupId>
-                       <!-- To use the legacy, Jetty-based implementation, change the artifactId 
+                       <!-- To use the legacy, Jetty-based implementation, change the artifactId
                                to browsermob-core -->
                        <artifactId>browsermob-core</artifactId>
                        <version>2.1.4</version>
                        <artifactId>guice</artifactId>
                        <version>4.1.0</version>
                </dependency>
+
+               <dependency>
+                       <groupId>org.codehaus.groovy</groupId>
+                       <artifactId>groovy</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>io.netty</groupId>
+                       <artifactId>netty-handler</artifactId>
+               </dependency>
+
        </dependencies>
 
        <build>
 
                <plugins>
+
                        <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-clean-plugin</artifactId>
-                               <version>3.0.0</version>
                                <executions>
                                        <execution>
                                                <id>clean.tosca.chef.os.folder</id>
                                                                        <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
                                                                        <followSymlinks>false</followSymlinks>
                                                                </fileset>
+                                                               <!-- Package files -->
+                                                               <fileset>
+                                                                       <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files</directory>
+                                                                       <followSymlinks>false</followSymlinks>
+                                                               </fileset>
                                                        </filesets>
                                                </configuration>
                                        </execution>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-deploy-plugin</artifactId>
-                               <version>2.7</version>
                                <configuration>
                                        <skip>true</skip>
                                </configuration>
                        </plugin>
-
-                       <!-- ============================================= -->
-                       <!-- Create the JAR file with its dependencies -->
-                       <!-- ============================================= -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-assembly-plugin</artifactId>
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <groupId>com.github.sylvainlaurent.maven</groupId>
+                               <artifactId>yaml-json-validator-maven-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>validate</id>
+                                               <phase>validate</phase>
+                                               <goals>
+                                                       <goal>validate</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <validationSets>
+                                                               <validationSet>
+                                                                       <includes>
+                                                                               <include>src/main/resources/**/*.y*ml</include>
+                                                                               <include>src/test/resources/**/*.y*ml</include>
+                                                                       </includes>
+                                                               </validationSet>
+                                                               <validationSet>
+                                                                       <includes>
+                                                                               <include>src/main/resources/**/*.json</include>
+                                                                               <include>src/test/resources/**/*.json</include>
+                                                                       </includes>
+                                                               </validationSet>
+                                                       </validationSets>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
        </build>
        <profiles>
                        <build>
                                <plugins>
                                        <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-resources-plugin</artifactId>
-                                               <version>3.0.2</version>
                                                <executions>
                                                        <execution>
                                                                <id>copy-tests-suites</id>
                                                                </configuration>
                                                        </execution>
 
+                                                       <execution>
+                                                               <id>copy-csar-files</id>
+                                                               <phase>verify</phase>
+                                                               <goals>
+                                                                       <goal>copy-resources</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files</outputDirectory>
+                                                                       <resources>
+                                                                               <resource>
+                                                                                       <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files</directory>
+                                                                                       <filtering>false</filtering>
+                                                                                       <includes>
+                                                                                               <include>VNFs/*</include>
+                                                                                               <include>PNFs/*</include>
+                                                                                       </includes>
+                                                                               </resource>
+                                                                       </resources>
+                                                               </configuration>
+                                                       </execution>
+
                                                        <execution>
                                                                <id>copy-resources-ui-ci</id>
                                                                <phase>verify</phase>
                                        <plugin>
                                                <groupId>io.fabric8</groupId>
                                                <artifactId>docker-maven-plugin</artifactId>
-                                               <version>${fabric8.version}</version>
-
                                                <configuration>
-                                                       <verbose>true</verbose>
                                                        <apiVersion>1.23</apiVersion>
                                                        <registry>nexus3.onap.org:10001</registry>
                                                        <authConfig>
                                                                                <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
                                                                                <tags>
                                                                                        <tag>${docker.tag}</tag>
-                                                                                       <tag>${docker.latest.tag}</tag>
                                                                                        <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
                                                                                </tags>
                                                                        </build>