mirror of
https://repository.entgra.net/community/product-iots-community.git
synced 2025-09-16 23:32:20 +00:00
refatcoring test cases
This commit is contained in:
parent
14d881bf70
commit
c8e94e8ef1
@ -59,7 +59,7 @@
|
||||
<property>
|
||||
<name>carbon.zip</name>
|
||||
<value>
|
||||
${basedir}/../../distribution/iot-community/target/${entgra-iot-community}.zip
|
||||
${basedir}/../distribution/iot-community/target/${entgra-iot-community}.zip
|
||||
</value>
|
||||
</property>
|
||||
<property>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
|
||||
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
/**
|
||||
* This class contains the functions to handle a HTTP Response
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import org.apache.commons.net.util.Base64;
|
||||
import org.json.JSONObject;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonObject;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException;
|
||||
import org.wso2.carbon.automation.test.utils.http.client.HttpRequestUtil;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common;
|
||||
package io.entgra.community.iots.integration.test.common;
|
||||
|
||||
import org.apache.commons.net.util.Base64;
|
||||
import org.testng.annotations.DataProvider;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common.extensions;
|
||||
package io.entgra.community.iots.integration.test.common.extensions;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -15,7 +15,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.iot.integration.common.extensions;
|
||||
package io.entgra.community.iots.integration.test.common.extensions;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common.extensions;
|
||||
package io.entgra.community.iots.integration.test.common.extensions;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.filefilter.DirectoryFileFilter;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common.extensions;
|
||||
package io.entgra.community.iots.integration.test.common.extensions;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.common.extensions;
|
||||
package io.entgra.community.iots.integration.test.common.extensions;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -16,7 +16,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.iot.integration.jmeter;
|
||||
package io.entgra.community.iots.integration.test.jmeter;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -189,9 +189,9 @@
|
||||
<platformExecutionManager>
|
||||
<extentionClasses>
|
||||
<class>
|
||||
<!-- <name>org.wso2.iot.integration.common.extensions.BrokerServerExtension</name>-->
|
||||
<name>org.wso2.iot.integration.common.extensions.IOTServerExtension</name>
|
||||
<!-- <name>org.wso2.iot.integration.common.extensions.AnalyticsServerExtension</name>-->
|
||||
<!-- <name>io.entgra.community.iots.integration.test.common.extensions.BrokerServerExtension</name>-->
|
||||
<name>io.entgra.community.iots.integration.test.common.extensions.IOTServerExtension</name>
|
||||
<!-- <name>io.entgra.community.iots.integration.test.common.extensions.AnalyticsServerExtension</name>-->
|
||||
<!-- <name>org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension</name>-->
|
||||
</class>
|
||||
</extentionClasses>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -29,7 +29,7 @@
|
||||
|
||||
<test name="iot-test-cases" preserve-order="true" parallel="false">
|
||||
<classes>
|
||||
<class name="org.wso2.iot.integration.jmeter.AndroidDeviceManagementAPIJmeterTestCase"/>
|
||||
<class name="io.entgra.community.iots.integration.test.jmeter.AndroidDeviceManagementAPIJmeterTestCase"/>
|
||||
</classes>
|
||||
</test>
|
||||
</suite>
|
||||
|
||||
@ -185,7 +185,7 @@
|
||||
<property name="db.dir" value="target/${wso2am}/repository/database" />
|
||||
<property name="userid" value="wso2carbon" />
|
||||
<property name="password" value="wso2carbon" />
|
||||
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
||||
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
||||
|
||||
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
||||
<classpath refid="maven.dependency.classpath" />
|
||||
@ -212,7 +212,7 @@
|
||||
<property name="db.dir" value="target/${wso2am}/repository/database" />
|
||||
<property name="userid" value="wso2carbon" />
|
||||
<property name="password" value="wso2carbon" />
|
||||
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
||||
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
||||
|
||||
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
||||
<classpath refid="maven.dependency.classpath" />
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
<directory>${basedir}/target/${wso2am}</directory>
|
||||
<outputDirectory>${entgra-iot-core}</outputDirectory>
|
||||
<excludes>
|
||||
<exclude>**/repository/conf/tomcat/context.xml</exclude>
|
||||
<!-- <exclude>**/repository/conf/tomcat/context.xml</exclude>-->
|
||||
<exclude>**/repository/conf/deployment.toml</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
|
||||
@ -105,7 +105,7 @@ config_endpoint = "https://localhost:8080/auth/v1"
|
||||
auth_token = ""
|
||||
|
||||
[web_app.listener]
|
||||
class_name = ["org.wso2.carbon.apimgt.webapp.publisher.lifecycle.listener.APIPublisherLifecycleListener", "io.entgra.device.mgt.core.device.mgt.core.config.permission.lifecycle.WebAppDeploymentLifecycleListener"]
|
||||
class_name = ["io.entgra.device.mgt.core.apimgt.webapp.publisher.lifecycle.listener.APIPublisherLifecycleListener", "io.entgra.device.mgt.core.device.mgt.core.config.permission.lifecycle.WebAppDeploymentLifecycleListener"]
|
||||
|
||||
[apim.key_manager]
|
||||
#service_url = "https://localhost:${mgt.transport.https.port}/services/"
|
||||
@ -115,7 +115,7 @@ class_name = ["org.wso2.carbon.apimgt.webapp.publisher.lifecycle.listener.APIPub
|
||||
#pool.max_idle = 100
|
||||
#key_validation_handler_type = "default"
|
||||
#key_validation_handler_type = "custom"
|
||||
key_validation_handler_impl = "org.wso2.carbon.apimgt.keymgt.extension.KeyValidationHandler"
|
||||
key_validation_handler_impl = "io.entgra.device.mgt.core.apimgt.keymgt.extension.KeyValidationHandler"
|
||||
|
||||
#[apim.idp]
|
||||
#server_url = "https://localhost:${mgt.transport.https.port}"
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
'managed-api-isSecured' - Indicates if the 'Managed API' needs to be exposed over a secured channel.
|
||||
'managed-api-transports' - Transports through which the 'Managed API' is exposed.
|
||||
-->
|
||||
<Listener className="org.wso2.carbon.apimgt.webapp.publisher.lifecycle.listener.APIPublisherLifecycleListener"/>
|
||||
<Listener className="io.entgra.device.mgt.core.apimgt.webapp.publisher.lifecycle.listener.APIPublisherLifecycleListener"/>
|
||||
|
||||
<!-- WebAppDeploymentLifecycleListener listens to webapp deployment events and adds the custom permissions defined in webapps'
|
||||
META-INF/permissions.xml to the permissions/admin section of registry. Given below is a sample of permissions.xml file.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user