1org.dataone.integration.it.apiTests.MNAuthorizationV2IT109.124https://mn-dev-unm-2.test.dataone.org/metacat/d1/mn Failed 1 or more tests: /isAuthorized/{ pid }?action={ permission } vs. the test item: TierTesting:mn-dev-unm-2:testPerson_WRITE.14 (item has accessRule where subject 'testPerson' is allowed up to and including 'WRITE') assert client subject: testRightsHolder is allowed to change PASSED ('true') assert client subject: testRightsHolder is allowed to write PASSED ('true') assert client subject: testRightsHolder is allowed to read PASSED ('true') assert client subject: testPerson is allowed to change PASSED ('NotAuthorized') assert client subject: testPerson is allowed to write PASSED ('true') assert client subject: testPerson is allowed to read PASSED ('true') assert client subject: testPerson_NoSubjectInfo is allowed to change PASSED ('NotAuthorized') assert client subject: testPerson_NoSubjectInfo is allowed to write PASSED ('true') assert client subject: testPerson_NoSubjectInfo is allowed to read PASSED ('true') assert client subject: testEQPerson1 is allowed to change PASSED ('NotAuthorized') assert client subject: testEQPerson1 is allowed to write PASSED ('true') assert client subject: testEQPerson1 is allowed to read PASSED ('true') assert client subject: testEQPerson3 is allowed to change FAILED!! Expected: 'NotAuthorized' got: 'ServiceFailure' assert client subject: testEQPerson3 is allowed to write PASSED ('true') assert client subject: testEQPerson3 is allowed to read PASSED ('true') assert client subject: testGroupie is allowed to change PASSED ('NotAuthorized') assert client subject: testGroupie is allowed to write PASSED ('NotAuthorized') assert client subject: testGroupie is allowed to read PASSED ('NotAuthorized') assert client subject: testSubmitter is allowed to change PASSED ('NotAuthorized') assert client subject: testSubmitter is allowed to write PASSED ('NotAuthorized') assert client subject: testSubmitter is allowed to read PASSED ('NotAuthorized') assert client subject: public is allowed to change PASSED ('NotAuthorized') assert client subject: public is allowed to write PASSED ('NotAuthorized') assert client subject: public is allowed to read PASSED ('NotAuthorized') assert client subject: testPerson_SelfSigned is allowed to change PASSED ('NotAuthorized') assert client subject: testPerson_SelfSigned is allowed to write PASSED ('NotAuthorized') assert client subject: testPerson_SelfSigned is allowed to read PASSED ('NotAuthorized') java.lang.AssertionError: https://mn-dev-unm-2.test.dataone.org/metacat/d1/mn Failed 1 or more tests:
/isAuthorized/{ pid }?action={ permission } vs. the test item:
TierTesting:mn-dev-unm-2:testPerson_WRITE.14 (item has accessRule where subject 'testPerson' is allowed up to and including 'WRITE')
assert client subject: testRightsHolder is allowed to change PASSED ('true')
assert client subject: testRightsHolder is allowed to write PASSED ('true')
assert client subject: testRightsHolder is allowed to read PASSED ('true')
assert client subject: testPerson is allowed to change PASSED ('NotAuthorized')
assert client subject: testPerson is allowed to write PASSED ('true')
assert client subject: testPerson is allowed to read PASSED ('true')
assert client subject: testPerson_NoSubjectInfo is allowed to change PASSED ('NotAuthorized')
assert client subject: testPerson_NoSubjectInfo is allowed to write PASSED ('true')
assert client subject: testPerson_NoSubjectInfo is allowed to read PASSED ('true')
assert client subject: testEQPerson1 is allowed to change PASSED ('NotAuthorized')
assert client subject: testEQPerson1 is allowed to write PASSED ('true')
assert client subject: testEQPerson1 is allowed to read PASSED ('true')
assert client subject: testEQPerson3 is allowed to change FAILED!! Expected: 'NotAuthorized' got: 'ServiceFailure'
assert client subject: testEQPerson3 is allowed to write PASSED ('true')
assert client subject: testEQPerson3 is allowed to read PASSED ('true')
assert client subject: testGroupie is allowed to change PASSED ('NotAuthorized')
assert client subject: testGroupie is allowed to write PASSED ('NotAuthorized')
assert client subject: testGroupie is allowed to read PASSED ('NotAuthorized')
assert client subject: testSubmitter is allowed to change PASSED ('NotAuthorized')
assert client subject: testSubmitter is allowed to write PASSED ('NotAuthorized')
assert client subject: testSubmitter is allowed to read PASSED ('NotAuthorized')
assert client subject: public is allowed to change PASSED ('NotAuthorized')
assert client subject: public is allowed to write PASSED ('NotAuthorized')
assert client subject: public is allowed to read PASSED ('NotAuthorized')
assert client subject: testPerson_SelfSigned is allowed to change PASSED ('NotAuthorized')
assert client subject: testPerson_SelfSigned is allowed to write PASSED ('NotAuthorized')
assert client subject: testPerson_SelfSigned is allowed to read PASSED ('NotAuthorized')
at org.junit.Assert.fail(Assert.java:91)
at org.dataone.integration.ContextAwareTestCaseDataone$4.call(ContextAwareTestCaseDataone.java:1739)
at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:70)
at org.dataone.integration.ContextAwareTestCaseDataone.handleFail(ContextAwareTestCaseDataone.java:1732)
at org.dataone.integration.it.testImplementations.AbstractAuthorizationTestImplementations.testIsAuthorized_AccessPolicy_is_testPerson_can_Write(AbstractAuthorizationTestImplementations.java:1191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:34)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at com.sun.proxy.$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:91)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
104testIsAuthorized_AccessPolicy_is_testPerson_can_WritefalseREGRESSION