You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "snazy (via GitHub)" <gi...@apache.org> on 2026/06/22 16:09:20 UTC
[PR] Migrate Ranger integration tests to server runner [polaris]
snazy opened a new pull request, #4857:
URL: https://github.com/apache/polaris/pull/4857
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate Ranger integration tests to server runner [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on code in PR #4857:
URL: https://github.com/apache/polaris/pull/4857#discussion_r3459194429
##########
extensions/auth/ranger/tests/build.gradle.kts:
##########
@@ -17,62 +17,94 @@
* under the License.
*/
+import org.gradle.api.attributes.java.TargetJvmVersion
+import org.gradle.api.plugins.jvm.JvmTestSuite
+
plugins {
- alias(libs.plugins.quarkus)
- id("org.kordamp.gradle.jandex")
- id("polaris-runtime")
+ id("polaris-client")
+ id("polaris-server-test-runner")
}
-dependencies {
- implementation(platform(libs.quarkus.bom))
- implementation("io.quarkus:quarkus-rest-jackson")
+val intTestJvmVersion = 21
- implementation(project(":polaris-extensions-auth-ranger"))
- implementation(project(":polaris-runtime-service"))
+dependencies { polarisServer(project(path = ":polaris-server", configuration = "quarkusRunner")) }
- testImplementation(project(":polaris-runtime-test-common"))
+testing {
+ suites {
+ @Suppress("UnstableApiUsage")
+ register<JvmTestSuite>("intTest") {
Review Comment:
Hm, I think it's cleaner to keep that to each module's discretion. Those are similar, but not equal enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate Ranger integration tests to server runner [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy merged PR #4857:
URL: https://github.com/apache/polaris/pull/4857
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate Ranger integration tests to server runner [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on code in PR #4857:
URL: https://github.com/apache/polaris/pull/4857#discussion_r3459180969
##########
extensions/auth/ranger/tests/src/intTest/java/org/apache/polaris/extension/auth/ranger/test/RangerIntegrationTestBase.java:
##########
@@ -43,6 +46,17 @@ public abstract class RangerIntegrationTestBase {
protected Map<String, String> user2Token = new HashMap<>();
+ @BeforeAll
+ static void configureRestAssured() {
+ RestAssured.baseURI = "http://localhost";
+ RestAssured.port = Integer.getInteger("quarkus.http.test-port");
Review Comment:
Yes, that's the system property passed from the test-server-runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate Ranger integration tests to server runner [polaris]
Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra commented on code in PR #4857:
URL: https://github.com/apache/polaris/pull/4857#discussion_r3459092347
##########
extensions/auth/ranger/tests/build.gradle.kts:
##########
@@ -17,62 +17,94 @@
* under the License.
*/
+import org.gradle.api.attributes.java.TargetJvmVersion
+import org.gradle.api.plugins.jvm.JvmTestSuite
+
plugins {
- alias(libs.plugins.quarkus)
- id("org.kordamp.gradle.jandex")
- id("polaris-runtime")
+ id("polaris-client")
+ id("polaris-server-test-runner")
}
-dependencies {
- implementation(platform(libs.quarkus.bom))
- implementation("io.quarkus:quarkus-rest-jackson")
+val intTestJvmVersion = 21
- implementation(project(":polaris-extensions-auth-ranger"))
- implementation(project(":polaris-runtime-service"))
+dependencies { polarisServer(project(path = ":polaris-server", configuration = "quarkusRunner")) }
- testImplementation(project(":polaris-runtime-test-common"))
+testing {
+ suites {
+ @Suppress("UnstableApiUsage")
+ register<JvmTestSuite>("intTest") {
Review Comment:
Hmm we already declare `intTest` in `polaris-runtime` plugin, couldn't we extract that into a new shared plugin, e.g. `polaris-testing`?
##########
extensions/auth/ranger/tests/src/intTest/java/org/apache/polaris/extension/auth/ranger/test/RangerIntegrationTestBase.java:
##########
@@ -43,6 +46,17 @@ public abstract class RangerIntegrationTestBase {
protected Map<String, String> user2Token = new HashMap<>();
+ @BeforeAll
+ static void configureRestAssured() {
+ RestAssured.baseURI = "http://localhost";
+ RestAssured.port = Integer.getInteger("quarkus.http.test-port");
Review Comment:
If we are not using Quarkus anymore, is this property the right one to use?
##########
extensions/auth/ranger/tests/build.gradle.kts:
##########
@@ -17,62 +17,94 @@
* under the License.
*/
+import org.gradle.api.attributes.java.TargetJvmVersion
+import org.gradle.api.plugins.jvm.JvmTestSuite
+
plugins {
- alias(libs.plugins.quarkus)
- id("org.kordamp.gradle.jandex")
- id("polaris-runtime")
+ id("polaris-client")
+ id("polaris-server-test-runner")
}
-dependencies {
- implementation(platform(libs.quarkus.bom))
- implementation("io.quarkus:quarkus-rest-jackson")
+val intTestJvmVersion = 21
- implementation(project(":polaris-extensions-auth-ranger"))
- implementation(project(":polaris-runtime-service"))
+dependencies { polarisServer(project(path = ":polaris-server", configuration = "quarkusRunner")) }
- testImplementation(project(":polaris-runtime-test-common"))
+testing {
+ suites {
+ @Suppress("UnstableApiUsage")
+ register<JvmTestSuite>("intTest") {
+ dependencies {
+ implementation(platform(libs.quarkus.bom))
+ implementation("io.rest-assured:rest-assured")
+ implementation(project(":polaris-tests"))
+ implementation(project(":polaris-runtime-test-common"))
+ implementation(project(":polaris-api-management-model"))
+ implementation(platform(libs.iceberg.bom))
+ implementation("org.apache.iceberg:iceberg-api")
+ implementation("org.apache.iceberg:iceberg-core")
- intTestImplementation("io.quarkus:quarkus-junit")
Review Comment:
Isn't this way of declaring `intTest` implementation dependencies cleaner than `testing { suites { register { dependencies { implementation(...) } } } }` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate Ranger integration tests to server runner [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on code in PR #4857:
URL: https://github.com/apache/polaris/pull/4857#discussion_r3459190598
##########
extensions/auth/ranger/tests/build.gradle.kts:
##########
@@ -17,62 +17,94 @@
* under the License.
*/
+import org.gradle.api.attributes.java.TargetJvmVersion
+import org.gradle.api.plugins.jvm.JvmTestSuite
+
plugins {
- alias(libs.plugins.quarkus)
- id("org.kordamp.gradle.jandex")
- id("polaris-runtime")
+ id("polaris-client")
+ id("polaris-server-test-runner")
}
-dependencies {
- implementation(platform(libs.quarkus.bom))
- implementation("io.quarkus:quarkus-rest-jackson")
+val intTestJvmVersion = 21
- implementation(project(":polaris-extensions-auth-ranger"))
- implementation(project(":polaris-runtime-service"))
+dependencies { polarisServer(project(path = ":polaris-server", configuration = "quarkusRunner")) }
- testImplementation(project(":polaris-runtime-test-common"))
+testing {
+ suites {
+ @Suppress("UnstableApiUsage")
+ register<JvmTestSuite>("intTest") {
+ dependencies {
+ implementation(platform(libs.quarkus.bom))
+ implementation("io.rest-assured:rest-assured")
+ implementation(project(":polaris-tests"))
+ implementation(project(":polaris-runtime-test-common"))
+ implementation(project(":polaris-api-management-model"))
+ implementation(platform(libs.iceberg.bom))
+ implementation("org.apache.iceberg:iceberg-api")
+ implementation("org.apache.iceberg:iceberg-core")
- intTestImplementation("io.quarkus:quarkus-junit")
Review Comment:
The effect's the same, however at the time the global `dependencies` block is evaluated, the `intTest` suite and its configurations might not be available. Other aspect: lazy evaluation - aka: the test-suite's part should only be evaluated when its really needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org