Skip to content

Commit 74a4b0d

Browse files
donoghucyaauie
authored andcommitted
Restore code review changes (elastic#17539)
* Comment to clarify why FIPS flag is not needed for smoke tests * Use full versions of docker commands for readability * Simplify grock pattern match The grok pattern is unanchored-by-default, we don't need the leading and trailing wildcards.
1 parent 0d46064 commit 74a4b0d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.buildkite/pull_request_pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ steps:
166166
# Run the smoke tests on the PR code
167167
docker tag docker.elastic.co/logstash/logstash-observability-sre:$${QUALIFIED_VERSION} \
168168
pr-built-observability-sre-image
169+
# observabilitySREsmokeTests orchestrates FIPS-mode docker images
170+
# and validates assertions separately, so it does not need FIPS flag.
169171
./gradlew observabilitySREsmokeTests --stacktrace
170172
171173
- label: ":lab_coat: Integration Tests - FIPS mode / part 1-of-3"

x-pack/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ tasks.register("observabilitySREsmokeTests", Test) {
8989
}
9090
def result = exec {
9191
workingDir file("distributions/internal/observabilitySRE/qa/smoke/docker")
92-
commandLine 'docker-compose', 'up', '-d'
92+
commandLine 'docker-compose', 'up', '--detach'
9393
ignoreExitValue = true
9494
}
9595
if (result.exitValue != 0) {
@@ -107,7 +107,7 @@ tasks.register("observabilitySREsmokeTests", Test) {
107107
doLast {
108108
exec {
109109
workingDir file("distributions/internal/observabilitySRE/qa/smoke/docker")
110-
commandLine 'docker-compose', 'down', '-v'
110+
commandLine 'docker-compose', 'down', '--volumes'
111111
ignoreExitValue = true
112112
}
113113
// Clean up the generated certificates

x-pack/distributions/internal/observabilitySRE/qa/smoke/docker/logstash/pipeline/logstash.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ filter {
3838

3939
if [log_content] =~ /json=/ {
4040
grok {
41-
match => { "log_content" => ".*json=%{GREEDYDATA:json_string}.*" }
41+
match => { "log_content" => "json=%{GREEDYDATA:json_string}" }
4242
}
4343
json {
4444
source => "json_string"

0 commit comments

Comments
 (0)