Skip to content

Commit e2e46ef

Browse files
authored
Revert "Revert "Update E2E Test Validation for EKS Add-on v1.3.1""
1 parent b7006db commit e2e46ef

File tree

6 files changed

+52
-74
lines changed

6 files changed

+52
-74
lines changed

.github/workflows/appsignals-e2e-eks-test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ jobs:
5454
cleanup: "rm -f enable-app-signals.sh && rm -f clean-app-signals.sh"
5555
post-command: "chmod +x enable-app-signals.sh && chmod +x clean-app-signals.sh"
5656

57-
# TODO: remove this step next Monday and update validator with appropriate changes
58-
- name: Temporary override addon version
59-
working-directory: enablement-script
60-
run: |
61-
sed -i '\#--addon-name amazon-cloudwatch-observability \\#a--addon-version v1.2.2-eksbuild.1 \\' enable-app-signals.sh
62-
6357
- name: Remove log group deletion command
6458
if: always()
6559
working-directory: enablement-script

validator/src/main/resources/expected-data-template/eks/aws-sdk-call-metric.mustache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
value: AWS.SDK.S3
114114
-
115115
name: RemoteTarget
116-
value: e2e-test-bucket-name
116+
value: ::s3:::e2e-test-bucket-name
117117

118118
-
119119
metricName: Latency
@@ -136,7 +136,7 @@
136136
value: AWS.SDK.S3
137137
-
138138
name: RemoteTarget
139-
value: e2e-test-bucket-name
139+
value: ::s3:::e2e-test-bucket-name
140140

141141
-
142142
metricName: Error
@@ -253,7 +253,7 @@
253253
value: AWS.SDK.S3
254254
-
255255
name: RemoteTarget
256-
value: e2e-test-bucket-name
256+
value: ::s3:::e2e-test-bucket-name
257257

258258
-
259259
metricName: Error
@@ -276,7 +276,7 @@
276276
value: AWS.SDK.S3
277277
-
278278
name: RemoteTarget
279-
value: e2e-test-bucket-name
279+
value: ::s3:::e2e-test-bucket-name
280280

281281
-
282282
metricName: Fault
@@ -393,7 +393,7 @@
393393
value: AWS.SDK.S3
394394
-
395395
name: RemoteTarget
396-
value: e2e-test-bucket-name
396+
value: ::s3:::e2e-test-bucket-name
397397

398398
-
399399
metricName: Fault
@@ -416,4 +416,4 @@
416416
value: AWS.SDK.S3
417417
-
418418
name: RemoteTarget
419-
value: e2e-test-bucket-name
419+
value: ::s3:::e2e-test-bucket-name

validator/src/main/resources/expected-data-template/eks/aws-sdk-call-trace.mustache

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"account_id": "^{{accountId}}$"
1414
},
1515
"annotations": {
16-
"aws_local_service": "^{{serviceName}}$",
17-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
18-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
19-
"aws_local_operation": "^GET /aws-sdk-call$"
16+
"aws.local.service": "^{{serviceName}}$",
17+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
18+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
19+
"aws.local.operation": "^GET /aws-sdk-call$"
2020
},
2121
"metadata": {
2222
"default": {
@@ -38,13 +38,13 @@
3838
}
3939
},
4040
"annotations": {
41-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
42-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
43-
"aws_local_service": "^{{serviceName}}$",
44-
"aws_local_operation": "^GET /aws-sdk-call$",
45-
"aws_remote_service": "^AWS\\.SDK\\.S3$",
46-
"aws_remote_operation": "GetBucketLocation",
47-
"aws_remote_target": "e2e-test-bucket-name"
41+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
42+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
43+
"aws.local.service": "^{{serviceName}}$",
44+
"aws.local.operation": "^GET /aws-sdk-call$",
45+
"aws.remote.service": "^AWS\\.SDK\\.S3$",
46+
"aws.remote.operation": "GetBucketLocation",
47+
"aws.remote.target": "^::s3:::e2e-test-bucket-name$"
4848
},
4949
"metadata": {
5050
"default": {
Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[{
22
"name": "^{{serviceName}}$",
33
"annotations": {
4-
"aws_local_service": "^{{serviceName}}$",
5-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
6-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
7-
"aws_local_operation": "^InternalOperation$"
4+
"aws.local.service": "^{{serviceName}}$",
5+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
6+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
7+
"aws.local.operation": "^InternalOperation$"
88
},
99
"metadata": {
1010
"default": {
@@ -23,12 +23,12 @@
2323
}
2424
},
2525
"annotations": {
26-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
27-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
28-
"aws_local_service": "^{{serviceName}}$",
29-
"aws_local_operation": "^InternalOperation$",
30-
"aws_remote_service": "^local-root-client-call$",
31-
"aws_remote_operation": "GET /"
26+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
27+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
28+
"aws.local.service": "^{{serviceName}}$",
29+
"aws.local.operation": "^InternalOperation$",
30+
"aws.remote.service": "^local-root-client-call$",
31+
"aws.remote.operation": "GET /"
3232
},
3333
"metadata": {
3434
"default": {
@@ -38,20 +38,4 @@
3838
"namespace": "^remote$"
3939
}
4040
]
41-
},
42-
{
43-
"name": "^local-root-client-call$",
44-
"http": {
45-
"request": {
46-
"url": "^http://local-root-client-call$",
47-
"method": "^GET$"
48-
},
49-
"response": {
50-
"content_length": 0
51-
}
52-
},
53-
"annotations": {
54-
"aws_local_service": "^local-root-client-call$",
55-
"aws_local_operation": "^GET /$"
56-
}
5741
}]

validator/src/main/resources/expected-data-template/eks/outgoing-http-call-trace.mustache

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"account_id": "^{{accountId}}$"
1414
},
1515
"annotations": {
16-
"aws_local_service": "^{{serviceName}}$",
17-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
18-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
19-
"aws_local_operation": "^GET /outgoing-http-call$"
16+
"aws.local.service": "^{{serviceName}}$",
17+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
18+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
19+
"aws.local.operation": "^GET /outgoing-http-call$"
2020
},
2121
"metadata": {
2222
"default": {
@@ -38,12 +38,12 @@
3838
}
3939
},
4040
"annotations": {
41-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
42-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
43-
"aws_local_service": "^{{serviceName}}$",
44-
"aws_local_operation": "^GET /outgoing-http-call$",
45-
"aws_remote_service": "^www.amazon.com$",
46-
"aws_remote_operation": "^GET /$"
41+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
42+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
43+
"aws.local.service": "^{{serviceName}}$",
44+
"aws.local.operation": "^GET /outgoing-http-call$",
45+
"aws.remote.service": "^www.amazon.com$",
46+
"aws.remote.operation": "^GET /$"
4747
},
4848
"metadata": {
4949
"default": {

validator/src/main/resources/expected-data-template/eks/remote-service-trace.mustache

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"account_id": "^{{accountId}}$"
1414
},
1515
"annotations": {
16-
"aws_local_service": "^{{serviceName}}$",
17-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
18-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
19-
"aws_local_operation": "^GET /remote-service$"
16+
"aws.local.service": "^{{serviceName}}$",
17+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
18+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
19+
"aws.local.operation": "^GET /remote-service$"
2020
},
2121
"metadata": {
2222
"default": {
@@ -38,10 +38,10 @@
3838
}
3939
},
4040
"annotations": {
41-
"aws_local_service": "^{{serviceName}}$",
42-
"aws_local_operation": "^GET /remote-service$",
43-
"aws_remote_service": "^{{remoteServiceDeploymentName}}$",
44-
"aws_remote_operation": "^GET /healthcheck$"
41+
"aws.local.service": "^{{serviceName}}$",
42+
"aws.local.operation": "^GET /remote-service$",
43+
"aws.remote.service": "^{{remoteServiceDeploymentName}}$",
44+
"aws.remote.operation": "^GET /healthcheck$"
4545
},
4646
"metadata": {
4747
"default": {
@@ -63,10 +63,10 @@
6363
}
6464
},
6565
"annotations": {
66-
"aws_local_service": "^{{remoteServiceDeploymentName}}$",
67-
"HostedIn_K8s_Namespace": "^{{appNamespace}}$",
68-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
69-
"aws_local_operation": "^GET /healthcheck$"
66+
"aws.local.service": "^{{remoteServiceDeploymentName}}$",
67+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
68+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
69+
"aws.local.operation": "^GET /healthcheck$"
7070
},
7171
"metadata": {
7272
"default": {
@@ -80,9 +80,9 @@
8080
{
8181
"name": "^RemoteServiceController.healthcheck$",
8282
"annotations": {
83-
"HostedIn_K8s_Namespace": "^sample-app-namespace$",
84-
"HostedIn_EKS_Cluster": "^{{platformInfo}}$",
85-
"aws_local_operation": "^GET /healthcheck$"
83+
"HostedIn.K8s.Namespace": "^sample-app-namespace$",
84+
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
85+
"aws.local.operation": "^GET /healthcheck$"
8686
}
8787
}
8888
]

0 commit comments

Comments
 (0)