Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAX-RS Declarative Security tests are failing #246

Open
bartoszmajsak opened this issue Aug 12, 2014 · 0 comments
Open

JAX-RS Declarative Security tests are failing #246

bartoszmajsak opened this issue Aug 12, 2014 · 0 comments
Assignees

Comments

@bartoszmajsak
Copy link
Contributor

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.

@bartoszmajsak bartoszmajsak changed the title JAX-RS Declarative tests are failing JAX-RS Declarative Security tests are failing Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants