chore: align observability and redis defaults
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>ingest-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>observability</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>sink-kafka</artifactId>
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>ingest-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>observability</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lingniu.ingest</groupId>
|
||||
<artifactId>sink-kafka</artifactId>
|
||||
|
||||
@@ -324,13 +324,11 @@ class MavenModuleProfileTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void consumerAppsDoNotDependOnPipelineObservabilityInterceptor() throws Exception {
|
||||
for (String appPom : List.of(
|
||||
"modules/apps/vehicle-history-app/pom.xml",
|
||||
"modules/apps/vehicle-analytics-app/pom.xml")) {
|
||||
void activeAppsDependOnSharedObservabilityForHealthAndMetrics() throws Exception {
|
||||
for (String appPom : ACTIVE_APP_POMS) {
|
||||
assertThat(hasDependency(modulePom(appPom), "com.lingniu.ingest", "observability"))
|
||||
.as(appPom + " is a Kafka consumer/query runtime, not an ingest pipeline runtime")
|
||||
.isFalse();
|
||||
.as(appPom + " exposes actuator health/readiness and Prometheus metrics")
|
||||
.isTrue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,15 @@ class PortainerComposeResourceLimitsTest {
|
||||
.contains("JAVA_OPTS: ${JAVA_OPTS:---sun-misc-unsafe-memory-access=allow -XX:+UseZGC -XX:MaxRAMPercentage=75}");
|
||||
}
|
||||
|
||||
@Test
|
||||
void redisSessionDefaultsUseEcsPrivateEndpoint() throws IOException {
|
||||
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||
|
||||
assertThat(compose)
|
||||
.contains("REDIS_HOST: ${REDIS_HOST:-r-bp1u741kij7e51i481.redis.rds.aliyuncs.com}")
|
||||
.doesNotContain("r-bp1u741kij7e51i481pd.redis.rds.aliyuncs.com");
|
||||
}
|
||||
|
||||
@Test
|
||||
void activeAppsExposeHealthProbeGroupsByDefault() {
|
||||
Path root = repositoryRoot();
|
||||
|
||||
Reference in New Issue
Block a user