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 2021/12/16 21:45:39 UTC

[sling-org-apache-sling-karaf-integration-tests] 02/02: SLING-8473 Provide Sling CMS features

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-karaf-integration-tests.git

commit bc57967e56bbea9f5a601721eed8a4ad74633db3
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Thu Dec 16 22:43:48 2021 +0100

    SLING-8473 Provide Sling CMS features
    
    drop Sling CMS until compatible with latest Sling releases
---
 .../sling/karaf/tests/bootstrap/SlingCmsIT.java    | 75 ----------------------
 .../karaf/tests/bootstrap/SlingCmsLoginIT.java     | 54 ----------------
 .../karaf/tests/bootstrap/SlingCmsReferenceIT.java | 54 ----------------
 3 files changed, 183 deletions(-)

diff --git a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsIT.java b/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsIT.java
deleted file mode 100644
index 5ca5943..0000000
--- a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsIT.java
+++ /dev/null
@@ -1,75 +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.karaf.tests.bootstrap;
-
-import org.apache.sling.karaf.testing.KarafTestSupport;
-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.OptionUtils;
-import org.ops4j.pax.exam.junit.PaxExam;
-import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
-import org.ops4j.pax.exam.spi.reactors.PerClass;
-import org.osgi.framework.Bundle;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-@RunWith(PaxExam.class)
-@ExamReactorStrategy(PerClass.class)
-public class SlingCmsIT extends KarafTestSupport {
-
-    @Configuration
-    public Option[] configuration() {
-        return OptionUtils.combine(baseConfiguration(),
-            addSlingFeatures("sling-cms"),
-            addFelixHttpFeature()
-        );
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsApi() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.api");
-        assertNotNull(bundle);
-        assertEquals(Bundle.ACTIVE, bundle.getState());
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsCore() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.core");
-        assertNotNull(bundle);
-        assertEquals(Bundle.ACTIVE, bundle.getState());
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsTransformer() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.transformer");
-        assertNotNull(bundle);
-        assertEquals(Bundle.ACTIVE, bundle.getState());
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsUi() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.ui");
-        assertNotNull(bundle);
-        assertEquals(Bundle.ACTIVE, bundle.getState());
-    }
-
-}
diff --git a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsLoginIT.java b/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsLoginIT.java
deleted file mode 100644
index cb01ca5..0000000
--- a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsLoginIT.java
+++ /dev/null
@@ -1,54 +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.karaf.tests.bootstrap;
-
-import org.apache.sling.karaf.testing.KarafTestSupport;
-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.OptionUtils;
-import org.ops4j.pax.exam.junit.PaxExam;
-import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
-import org.ops4j.pax.exam.spi.reactors.PerClass;
-import org.osgi.framework.Bundle;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-@RunWith(PaxExam.class)
-@ExamReactorStrategy(PerClass.class)
-public class SlingCmsLoginIT extends KarafTestSupport {
-
-    @Configuration
-    public Option[] configuration() {
-        return OptionUtils.combine(baseConfiguration(),
-            addSlingFeatures("sling-cms-login"),
-            addFelixHttpFeature()
-        );
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsLogin() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.login");
-        assertNotNull(bundle);
-        assertEquals(Bundle.RESOLVED, bundle.getState());
-    }
-
-}
diff --git a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsReferenceIT.java b/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsReferenceIT.java
deleted file mode 100644
index 9a35428..0000000
--- a/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingCmsReferenceIT.java
+++ /dev/null
@@ -1,54 +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.karaf.tests.bootstrap;
-
-import org.apache.sling.karaf.testing.KarafTestSupport;
-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.OptionUtils;
-import org.ops4j.pax.exam.junit.PaxExam;
-import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
-import org.ops4j.pax.exam.spi.reactors.PerClass;
-import org.osgi.framework.Bundle;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-@RunWith(PaxExam.class)
-@ExamReactorStrategy(PerClass.class)
-public class SlingCmsReferenceIT extends KarafTestSupport {
-
-    @Configuration
-    public Option[] configuration() {
-        return OptionUtils.combine(baseConfiguration(),
-            addSlingFeatures("sling-cms-reference"),
-            addFelixHttpFeature()
-        );
-    }
-
-    @Test
-    public void testOrgApacheSlingCmsReference() {
-        final Bundle bundle = findBundle("org.apache.sling.cms.reference");
-        assertNotNull(bundle);
-        assertEquals(Bundle.ACTIVE, bundle.getState());
-    }
-
-}