Skip to content

Commit d8c6dd5

Browse files
committed
TEST
1 parent 5a34e4d commit d8c6dd5

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

.github/workflows/python-ec2-genai-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
cd sample-apps/traffic-generator/genai
111111
chmod +x generate_traffic.sh
112112
export SERVER_URL="http://${{ env.INSTANCE_IP }}:8000"
113-
export NUM_REQUESTS="1"
113+
export NUM_REQUESTS="5"
114114
export DELAY_SECONDS="5"
115115
export TIMEOUT="30"
116116
export TRACE_ID="Root=${XRAY_TRACE_ID};Parent=$(openssl rand -hex 8);Sampled=1"

ec2-requirements.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

validator/src/main/java/com/amazon/aoc/validators/CWLogValidator.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,9 @@ private JsonifyArrayList<Map<String, Object>> getExpectedAttributes() throws Exc
171171

172172
private boolean isAwsOtlpLog(Map<String, Object> expectedAttributes) {
173173
// OTLP SigV4 logs have 'body' as a top-level attribute
174-
boolean hasBodyKey = expectedAttributes.keySet().stream()
175-
.anyMatch(key -> key.startsWith("body"));
176-
177-
return expectedAttributes.containsKey("severityNumber") &&
178-
expectedAttributes.containsKey("severityText") &&
179-
hasBodyKey;
174+
return expectedAttributes.containsKey("body") &&
175+
expectedAttributes.containsKey("severityNumber") &&
176+
expectedAttributes.containsKey("severityText");
180177
}
181178

182179
private Map<String, Object> getActualLog(

0 commit comments

Comments
 (0)