You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2023/07/07 13:42:10 UTC

[sling-org-apache-sling-testing-paxexam] branch master updated (e4db9bc -> f59827d)

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

olli pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-paxexam.git


    from e4db9bc  SLING-11709 - Set up Jira autolinks to all Sling Github projects
     new de886fe  SLING-11791 Provide Commons Permissions Sling Option
     new f59827d  SLING-11790 Provide Commons Permissions Option

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/sling/testing/paxexam/SlingOptions.java | 22 ----------
 .../testing/paxexam/SlingVersionResolver.java      |  2 -
 .../SlingOptionsSlingCommonsPermissionsIT.java     | 50 ----------------------
 ...SlingOptionsSlingCommonsPermissionsSlingIT.java | 50 ----------------------
 4 files changed, 124 deletions(-)
 delete mode 100644 src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsIT.java
 delete mode 100644 src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsSlingIT.java


[sling-org-apache-sling-testing-paxexam] 02/02: SLING-11790 Provide Commons Permissions Option

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-paxexam.git

commit f59827dd33571edda1c5ebbf2626b0f9c3e55c31
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Fri Jul 7 14:58:55 2023 +0200

    SLING-11790 Provide Commons Permissions Option
    
    undo, no consent for Commons Permissions
---
 .../apache/sling/testing/paxexam/SlingOptions.java |  6 ---
 .../testing/paxexam/SlingVersionResolver.java      |  1 -
 .../SlingOptionsSlingCommonsPermissionsIT.java     | 50 ----------------------
 3 files changed, 57 deletions(-)

diff --git a/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java b/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
index 37136d9..2d93c1b 100644
--- a/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
+++ b/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
@@ -430,12 +430,6 @@ public final class SlingOptions {
         );
     }
 
-    public static ModifiableCompositeOption slingCommonsPermissions() {
-        return composite(
-            mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.commons.permissions").version(versionResolver)
-        );
-    }
-
     public static ModifiableCompositeOption slingCommonsScheduler() {
         return composite(
             scr(),
diff --git a/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java b/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
index 7bd6e69..132f3bf 100644
--- a/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
+++ b/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
@@ -209,7 +209,6 @@ public class SlingVersionResolver implements VersionResolver {
         versions.put("org.apache.sling:org.apache.sling.commons.metrics", "1.2.12");
         versions.put("org.apache.sling:org.apache.sling.commons.mime", "2.2.2");
         versions.put("org.apache.sling:org.apache.sling.commons.osgi", "2.4.2");
-        versions.put("org.apache.sling:org.apache.sling.commons.permissions", "1.0.0-SNAPSHOT");
         versions.put("org.apache.sling:org.apache.sling.commons.scheduler", "2.7.12");
         versions.put("org.apache.sling:org.apache.sling.commons.threads", "3.2.22");
         versions.put("org.apache.sling:org.apache.sling.discovery.api", "1.0.4");
diff --git a/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsIT.java b/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsIT.java
deleted file mode 100644
index 94e85f8..0000000
--- a/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsIT.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF 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.
- */
-package org.apache.sling.testing.paxexam.it.tests;
-
-import org.apache.sling.testing.paxexam.it.SlingOptionsTestSupport;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.ops4j.pax.exam.Configuration;
-import org.ops4j.pax.exam.Option;
-import org.ops4j.pax.exam.junit.PaxExam;
-import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
-import org.ops4j.pax.exam.spi.reactors.PerClass;
-
-import static org.apache.sling.testing.paxexam.SlingOptions.slingCommonsPermissions;
-import static org.ops4j.pax.exam.CoreOptions.options;
-
-@RunWith(PaxExam.class)
-@ExamReactorStrategy(PerClass.class)
-public class SlingOptionsSlingCommonsPermissionsIT extends SlingOptionsTestSupport {
-
-    @Configuration
-    public Option[] configuration() {
-        return options(
-            baseConfiguration(),
-            slingCommonsPermissions()
-        );
-    }
-
-    @Test
-    @SuppressWarnings("java:S2699")
-    public void test() {
-    }
-
-}


[sling-org-apache-sling-testing-paxexam] 01/02: SLING-11791 Provide Commons Permissions Sling Option

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-paxexam.git

commit de886fe874350824020a458e9ac63c9fa91d1244
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Fri Jul 7 14:57:45 2023 +0200

    SLING-11791 Provide Commons Permissions Sling Option
    
    undo, no consent for Commons Permissions
---
 .../apache/sling/testing/paxexam/SlingOptions.java | 16 -------
 .../testing/paxexam/SlingVersionResolver.java      |  1 -
 ...SlingOptionsSlingCommonsPermissionsSlingIT.java | 50 ----------------------
 3 files changed, 67 deletions(-)

diff --git a/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java b/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
index 4ea1119..37136d9 100644
--- a/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
+++ b/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java
@@ -436,22 +436,6 @@ public final class SlingOptions {
         );
     }
 
-    public static ModifiableCompositeOption slingCommonsPermissionsSling() {
-        return composite(
-            scr(),
-            slingCommonsPermissions(),
-            slingJcr(),
-            mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.commons.permissions.sling").version(versionResolver),
-            factoryConfiguration("org.apache.sling.jcr.base.internal.LoginAdminWhitelist.fragment")
-                .put("whitelist.bundles", new String[]{"org.apache.sling.commons.permissions.sling"})
-                .put("whitelist.name", "sling-commons-permissions-sling")
-                .asOption(),
-            factoryConfiguration("org.apache.sling.jcr.repoinit.RepositoryInitializer")
-                .put("scripts", new String[]{"create path (sling:Folder) /libs/sling/permissions(sling:OrderedFolder)"})
-                .asOption()
-        );
-    }
-
     public static ModifiableCompositeOption slingCommonsScheduler() {
         return composite(
             scr(),
diff --git a/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java b/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
index 4c234ae..7bd6e69 100644
--- a/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
+++ b/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
@@ -210,7 +210,6 @@ public class SlingVersionResolver implements VersionResolver {
         versions.put("org.apache.sling:org.apache.sling.commons.mime", "2.2.2");
         versions.put("org.apache.sling:org.apache.sling.commons.osgi", "2.4.2");
         versions.put("org.apache.sling:org.apache.sling.commons.permissions", "1.0.0-SNAPSHOT");
-        versions.put("org.apache.sling:org.apache.sling.commons.permissions.sling", "1.0.0-SNAPSHOT");
         versions.put("org.apache.sling:org.apache.sling.commons.scheduler", "2.7.12");
         versions.put("org.apache.sling:org.apache.sling.commons.threads", "3.2.22");
         versions.put("org.apache.sling:org.apache.sling.discovery.api", "1.0.4");
diff --git a/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsSlingIT.java b/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsSlingIT.java
deleted file mode 100644
index e00712e..0000000
--- a/src/test/java/org/apache/sling/testing/paxexam/it/tests/SlingOptionsSlingCommonsPermissionsSlingIT.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF 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.
- */
-package org.apache.sling.testing.paxexam.it.tests;
-
-import org.apache.sling.testing.paxexam.it.SlingOptionsTestSupport;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.ops4j.pax.exam.Configuration;
-import org.ops4j.pax.exam.Option;
-import org.ops4j.pax.exam.junit.PaxExam;
-import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
-import org.ops4j.pax.exam.spi.reactors.PerClass;
-
-import static org.apache.sling.testing.paxexam.SlingOptions.slingCommonsPermissionsSling;
-import static org.ops4j.pax.exam.CoreOptions.options;
-
-@RunWith(PaxExam.class)
-@ExamReactorStrategy(PerClass.class)
-public class SlingOptionsSlingCommonsPermissionsSlingIT extends SlingOptionsTestSupport {
-
-    @Configuration
-    public Option[] configuration() {
-        return options(
-            baseConfiguration(),
-            slingCommonsPermissionsSling()
-        );
-    }
-
-    @Test
-    @SuppressWarnings("java:S2699")
-    public void test() {
-    }
-
-}