geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-1683) CI Failure: com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit
Date Fri, 01 Dec 2017 16:58:00 GMT

    [ https://issues.apache.org/jira/browse/GEODE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274621#comment-16274621
] 

ASF GitHub Bot commented on GEODE-1683:
---------------------------------------

jinmeiliao closed pull request #1112: GEODE-1683: temp trial to fix clientAuthorizationDUnitTest
URL: https://github.com/apache/geode/pull/1112
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java
b/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java
index 3275c87627..a16600ed51 100644
--- a/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java
@@ -14,11 +14,25 @@
  */
 package org.apache.geode.security;
 
-import static org.apache.geode.internal.AvailablePort.*;
-import static org.apache.geode.security.SecurityTestUtils.*;
-import static org.apache.geode.test.dunit.Assert.*;
-import static org.apache.geode.test.dunit.IgnoredException.*;
-import static org.apache.geode.test.dunit.LogWriterUtils.*;
+import static org.apache.geode.internal.AvailablePort.SOCKET;
+import static org.apache.geode.internal.AvailablePort.getRandomAvailablePort;
+import static org.apache.geode.security.SecurityTestUtils.AUTHFAIL_EXCEPTION;
+import static org.apache.geode.security.SecurityTestUtils.NOTAUTHZ_EXCEPTION;
+import static org.apache.geode.security.SecurityTestUtils.NO_EXCEPTION;
+import static org.apache.geode.security.SecurityTestUtils.OTHER_EXCEPTION;
+import static org.apache.geode.security.SecurityTestUtils.closeCache;
+import static org.apache.geode.security.SecurityTestUtils.concatProperties;
+import static org.apache.geode.security.SecurityTestUtils.createCacheClient;
+import static org.apache.geode.security.SecurityTestUtils.createCacheClientWithDynamicRegion;
+import static org.apache.geode.security.SecurityTestUtils.doGets;
+import static org.apache.geode.security.SecurityTestUtils.doNGets;
+import static org.apache.geode.security.SecurityTestUtils.doNPuts;
+import static org.apache.geode.security.SecurityTestUtils.doPutAllP;
+import static org.apache.geode.security.SecurityTestUtils.doPuts;
+import static org.apache.geode.security.SecurityTestUtils.getLocatorPort;
+import static org.apache.geode.test.dunit.Assert.fail;
+import static org.apache.geode.test.dunit.IgnoredException.addIgnoredException;
+import static org.apache.geode.test.dunit.LogWriterUtils.getLogWriter;
 
 import java.util.ArrayList;
 import java.util.Collection;
@@ -32,17 +46,13 @@
 import org.junit.runners.Parameterized;
 
 import org.apache.geode.cache.operations.OperationContext.OperationCode;
-import org.apache.geode.distributed.ConfigurationProperties;
 import org.apache.geode.internal.AvailablePortHelper;
-import org.apache.geode.internal.Version;
 import org.apache.geode.internal.cache.tier.sockets.ServerConnection;
 import org.apache.geode.security.generator.AuthzCredentialGenerator;
 import org.apache.geode.security.generator.CredentialGenerator;
 import org.apache.geode.security.generator.DummyCredentialGenerator;
 import org.apache.geode.security.generator.XmlAuthzCredentialGenerator;
 import org.apache.geode.security.templates.UserPasswordAuthInit;
-import org.apache.geode.security.templates.UsernamePrincipal;
-import org.apache.geode.test.dunit.Host;
 import org.apache.geode.test.dunit.VM;
 import org.apache.geode.test.dunit.standalone.VersionManager;
 import org.apache.geode.test.junit.categories.DistributedTest;
@@ -63,7 +73,9 @@
 public class ClientAuthorizationDUnitTest extends ClientAuthorizationTestCase {
   @Parameterized.Parameters
   public static Collection<String> data() {
-    List<String> result = VersionManager.getInstance().getVersions();
+    List<String> result = VersionManager.getInstance().getVersionsWithoutCurrent();
+    result.add("000");
+    result.remove("130");
     if (result.size() < 1) {
       throw new RuntimeException("No older versions of Geode were found to test against");
     } else {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> CI Failure: com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit
> -------------------------------------------------------------------------------------------
>
>                 Key: GEODE-1683
>                 URL: https://issues.apache.org/jira/browse/GEODE-1683
>             Project: Geode
>          Issue Type: Bug
>          Components: security
>            Reporter: Anilkumar Gingade
>              Labels: CI, Flaky
>
> Build #3315 (Jul 18, 2016 11:09:11 AM) 
> Revision: e72831ecb25259ed6ec3879f555c1dc8b872264f 
> Error Message
> com.gemstone.gemfire.test.dunit.RMIException: While invoking com.gemstone.gemfire.security.ClientAuthenticationTestCase$$Lambda$109/800559148.run
in VM 2 running on Host venezuela.gemstone.com with 4 VMs
> Stacktrace
> com.gemstone.gemfire.test.dunit.RMIException: While invoking com.gemstone.gemfire.security.ClientAuthenticationTestCase$$Lambda$109/800559148.run
in VM 2 running on Host venezuela.gemstone.com with 4 VMs
> 	at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:389)
> 	at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:355)
> 	at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:293)
> 	at com.gemstone.gemfire.security.ClientAuthenticationTestCase.doTestInvalidAuthInit(ClientAuthenticationTestCase.java:224)
> 	at com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit(ClientAuthenticationDUnitTest.java:56)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:112)
> 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56)
> 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
> 	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
> 	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
> 	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
> 	at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
> 	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
> 	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
> 	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
> 	at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
> 	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
> 	at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
> 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
> 	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.AssertionError: Got unexpected exception when starting client
> 	at com.gemstone.gemfire.test.dunit.Assert.fail(Assert.java:64)
> 	at com.gemstone.gemfire.security.SecurityTestUtils.createCacheClient(SecurityTestUtils.java:472)
> 	at com.gemstone.gemfire.security.ClientAuthenticationTestCase.lambda$doTestInvalidAuthInit$279626d$1(ClientAuthenticationTestCase.java:224)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at hydra.MethExecutor.executeObject(MethExecutor.java:268)
> 	at com.gemstone.gemfire.test.dunit.standalone.RemoteDUnitVM.executeMethodOnObject(RemoteDUnitVM.java:82)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:200)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:197)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$95(TCPTransport.java:683)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
> 	... 3 more
> Caused by: com.gemstone.gemfire.security.GemFireSecurityException: java.lang.ClassNotFoundException:
com.gemstone
> 	at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfTypeFromFactoryMethod(GeodeSecurityUtil.java:421)
> 	at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfType(GeodeSecurityUtil.java:439)
> 	at com.gemstone.gemfire.internal.cache.tier.sockets.HandShake.getCredentials(HandShake.java:1602)
> 	at com.gemstone.gemfire.cache.client.internal.AuthenticateUserOp$AuthenticateUserOpImpl.<init>(AuthenticateUserOp.java:119)
> 	at com.gemstone.gemfire.cache.client.internal.AuthenticateUserOp.executeOn(AuthenticateUserOp.java:77)
> 	at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.authenticateIfRequired(ConnectionFactoryImpl.java:190)
> 	at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:146)
> 	at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.initializeConnections(QueueManagerImpl.java:462)
> 	at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.start(QueueManagerImpl.java:312)
> 	at com.gemstone.gemfire.cache.client.internal.PoolImpl.start(PoolImpl.java:320)
> 	at com.gemstone.gemfire.cache.client.internal.PoolImpl.finishCreate(PoolImpl.java:147)
> 	at com.gemstone.gemfire.cache.client.internal.PoolImpl.create(PoolImpl.java:133)
> 	at com.gemstone.gemfire.internal.cache.PoolFactoryImpl.create(PoolFactoryImpl.java:319)
> 	at com.gemstone.gemfire.cache30.ClientServerTestCase.configureConnectionPoolWithNameAndFactory(ClientServerTestCase.java:250)
> 	at com.gemstone.gemfire.cache30.ClientServerTestCase.configureConnectionPoolWithNameAndFactory(ClientServerTestCase.java:200)
> 	at com.gemstone.gemfire.security.SecurityTestUtils.createCacheClient(SecurityTestUtils.java:404)
> 	... 23 more
> Caused by: java.lang.ClassNotFoundException: com.gemstone
> 	at com.gemstone.gemfire.internal.ClassPathLoader.forName(ClassPathLoader.java:426)
> 	at com.gemstone.gemfire.internal.ClassLoadUtil.methodFromName(ClassLoadUtil.java:91)
> 	at com.gemstone.gemfire.internal.ClassLoadUtil.methodFromName(ClassLoadUtil.java:101)
> 	at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfTypeFromFactoryMethod(GeodeSecurityUtil.java:412)
> 	... 38 more
> Standard Output
> Previously run tests: [PRDistTXWithVersionsDUnitTest, CacheMapDistTXDUnitTest, DistTXRestrictionsDUnitTest,
DistributedTransactionDUnitTest, DistTXDebugDUnitTest, IntegratedSecurityPostProcessorDUnitTest,
IntegratedClientGetEntryAuthDistributedTest, IntegratedClientGetPutAuthDistributedTest, IntegratedClientRegisterInterestAuthDistributedTest,
ClientAuthenticationPart2DUnitTest, IntegratedSecurityNoShowValue1PostProcessorDUnitTest,
ClientAuthenticationDUnitTest]
> [vm_0][info 2016/07/18 16:26:22.369 PDT <RMI TCP Connection(33)-10.118.32.90> tid=0x560]
Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM)
> [vm_0][info 2016/07/18 16:26:22.369 PDT <RMI TCP Connection(33)-10.118.32.90> tid=0x560]
Got result: null
> [vm_0] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM) (took 0 ms)
> [vm_1][info 2016/07/18 16:26:22.370 PDT <RMI TCP Connection(1)-10.118.32.90> tid=0x12]
Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM)
> [vm_1][info 2016/07/18 16:26:22.370 PDT <RMI TCP Connection(1)-10.118.32.90> tid=0x12]
Got result: null
> [vm_1] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM) (took 0 ms)
> [vm_2][info 2016/07/18 16:26:22.370 PDT <RMI TCP Connection(18)-10.118.32.90> tid=0x4f0]
Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM)
> [vm_2][info 2016/07/18 16:26:22.370 PDT <RMI TCP Connection(18)-10.118.32.90> tid=0x4f0]
Got result: null
> [vm_2] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object:
runnable(setupVM) (took 0 ms)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message