[jboss-jira] [JBoss JIRA] (WFLY-13472) Failing unit tests in microprofile-jwt quickstart
Darran Lofthouse (Jira)
issues at jboss.org
Thu May 14 13:40:57 EDT 2020
[ https://issues.redhat.com/browse/WFLY-13472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darran Lofthouse moved JBEAP-19496 to WFLY-13472:
-------------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-13472 (was: JBEAP-19496)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Quickstarts
(was: Quickstarts)
Affects Version/s: (was: EAP-XP-1.0.0.GA-CR1)
> Failing unit tests in microprofile-jwt quickstart
> -------------------------------------------------
>
> Key: WFLY-13472
> URL: https://issues.redhat.com/browse/WFLY-13472
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Blocker
>
> When running tests from microprofile-jwt quickstart they all fail:
> {noformat}
> [ERROR] JWTClientIT.testAuthenticated:112 Successful call expected:<200> but was:<404>
> [ERROR] JWTClientIT.testAuthorizationRequired:124 Authorization required expected:<403> but was:<404>
> [ERROR] JWTClientIT.testAuthorized:138 Successful call expected:<200> but was:<404>
> [ERROR] JWTClientIT.testClaimAccess:168 Successful call expected:<200> but was:<404>
> [ERROR] JWTClientIT.testHelloWorld:96 Successful call expected:<200> but was:<404>
> [ERROR] JWTClientIT.testMissingRole:154 Authorization Required expected:<403> but was:<404>
> {noformat}
> This is caused by unnecessary slash in path:
> {code:java}
> index 933f636..2134ba8 100644
> --- a/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java
> +++ b/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java
> @@ -52,7 +52,7 @@ import org.junit.runner.RunWith;
> @RunAsClient
> public class JWTClientIT {
>
> - private static final String ROOT_PATH = "/rest/Sample/";
> + private static final String ROOT_PATH = "rest/Sample/";
> private static final String HELLO_WORLD = "helloworld";
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list