You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2020/08/04 09:12:47 UTC

[phoenix-queryserver] 02/02: change profile activation and update README for it.

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to annotated tag python-phoenixdb-1.0.0.rc0
in repository https://gitbox.apache.org/repos/asf/phoenix-queryserver.git

commit dca959bc19d65db29fd0aa9ac0afa582fb688f85
Author: Istvan Toth <st...@apache.org>
AuthorDate: Fri Jul 31 08:31:13 2020 +0200

    change profile activation and update README for it.
---
 README.md                      | 20 ++++++++++++++++++++
 phoenix-queryserver-it/pom.xml |  9 +--------
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index ef1fe25..398d005 100644
--- a/README.md
+++ b/README.md
@@ -53,3 +53,23 @@ PQS will package the same version of Phoenix used for build/test. This version i
 ```
 $ mvn package -Dpackage.phoenix.client -Dphoenix.version=5.1.0-SNAPSHOT
 ```
+
+### Running integration tests
+
+`mvn package` will run the unit tests while building, but it will not run the integration test suite.
+
+The IT suite is run when executing `mvn install` or `mvn verify`. The Phoenix version specified 
+with `phoenix.version` is used for running the integration tests.
+
+When specifying `phoenix.version`, also specify the HBase version to be used
+for integration testing by activating the corresponding `hbase<minor.major>` profile.
+
+When using a Phoenix 5.x version, activate the `hbase-2.x` profile in addition to the
+profile for the minor 2.x version.
+
+```
+$ mvn verify -Dpackage.phoenix.client -Dphoenix.version=4.16.0-SNAPSHOT -Phbase-1.3
+```
+```
+$ mvn install -Dpackage.phoenix.client -Dphoenix.version=5.1.0-SNAPSHOT -Phbase-2.1 -Phbase-2.x
+```
diff --git a/phoenix-queryserver-it/pom.xml b/phoenix-queryserver-it/pom.xml
index 6fd5dd7..5ba071e 100644
--- a/phoenix-queryserver-it/pom.xml
+++ b/phoenix-queryserver-it/pom.xml
@@ -183,15 +183,8 @@
   </dependencies>
 
   <profiles>
-    <!-- Phoenix 4.16.0-SNAPSHOT doesn't need special handling -->
     <profile>
-      <id>phoenix-5.1.0-SNAPSHOT</id>
-      <activation>
-        <property>
-          <name>phoenix.version</name>
-          <value>5.1.0-SNAPSHOT</value>
-        </property>
-      </activation>
+      <id>hbase-2.x</id>
       <properties>
         <hbase.version>2.1.9</hbase.version>
         <hadoop.version>3.0.3</hadoop.version>