Skip to content

Commit 265b11a

Browse files
author
Jeel Mehta
committed
Testing
1 parent bd4edb2 commit 265b11a

16 files changed

+36
-13
lines changed

.github/workflows/python-ec2-adot-sigv4-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ jobs:
225225

226226
- name: Validate generated SigV4 logs
227227
id: log-validation-1
228-
run: ./gradlew validator:run --args='-c python/ec2/adot-sigv4/log-validation.yml
228+
run: ./gradlew validator:run --args='-c python/ec2/adot-sigv4/logs/log-validation.yml
229229
--testing-id ${{ env.TESTING_ID }}
230230
--endpoint http://localhost:8000
231231
--remote-service-deployment-name ${{ env.REMOTE_SERVICE_IP }}:8001

validator/src/main/java/com/amazon/aoc/fileconfigs/PredefinedExpectedTemplate.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,23 +222,26 @@ public enum PredefinedExpectedTemplate implements FileConfig {
222222

223223
/** Python EC2 ADOT SigV4 (Stand Alone ADOT) Test Case Validations */
224224
PYTHON_EC2_ADOT_SIGV4_OUTGOING_HTTP_CALL_LOG(
225-
"/expected-data-template/python/ec2/adot-sigv4/outgoing-http-call-log.mustache"),
225+
"/expected-data-template/python/ec2/adot-sigv4/traces/outgoing-http-call-log.mustache"),
226226
PYTHON_EC2_ADOT_SIGV4_OUTGOING_HTTP_CALL_METRIC(
227-
"/expected-data-template/python/ec2/adot-sigv4/outgoing-http-call-metric.mustache"),
227+
"/expected-data-template/python/ec2/adot-sigv4/traces/outgoing-http-call-metric.mustache"),
228228
PYTHON_EC2_ADOT_SIGV4_OUTGOING_HTTP_CALL_TRACE(
229-
"/expected-data-template/python/ec2/adot-sigv4/outgoing-http-call-trace.mustache"),
229+
"/expected-data-template/python/ec2/adot-sigv4/traces/outgoing-http-call-trace.mustache"),
230230

231-
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_LOG("/expected-data-template/python/ec2/adot-sigv4/aws-sdk-call-log.mustache"),
232-
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_METRIC("/expected-data-template/python/ec2/adot-sigv4/aws-sdk-call-metric.mustache"),
233-
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_TRACE("/expected-data-template/python/ec2/adot-sigv4/aws-sdk-call-trace.mustache"),
231+
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_LOG("/expected-data-template/python/ec2/adot-sigv4/traces/aws-sdk-call-log.mustache"),
232+
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_METRIC("/expected-data-template/python/ec2/adot-sigv4/traces/aws-sdk-call-metric.mustache"),
233+
PYTHON_EC2_ADOT_SIGV4_AWS_SDK_CALL_TRACE("/expected-data-template/python/ec2/adot-sigv4/traces/aws-sdk-call-trace.mustache"),
234234

235-
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_LOG("/expected-data-template/python/ec2/adot-sigv4/remote-service-log.mustache"),
236-
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_METRIC("/expected-data-template/python/ec2/adot-sigv4/remote-service-metric.mustache"),
237-
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_TRACE("/expected-data-template/python/ec2/adot-sigv4/remote-service-trace.mustache"),
235+
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_LOG("/expected-data-template/python/ec2/adot-sigv4/traces/remote-service-log.mustache"),
236+
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_METRIC("/expected-data-template/python/ec2/adot-sigv4/traces/remote-service-metric.mustache"),
237+
PYTHON_EC2_ADOT_SIGV4_REMOTE_SERVICE_TRACE("/expected-data-template/python/ec2/adot-sigv4/traces/remote-service-trace.mustache"),
238238

239-
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_LOG("/expected-data-template/python/ec2/adot-sigv4/client-call-log.mustache"),
240-
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_METRIC("/expected-data-template/python/ec2/adot-sigv4/client-call-metric.mustache"),
241-
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_TRACE("/expected-data-template/python/ec2/adot-sigv4/client-call-trace.mustache"),
239+
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_LOG("/expected-data-template/python/ec2/adot-sigv4/traces/client-call-log.mustache"),
240+
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_METRIC("/expected-data-template/python/ec2/adot-sigv4/traces/client-call-metric.mustache"),
241+
PYTHON_EC2_ADOT_SIGV4_CLIENT_CALL_TRACE("/expected-data-template/python/ec2/adot-sigv4/traces/client-call-trace.mustache"),
242+
243+
/** Python EC2 ADOT SigV4 Log Exporter Test Case Validation */
244+
PYTHON_EC2_ADOT_SIGV4_LOG("/expected-data-template/python/ec2/adot-sigv4/logs/log.mustache"),
242245

243246
/** Python K8S Test Case Validations */
244247
PYTHON_K8S_OUTGOING_HTTP_CALL_LOG("/expected-data-template/python/k8s/outgoing-http-call-log.mustache"),
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[{
2+
"resource": {
3+
"attributes": {
4+
"aws.local.service": "{{serviceName}}",
5+
"service.name": "{{serviceName}}",
6+
"cloud.provider": "aws",
7+
"cloud.region": "{{region}}",
8+
"cloud.account.id": "{{accountId}}",
9+
"cloud.platform": "aws_ec2"
10+
}
11+
},
12+
"severityNumber": "^[0-9]+$",
13+
"severityText": "{{severityText}}",
14+
"body": "{{body}}",
15+
"traceId": "{{traceId}}",
16+
"spanId": "{{spanId}}"
17+
}]

0 commit comments

Comments
 (0)