1. AdroitLogic
  2. ultraesb
  3. Issues
Issue #35 resolved

Authentication Test failure when building with maven

Anonymous created an issue

AuthenticationTest failed when building with maven:

Running org.adroitlogic.ultraesb.rest.AuthenticationTest Tests run: 9, Failures: 1, Errors: 4, Skipped: 0, Time elapsed: 17.057 sec <<< FAILURE!

The log shows:


Test set: org.adroitlogic.ultraesb.rest.AuthenticationTest

Tests run: 9, Failures: 1, Errors: 4, Skipped: 0, Time elapsed: 17.057 sec <<< FAILURE! testPreemptiveAmazonS3Auth(org.adroitlogic.ultraesb.rest.AuthenticationTest) Time elapsed: 1.388 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<200> but was:<403> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:283) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:195) at junit.framework.Assert.assertEquals(Assert.java:201) at org.adroitlogic.ultraesb.rest.AuthenticationTest.testPreemptiveAmazonS3Auth(AuthenticationTest.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:23) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.extensions.TestSetup.run(TestSetup.java:27) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:74) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

Then the rest of the tests error out with:

testBasicAuthProxy(org.adroitlogic.ultraesb.rest.AuthenticationTest) Time elapsed: 1.002 sec <<< ERROR! java.lang.IllegalStateException: Invalid use of SingleClientConnManager: connection still allocated. Make sure to release the connection before allocating another one.

Comments (2)

  1. Ruwan Linton

    This test requires AWS credentials to be avaialbe on as an environmental variable as this performs a test on AWS S3 authentication. Please exclude this test from the pom, or you need to put the AWS_S3_USERNAME and AWS_S3_PASSWORD environment variables with valid AWS credentials as values.

  2. Log in to comment