Class RolesAllowedTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.jwt.tck.container.jaxrs.RolesAllowedTest
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
public class RolesAllowedTest
extends org.jboss.arquillian.testng.Arquillian
Tests of the MP-JWT auth method authorization behavior as expected by the MP-JWT RBAC 1.0 spec
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian
org.jboss.arquillian.testng.Arquillian.UpdateResultListener -
Field Summary
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallEcho()voidvoidvoidvoidvoidvoidvoidvoidvoidstatic org.jboss.shrinkwrap.api.spec.WebArchiveCreate a CDI aware base web application archivevoidvoidstatic voidvoidvoidvoidvoidThis test requires that the server provide a mapping from the group1 grant in the token to a Group1MappedRole application declared role.Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
RolesAllowedTest
public RolesAllowedTest()
-
-
Method Details
-
createDeployment
@Deployment(testable=true) public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() throws IOExceptionCreate a CDI aware base web application archive- Returns:
- the base base web application archive
- Throws:
IOException- - on resource failure
-
generateToken
- Throws:
Exception
-
callEchoNoAuth
- Throws:
Exception
-
callEchoBASIC
- Throws:
Exception
-
callEcho
- Throws:
Exception
-
callEchoSignToken
- Throws:
Exception
-
callEchoSignEncryptToken
- Throws:
Exception
-
callEchoNoGroups
- Throws:
Exception
-
callEcho2
- Throws:
Exception
-
checkIsUserInRole
- Throws:
Exception
-
checkIsUserInRoleToken2
- Throws:
Exception
-
echoNeedsToken2Role
- Throws:
Exception
-
echoWithToken2
- Throws:
Exception
-
getPrincipalClass
- Throws:
Exception
-
testNeedsGroup1Mapping
@RunAsClient public void testNeedsGroup1Mapping()This test requires that the server provide a mapping from the group1 grant in the token to a Group1MappedRole application declared role. -
getInjectedPrincipal
- Throws:
Exception
-
callHeartbeat
- Throws:
Exception
-
noTokenHeaderSetToCookie
- Throws:
Exception
-