Project: usergrid
Issue USERGRID-702: Rest tests return 403 when run in maven, but pass in intelliJ
So I'm getting responses like the following: com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:10003/management/token returned a response status of 403 Forbidden com.sun.jersey.api.client.WebResource.handle(WebResource.java:688) com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570) org.apache.usergrid.rest.test.resource2point0.endpoints.NamedResource.post(NamedResource.java:192) org.apache.usergrid.rest.test.resource2point0.AbstractRestIT.getAdminToken(AbstractRestIT.java:167) org.apache.usergrid.rest.management.OrganizationsIT.testCreateOrgUserAndReturnCorrectUsername(OrganizationsIT.java:332) testCreateDuplicateOrgEmail(org.apache.usergrid.rest.management.OrganizationsIT) Time elapsed: 0.988 sec <<< ERROR! com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:10003/management/token returned a response status of 403 Forbidden com.sun.jersey.api.client.WebResource.handle(WebResource.java:688) com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570) org.apache.usergrid.rest.test.resource2point0.endpoints.NamedResource.post(NamedResource.java:192) org.apache.usergrid.rest.management.OrganizationsIT.testCreateDuplicateOrgEmail(OrganizationsIT.java:172) testOrgPOSTForm(org.apache.usergrid.rest.management.OrganizationsIT) Time elapsed: 0.819 sec <<< ERROR! com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:10003/management/token returned a response status of 403 Forbidden com.sun.jersey.api.client.WebResource.handle(WebResource.java:688) com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570) org.apache.usergrid.rest.test.resource2point0.endpoints.NamedResource.post(NamedResource.java:192) org.apache.usergrid.rest.management.OrganizationsIT.testOrgPOSTForm(OrganizationsIT.java:277) createOrgAndOwner(org.apache.usergrid.rest.management.OrganizationsIT) Time elapsed: 0.774 sec <<< ERROR! com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:10003/management/token returned a response status of 403 Forbidden com.sun.jersey.api.client.WebResource.handle(WebResource.java:688) com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570) org.apache.usergrid.rest.test.resource2point0.endpoints.NamedResource.post(NamedResource.java:192) org.apache.usergrid.rest.management.OrganizationsIT.createOrgAndOwner(OrganizationsIT.java:80) testCreateDuplicateOrgName(org.apache.usergrid.rest.management.OrganizationsIT) Time elapsed: 0.975 sec <<< ERROR! com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:10003/management/token returned a response status of 403 Forbidden com.sun.jersey.api.client.WebResource.handle(WebResource.java:688) com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570) org.apache.usergrid.rest.test.resource2point0.endpoints.NamedResource.post(NamedResource.java:192) org.apache.usergrid.rest.management.OrganizationsIT.testCreateDuplicateOrgName(OrganizationsIT.java:118) So Calls to management/token are failing with 403 errors. I suspect it might be due to the new testing framework but further investigation is needed
Story points: 5