Skip to content

JAX-RS Declarative Security tests are failing #246

Description

@bartoszmajsak

Running with the default profile mvn clean package results with

testGetSubResourceWithCorrectCredentials(org.javaee7.jaxrs.security.declarative.MyResourceTest)  Time elapsed: 0.415 sec  <<< FAILURE!
java.lang.AssertionError: Basic authentication required: {realm="file"}
    at org.junit.Assert.fail(Assert.java:88)
    at org.javaee7.jaxrs.security.declarative.MyResourceTest.testGetSubResourceWithCorrectCredentials(MyResourceTest.java:70)

testGetWithCorrectCredentials(org.javaee7.jaxrs.security.declarative.MyResourceTest)  Time elapsed: 0.054 sec  <<< FAILURE!
java.lang.AssertionError: Basic authentication required: {realm="file"}
    at org.junit.Assert.fail(Assert.java:88)
    at org.javaee7.jaxrs.security.declarative.MyResourceTest.testGetWithCorrectCredentials(MyResourceTest.java:55)


Results :

Failed tests: 
  MyResourceTest.testGetSubResourceWithCorrectCredentials:70 Basic authentication required: {realm="file"}
  MyResourceTest.testGetWithCorrectCredentials:55 Basic authentication required: {realm="file"}

If the test required some special setup which cannot be automated as a part of a build it should at least be documented in the module's README.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions