@Test @WithGenericUser public void clearDebugModeGenericAuthenticated () throws Exception { clearDebugMode(status().isForbidden(), never()); }
@Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping public String clearDebugMode () { loggingManager.clearDebugMode(); return "ok"; }
LoggingController { @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping public String clearDebugMode () { loggingManager.clearDebugMode(); return "ok"; } }
LoggingController { @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping public String clearDebugMode () { loggingManager.clearDebugMode(); return "ok"; }  }
LoggingController { @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping public String clearDebugMode () { loggingManager.clearDebugMode(); return "ok"; }  @Operation(summary = "Enable Debug Mode", description = "Increases the log level for Chaos Engine internal classes to DEBUG", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @PostMapping({ "", "/{timeout}" }) String setDebugMode(@PathVariable(required = false)
                                @Parameter(description = "Duration before automatically reverting logs. Formatted as \"PT[nH][nM][nS]\".",
                                           example = "PT1H15M45S") Duration timeout); @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping String clearDebugMode(); }
LoggingController { @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping public String clearDebugMode () { loggingManager.clearDebugMode(); return "ok"; }  @Operation(summary = "Enable Debug Mode", description = "Increases the log level for Chaos Engine internal classes to DEBUG", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @PostMapping({ "", "/{timeout}" }) String setDebugMode(@PathVariable(required = false)
                                @Parameter(description = "Duration before automatically reverting logs. Formatted as \"PT[nH][nM][nS]\".",
                                           example = "PT1H15M45S") Duration timeout); @Operation(summary = "Disable Debug Mode", description = "Removes DEBUG log level from Chaos Engine internal classes.", responses = { @ApiResponse(content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @DeleteMapping String clearDebugMode(); static final String LOGGING; }