You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2017/09/22 18:13:56 UTC
[geode] 05/07: GEODE-3480: add RestAPITest category and
RequiresGeodeHome rule
This is an automated email from the ASF dual-hosted git repository.
klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
commit 42853b169381c708f1dae1b4cd2a4bad5fe47f77
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Mon Aug 21 13:43:44 2017 -0700
GEODE-3480: add RestAPITest category and RequiresGeodeHome rule
---
.../rest/internal/web/RestSecurityWithSSLTest.java | 23 ++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestSecurityWithSSLTest.java b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestSecurityWithSSLTest.java
index ac50716..1cb52a8 100644
--- a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestSecurityWithSSLTest.java
+++ b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestSecurityWithSSLTest.java
@@ -25,24 +25,31 @@ import static org.apache.geode.distributed.ConfigurationProperties.SSL_TRUSTSTOR
import static org.apache.geode.distributed.ConfigurationProperties.SSL_TRUSTSTORE_PASSWORD;
import static org.junit.Assert.assertEquals;
-import org.apache.geode.internal.security.SecurableCommunicationChannel;
-import org.apache.geode.security.SimpleTestSecurityManager;
-import org.apache.geode.test.dunit.rules.ServerStarterRule;
-import org.apache.geode.test.junit.categories.IntegrationTest;
-import org.apache.geode.test.junit.categories.SecurityTest;
+import java.net.URL;
+
import org.apache.http.HttpResponse;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
-import java.net.URL;
+import org.apache.geode.internal.security.SecurableCommunicationChannel;
+import org.apache.geode.security.SimpleTestSecurityManager;
+import org.apache.geode.test.dunit.rules.RequiresGeodeHome;
+import org.apache.geode.test.dunit.rules.ServerStarterRule;
+import org.apache.geode.test.junit.categories.IntegrationTest;
+import org.apache.geode.test.junit.categories.RestAPITest;
+import org.apache.geode.test.junit.categories.SecurityTest;
-@Category({IntegrationTest.class, SecurityTest.class})
+@Category({IntegrationTest.class, SecurityTest.class, RestAPITest.class})
public class RestSecurityWithSSLTest {
- private static URL KEYSTORE_URL =
+
+ private static final URL KEYSTORE_URL =
RestSecurityWithSSLTest.class.getClassLoader().getResource("ssl/trusted.keystore");
@Rule
+ public RequiresGeodeHome requiresGeodeHome = new RequiresGeodeHome();
+
+ @Rule
public ServerStarterRule serverStarter = new ServerStarterRule().withRestService()
.withProperty(SECURITY_MANAGER, SimpleTestSecurityManager.class.getName())
.withProperty(SSL_ENABLED_COMPONENTS, SecurableCommunicationChannel.WEB.getConstant())
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.