Add sample build verification to integration testing

application-manager-new
charithag 9 years ago
parent d7b18057df
commit 45881b32ee

@ -34,10 +34,6 @@
<name>WSO2 IoT Server - Distribution</name> <name>WSO2 IoT Server - Distribution</name>
<description>WSO2 IoT Server Distribution</description> <description>WSO2 IoT Server Distribution</description>
<modules>
<module>src/samples</module>
</modules>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.h2database.wso2</groupId> <groupId>com.h2database.wso2</groupId>
@ -431,7 +427,7 @@
<!--Copy samples to distribution--> <!--Copy samples to distribution-->
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples" <copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples"
overwrite="true"> overwrite="true">
<fileset dir="src/samples"> <fileset dir="../samples">
<exclude name="**/*.iml"/> <exclude name="**/*.iml"/>
<exclude name="**/.DS_Store"/> <exclude name="**/.DS_Store"/>
<exclude name="**/target/"/> <exclude name="**/target/"/>

@ -37,23 +37,24 @@
<module>tests-integration</module> <module>tests-integration</module>
<!--<module>tests-ui-integration</module>--> <!--<module>tests-ui-integration</module>-->
<module>tests-platform</module> <module>tests-platform</module>
<module>tests-samples</module>
</modules> </modules>
<build> <!--<build>-->
<plugins> <!--<plugins>-->
<!--<plugin> <!--<plugin>-->
<artifactId>maven-clean-plugin</artifactId> <!--<artifactId>maven-clean-plugin</artifactId>-->
<version>2.4.1</version> <!--<version>2.4.1</version>-->
<executions> <!--<executions>-->
<execution> <!--<execution>-->
<id>auto-clean</id> <!--<id>auto-clean</id>-->
<phase>initialize</phase> <!--<phase>initialize</phase>-->
<goals> <!--<goals>-->
<goal>clean</goal> <!--<goal>clean</goal>-->
</goals> <!--</goals>-->
</execution> <!--</execution>-->
</executions> <!--</executions>-->
</plugin>--> <!--</plugin>-->
</plugins> <!--</plugins>-->
</build> <!--</build>-->
</project> </project>

@ -16,7 +16,8 @@
~ under the License. ~ under the License.
--> -->
<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/maven-v4_0_0.xsd"> <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/maven-v4_0_0.xsd">
<parent> <parent>
<groupId>org.wso2.iot</groupId> <groupId>org.wso2.iot</groupId>
@ -26,12 +27,8 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>tests-artifacts</artifactId> <artifactId>tests-artifacts</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 IoT Server Integration Test Common</name> <name>WSO2 IoT Server - Integration Test Artifacts</name>
<modules>
</modules>
</project> </project>

@ -27,8 +27,8 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>org.wso2.carbon.iot.integration.common.clients</artifactId> <artifactId>org.wso2.carbon.iot.integration.common.clients</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 MDM - Integration Admin Clients</name> <name>WSO2 IoT Server - Integration Test Common Admin Clients</name>
</project> </project>

@ -28,9 +28,8 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.iot.integration.common.utils</artifactId> <artifactId>org.wso2.carbon.iot.integration.common.utils</artifactId>
<groupId>org.wso2.iot</groupId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 IoT Server - Integration Test Utils</name> <name>WSO2 IoT Server - Integration Test Common Utils</name>
<licenses> <licenses>
<license> <license>

@ -26,10 +26,9 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>tests-common</artifactId> <artifactId>tests-common</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 IoT Server Integration Test Common</name> <name>WSO2 IoT Server - Integration Test Common</name>
<modules> <modules>
<module>admin-clients</module> <module>admin-clients</module>

@ -29,10 +29,9 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>org.wso2.carbon.iot.integration.ui.pages</artifactId> <artifactId>org.wso2.carbon.iot.integration.ui.pages</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 MDM - Integration Test UI Pages</name> <name>WSO2 IoT Server - Integration Test Common UI Pages</name>
<dependencies> <dependencies>
<dependency> <dependency>

@ -16,7 +16,7 @@
*under the License. *under the License.
*/ */
package org.wso2.emm.integration.ui.pages; package org.wso2.carbon.iot.integration.ui.pages;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -31,13 +31,13 @@ import javax.xml.xpath.XPathExpressionException;
import java.io.IOException; import java.io.IOException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
public class EMMIntegrationUiBaseTestCase { public class IntegrationUiBaseTestCase {
private static final Log log = LogFactory.getLog(EMMIntegrationUiBaseTestCase.class); private static final Log log = LogFactory.getLog(IntegrationUiBaseTestCase.class);
protected AutomationContext automationContext; protected AutomationContext automationContext;
protected void init() throws IOException, XMLStreamException, XPathExpressionException { protected void init() throws IOException, XMLStreamException, XPathExpressionException {
automationContext = new AutomationContext("EMM", "emm001", TestUserMode.SUPER_TENANT_ADMIN); automationContext = new AutomationContext("IoTServer", "IoT001", TestUserMode.SUPER_TENANT_ADMIN);
} }
protected String getBackendURL() throws XPathExpressionException { protected String getBackendURL() throws XPathExpressionException {

@ -16,7 +16,7 @@
*under the License. *under the License.
*/ */
package org.wso2.emm.integration.ui.pages; package org.wso2.carbon.iot.integration.ui.pages;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -16,16 +16,16 @@
*under the License. *under the License.
*/ */
package org.wso2.emm.integration.ui.pages.home; package org.wso2.carbon.iot.integration.ui.pages.home;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.wso2.emm.integration.ui.pages.UIElementMapper; import org.wso2.carbon.iot.integration.ui.pages.UIElementMapper;
import org.wso2.carbon.iot.integration.ui.pages.login.LoginPage;
import java.io.IOException; import java.io.IOException;
import org.wso2.emm.integration.ui.pages.login.LoginPage;
/** /**
* Home page class holds the information of product page you got once login * Home page class holds the information of product page you got once login

@ -16,17 +16,17 @@
*under the License. *under the License.
*/ */
package org.wso2.emm.integration.ui.pages.login; package org.wso2.carbon.iot.integration.ui.pages.login;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
import org.wso2.emm.integration.ui.pages.UIElementMapper; import org.wso2.carbon.iot.integration.ui.pages.UIElementMapper;
import java.io.IOException; import java.io.IOException;
import org.wso2.emm.integration.ui.pages.home.HomePage; import org.wso2.carbon.iot.integration.ui.pages.home.HomePage;
/** /**
* Login page class - contains methods to login to wso2 products. * Login page class - contains methods to login to wso2 products.

@ -26,12 +26,8 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>tests-integration</artifactId> <artifactId>tests-integration</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 IoT Server Integration Tests</name> <name>WSO2 IoT Server - Integration Test</name>
<modules>
</modules>
</project> </project>

@ -26,12 +26,8 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.iot</groupId>
<artifactId>tests-platform</artifactId> <artifactId>tests-platform</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 IoT Server Integration Tests</name> <name>WSO2 IoT Server - Integration Test Platform</name>
<modules>
</modules>
</project> </project>

@ -0,0 +1,38 @@
<!--
~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<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/maven-v4_0_0.xsd">
<parent>
<groupId>org.wso2.iot</groupId>
<artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>tests-samples</artifactId>
<packaging>pom</packaging>
<name>WSO2 IoT Server - Integration Test Samples</name>
<modules>
<module>../../samples</module>
</modules>
</project>

@ -1,4 +1,4 @@
<project name="Arduino" basedir="." default="deploy"> <project name="Arduino" basedir="" default="deploy">
<import file="../common.xml"/> <import file="../common.xml"/>

@ -1,4 +1,4 @@
<project name="Arduino" basedir="." default="deploy"> <project name="Arduino" basedir="" default="deploy">
<import file="../common.xml"/> <import file="../common.xml"/>

@ -1,9 +1,9 @@
<project name="IoTServerSamples" basedir="." default="deploy"> <project name="IoTServerSamples" basedir="" default="deploy">
<macrodef name="iterate"> <macrodef name="iterate">
<attribute name="target"/> <attribute name="target"/>
<sequential> <sequential>
<subant target="@{target}"> <subant target="@{target}">
<fileset dir="." includes="*/build.xml"/> <fileset dir="" includes="*/build.xml"/>
</subant> </subant>
</sequential> </sequential>
</macrodef> </macrodef>

@ -1,4 +1,4 @@
<project name="DigitalDisplay" basedir="." default="deploy"> <project name="DigitalDisplay" basedir="" default="deploy">
<import file="../common.xml"/> <import file="../common.xml"/>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save