Skip to content

Commit

Permalink
KAA-1108: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sashadidukh committed Jul 22, 2016
1 parent 5fc0d6d commit e2f35b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Expand Up @@ -138,7 +138,7 @@ public ConfigurationSchemaDto getConfigurationSchema(
@ApiResponse(code = 403, message = "The authenticated user does not have the required role (TENANT_DEVELOPER or TENANT_USER) or the Tenant ID " +
"of the application does not match the Tenant ID of the authenticated user"),
@ApiResponse(code = 500, message = "An unexpected error occurred on the server side")})
@RequestMapping(value = "saveConfigurationSchema", method = RequestMethod.POST, consumes = {"multipart/mixed", "multipart/form-data"})
@RequestMapping(value = "saveConfigurationSchema", method = RequestMethod.POST)
@ResponseBody
public ConfigurationSchemaDto saveConfigurationSchema(
@ApiParam(name = "configurationSchema", value = "ConfigurationSchemaDto body", required = true)
Expand Down
Expand Up @@ -144,10 +144,9 @@ public LogSchemaDto getLogSchemaByApplicationTokenAndVersion(
* @throws KaaAdminServiceException
* the kaa admin service exception
*/
@RequestMapping(value = "createLogSchema", method = RequestMethod.POST, consumes = {"multipart/mixed", "multipart/form-data"})
@RequestMapping(value = "createLogSchema", method = RequestMethod.POST)
@ResponseBody
public LogSchemaDto createLogSchema(
@RequestPart("logSchema") LogSchemaDto logSchema)
public LogSchemaDto createLogSchema(@RequestBody LogSchemaDto logSchema)
throws KaaAdminServiceException {
return loggingService.saveLogSchema(logSchema);
}
Expand All @@ -171,7 +170,7 @@ public LogSchemaDto createLogSchema(
@ApiResponse(code = 500, message = "An unexpected error occurred on the server side")})
@RequestMapping(value = "saveLogSchema", method = RequestMethod.POST)
@ResponseBody
public LogSchemaDto editLogSchema(
public LogSchemaDto saveLogSchema(
@ApiParam(name = "logSchema", value = "LogSchemaDto body.", required = true)
@RequestBody LogSchemaDto logSchema) throws KaaAdminServiceException {
return loggingService.saveLogSchema(logSchema);
Expand Down
Expand Up @@ -126,7 +126,7 @@ public NotificationSchemaDto getNotificationSchema(
* @return the notification schema dto
* @throws KaaAdminServiceException the kaa admin service exception
*/
@RequestMapping(value = "createNotificationSchema", method = RequestMethod.POST, consumes = {"multipart/mixed", "multipart/form-data"})
@RequestMapping(value = "createNotificationSchema", method = RequestMethod.POST)
@ResponseBody
public NotificationSchemaDto createNotificationSchema(@RequestBody NotificationSchemaDto notificationSchema) throws KaaAdminServiceException {
return notificationService.saveNotificationSchema(notificationSchema);
Expand All @@ -153,7 +153,7 @@ public NotificationSchemaDto createNotificationSchema(@RequestBody NotificationS
@ApiResponse(code = 500, message = "An unexpected error occurred on the server side")})
@RequestMapping(value = "saveNotificationSchema", method = RequestMethod.POST)
@ResponseBody
public NotificationSchemaDto editNotificationSchema(
public NotificationSchemaDto saveNotificationSchema(
@ApiParam(name = "notificationSchema", value = "NotificationSchemaDto body.", required = true)
@RequestBody NotificationSchemaDto notificationSchema)
throws KaaAdminServiceException {
Expand Down

0 comments on commit e2f35b1

Please sign in to comment.