OIDCAuthController { @GetMapping(value = "/v2/identity/entity-alias/id/{id}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.readEntityAliasById.value}", notes = "${OIDCAuthController.readEntityAliasById.notes}") public ResponseEntity<String> readEntityAliasById(HttpServletRequest request, @RequestHeader(value = "vault-token") String token, @PathVariable("id") String id) { return oidcAuthService.readEntityAliasById(token,id); }  @GetMapping(value = "/v2/sys/list", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.getAuthenticationMounts.value}", notes = "${OIDCAuthController.getAuthenticationMounts.notes}") ResponseEntity<String> getAuthenticationMounts(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token); @PostMapping(value = "/v2/identity/lookup/entity", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.entityLookUp.value}", notes = "${OIDCAuthController.entityLookUp.notes}") ResponseEntity<OIDCEntityResponse> entityLookUp(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token,
			@Valid @RequestBody OIDCLookupEntityRequest oidcLookupEntityRequest); @PostMapping(value = "/v2/identity/lookup/group", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.groupEntityLookUp.value}", notes = "${OIDCAuthController.groupEntityLookUp.notes}") ResponseEntity<String> groupEntityLookUp(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token,
			@Valid @RequestBody OIDCLookupEntityRequest oidcLookupEntityRequest); @GetMapping(value = "/v2/identity/entity-alias/id/{id}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.readEntityAliasById.value}", notes = "${OIDCAuthController.readEntityAliasById.notes}") ResponseEntity<String> readEntityAliasById(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("id") String id); @GetMapping(value = "/v2/identity/entity/name/{name}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.readEntityByName.value}", notes = "${OIDCAuthController.readEntityByName.notes}") ResponseEntity<String> readEntityByName(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("name") String entityName); @PostMapping(value = "/v2/identity/entity/name/{name}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.updateEntityByName.value}", notes = "${OIDCAuthController.updateEntityByName.notes}") ResponseEntity<String> updateEntityByName(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("name") String entityName,
			@Valid @RequestBody OIDCEntityRequest oidcEntityRequest); @GetMapping(value = "/v2/identity/group-alias/id/{id}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.readGroupAliasById.value}", notes = "${OIDCAuthController.readGroupAliasById.notes}") ResponseEntity<String> readGroupAliasById(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("id") String id); @PostMapping(value = "/v2/identity/group/name/{name}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.updateIdentityGroupByName.value}", notes = "${OIDCAuthController.updateIdentityGroupByName.notes}") ResponseEntity<String> updateIdentityGroupByName(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("name") String entityName,
			@Valid @RequestBody OIDCIdentityGroupRequest oidcIdentityGroupRequest); @DeleteMapping(value = "/v2/identity/group/name/{name}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.deleteGroupByName.value}", notes = "${OIDCAuthController.deleteGroupByName.notes}") ResponseEntity<String> deleteGroupByName(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("name") String name); @DeleteMapping(value = "/v2/identity/group-alias/id/{id}", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.deleteGroupAliasByID.value}", notes = "${OIDCAuthController.deleteGroupAliasByID.notes}") ResponseEntity<String> deleteGroupAliasByID(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token, @PathVariable("id") String id); @PostMapping(value = "/v2/identity/group-alias", produces = "application/json") @ApiOperation(hidden = true, value = "${OIDCAuthController.createGroupAlias.value}", notes = "${OIDCAuthController.createGroupAlias.notes}") ResponseEntity<String> createGroupAlias(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token,
			@Valid @RequestBody GroupAliasRequest groupAliasRequest); @PostMapping(value="/v2/auth/oidc/auth_url",produces="application/json") @ApiOperation(value = "${OIDCAuthController.getAuthUrl.value}", notes = "${OIDCAuthController.getAuthUrl.notes}") ResponseEntity<String> getAuthUrl(@RequestBody OidcRequest oidcRequest); @GetMapping(value="/v2/auth/oidc/callback",produces="application/json") @ApiOperation(value = "${OIDCAuthController.processOIDCCallback.value}", notes = "${OIDCAuthController.processOIDCCallback.notes}") ResponseEntity<String> processOIDCCallback(@RequestParam(name="state", required = false) String state, @RequestParam(name="code", required = false) String code); @GetMapping(value="/v2/azure/group/{name}/objectid",produces="application/json") @ApiOperation(value = "${OIDCAuthController.getGroupObjectIdFromAD.value}", notes = "${OIDCAuthController.getGroupObjectIdFromAD.notes}", hidden=true) ResponseEntity<String> getGroupObjectIdFromAzure(@PathVariable("name") String groupName); @GetMapping(value="/v2/identity/group/{name}",produces="application/json") @ApiOperation(value = "${OIDCAuthController.getIdentityGroupDetails.value}", notes = "${OIDCAuthController.getIdentityGroupDetails.notes}", hidden=true) ResponseEntity<String> getIdentityGroupDetails(HttpServletRequest request,
		@RequestHeader(value = "vault-token") String token, @PathVariable("name") String groupName); @GetMapping(value = "/v2/username", produces = "application/json") @ApiOperation(value = "${OIDCAuthController.getUserName.value}", notes = "${OIDCAuthController.getUserName.notes}", hidden = true) ResponseEntity<String> getUserName(HttpServletRequest request,
			@RequestHeader(value = "vault-token") String token); @GetMapping(value="/v2/azure/groups",produces="application/json") @ApiOperation(value = "${OIDCAuthController.searchGroupsInAzure.value}", notes = "${OIDCAuthController.searchGroupsInAzure.notes}") ResponseEntity<DirectoryObjects> searchGroupInAzureAD(@RequestParam("name") String groupName);  }
@Test public void test_readEntityAliasById_successful() throws Exception { String id ="124"; when(oidcAuthService.readEntityAliasById(token, id)).thenReturn(new ResponseEntity<>(HttpStatus.OK)); assertEquals(HttpStatus.OK, oidcAuthController.readEntityAliasById(httpServletRequest, token,id).getStatusCode()); }