Skip to content

Commit cbb08c9

Browse files
author
Kaan Yalti
authored
fix: updated excluded error strings (#6031)
* fix: updated excluded error strings * fix: added error string
1 parent e6f7de4 commit cbb08c9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

testing/integration/logs_ingestion_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ func testMonitoringLogsAreShipped(
201201
"Failed to connect to backoff(elasticsearch(http://127.0.0.1:9200)): Get \"http://127.0.0.1:9200\": dial tcp 127.0.0.1:9200: connect: connection refused", // Deb test
202202
"Failed to download artifact",
203203
"Failed to initialize artifact",
204-
"Global configuration artifact is not available", // Endpoint: failed to load user artifact due to connectivity issues
205-
"add_cloud_metadata: received error failed fetching EC2 Identity Document", // okay for the cloud metadata to not work
206-
"add_cloud_metadata: received error failed requesting openstack metadata", // okay for the cloud metadata to not work
207-
"add_cloud_metadata: received error failed with http status code 404", // okay for the cloud metadata to not work
204+
"Global configuration artifact is not available", // Endpoint: failed to load user artifact due to connectivity issues
205+
"add_cloud_metadata: received error for provider aws: failed fetching EC2 Identity Document", // okay for the cloud metadata to not work
206+
"add_cloud_metadata: received error for provider openstack: failed requesting openstack metadata", // okay for the cloud metadata to not work
207+
"add_cloud_metadata: received error for provider hetzner: failed with http status code 404",
208+
"add_cloud_metadata: received error for provider digitalocean: failed with http status code 404",
209+
"add_cloud_metadata: received error for provider azure: failed with http status code 404",
210+
"add_cloud_metadata: received error for provider openstack: failed with http status code 404",
208211
"elastic-agent-client error: rpc error: code = Canceled desc = context canceled", // can happen on restart
209212
"failed to invoke rollback watcher: failed to start Upgrade Watcher", // on debian this happens probably need to fix.
210213
"falling back to IMDSv1: operation error ec2imds: getToken", // okay for the cloud metadata to not work
@@ -416,7 +419,6 @@ func ensureDocumentsInES(
416419
dsType, dsDataset, dsNamespace string,
417420
numEvents int,
418421
) func() bool {
419-
420422
f := func() bool {
421423
t.Helper()
422424

@@ -430,7 +432,6 @@ func ensureDocumentsInES(
430432
}
431433

432434
return false
433-
434435
}
435436

436437
return f

0 commit comments

Comments
 (0)