Skip to content

Commit

Permalink
Minor naming changes
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Timeus <[email protected]>
  • Loading branch information
nicolatimeus committed Oct 31, 2023
1 parent caf0a66 commit b4f7d2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class IdentityRestService {
private static final Logger logger = LoggerFactory.getLogger(IdentityRestService.class);
private static final String DEBUG_MESSAGE = "Processing request for method '{}'";

private static final String MQTT_APP_ID = "ID-V1";
private static final String MQTT_APP_ID = "IDN-V1";
private static final String REST_ROLE_NAME = "identity";
private static final String KURA_PERMISSION_REST_ROLE = "kura.permission.rest." + REST_ROLE_NAME;

Expand Down Expand Up @@ -159,7 +159,7 @@ public Response deleteUser(final UserDTO userName) {
}

@GET
@Path("/defined-permissions")
@Path("/definedPermissions")
@Produces(MediaType.APPLICATION_JSON)
public PermissionDTO getDefinedPermissions() {
try {
Expand All @@ -186,7 +186,7 @@ public UserConfigDTO getUserConfig() {
}

@GET
@Path("/password-requirements")
@Path("/passwordRequirements")
@Produces(MediaType.APPLICATION_JSON)
public ValidatorOptionsDTO getValidatorOptions() {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@RunWith(Parameterized.class)
public class IdentityEndpointsTest extends AbstractRequestHandlerTest {

private static final String MQTT_APP_ID = "ID-V1";
private static final String MQTT_APP_ID = "IDN-V1";

private static final String METHOD_SPEC_GET = "GET";
private static final String METHOD_SPEC_POST = "POST";
Expand Down Expand Up @@ -161,7 +161,7 @@ public void shouldReturnUserConfig() throws KuraException {
public void shouldReturnDefinedPermissions() throws KuraException {
givenIdentityService();

whenRequestIsPerformed(new MethodSpec(METHOD_SPEC_GET), "/defined-permissions");
whenRequestIsPerformed(new MethodSpec(METHOD_SPEC_GET), "/definedPermissions");

thenRequestSucceeds();
thenResponseBodyEqualsJson("{\"permissions\": [\"perm1\",\"perm2\"]}");
Expand All @@ -171,7 +171,7 @@ public void shouldReturnDefinedPermissions() throws KuraException {
public void shouldReturnPasswordRequirements() throws KuraException {
givenIdentityService();

whenRequestIsPerformed(new MethodSpec(METHOD_SPEC_GET), "/password-requirements");
whenRequestIsPerformed(new MethodSpec(METHOD_SPEC_GET), "/passwordRequirements");

thenRequestSucceeds();
thenResponseBodyEqualsJson(EXPECTED_GET_PASSWORD_REQUIREMENTS_RESPONSE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public class IdentityRestServiceDependenciesTest {

private static final String MQTT_APP_ID = "ID-V1";
private static final String MQTT_APP_ID = "IDN-V1";
private static final String REST_ROLE_NAME = "identity";
private static final String KURA_PERMISSION_REST_ROLE = "kura.permission.rest." + REST_ROLE_NAME;

Expand Down

0 comments on commit b4f7d2b

Please sign in to comment.