-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove logbook exclude properties defaults (#71)
* Fix logbook exclude properties defaults * Fix expressions * Remove use of default exclude properties
- Loading branch information
Showing
13 changed files
with
71 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
entur.logging.request-response.max-size=16384 | ||
entur.logging.request-response.max-body-size=14336 |
16 changes: 0 additions & 16 deletions
16
...ava/no/entur/logging/cloud/azure/spring/logbook/web/LogbookAzureWebAutoConfiguration.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...st-response-spring-boot-starter-azure-web/src/main/resources/logbook.azure.web.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
examples/gcp-web-example/src/test/java/org/entur/example/web/ActuatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.entur.example.web; | ||
|
||
import no.entur.logging.cloud.logback.logstash.test.CompositeConsoleOutputControl; | ||
import no.entur.logging.cloud.logback.logstash.test.CompositeConsoleOutputControlClosable; | ||
import org.entur.example.web.rest.MyEntity; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; | ||
import org.springframework.boot.test.web.client.TestRestTemplate; | ||
import org.springframework.boot.test.web.server.LocalServerPort; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.http.ResponseEntity; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) | ||
public class ActuatorTest { | ||
|
||
@LocalServerPort | ||
private int randomServerPort; | ||
|
||
@Autowired | ||
private TestRestTemplate restTemplate; | ||
|
||
@Test | ||
public void useHumanReadablePlainEncoderTest() { | ||
ResponseEntity<String> response = restTemplate.getForEntity("/actuator/health/readiness", String.class); | ||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
} | ||
|
||
@Test | ||
public void useHumanReadableJsonEncoderTest() throws InterruptedException { | ||
try (CompositeConsoleOutputControlClosable c = CompositeConsoleOutputControl.useHumanReadableJsonEncoder()) { | ||
ResponseEntity<String> response = restTemplate.getForEntity("/actuator/health/readiness", String.class); | ||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
} | ||
} | ||
|
||
@Test | ||
public void useMachineReadableJsonEncoder() throws InterruptedException { | ||
try (CompositeConsoleOutputControlClosable c = CompositeConsoleOutputControl.useMachineReadableJsonEncoder()) { | ||
ResponseEntity<String> response = restTemplate.getForEntity("/actuator/health/readiness", String.class); | ||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
} | ||
} | ||
|
||
} |
12 changes: 0 additions & 12 deletions
12
...c/main/java/no/entur/logging/cloud/spring/logbook/web/LogbookGcpWebAutoConfiguration.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...equest-response-spring-boot-starter-gcp-web/src/main/resources/logbook.gcp.web.properties
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...rter-gcp-web/src/test/java/no/entur/logging/cloud/spring/logbook/web/DemoApplication.java
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...p-web/src/test/java/no/entur/logging/cloud/spring/logbook/web/LoadContextLoggingTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters