Skip to content

Commit 7e65e8a

Browse files
authored
Merge branch 'main' into update-agent-versions-8825044805
2 parents 3d3d028 + f3b4eec commit 7e65e8a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

internal/pkg/agent/application/upgrade/step_download_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ func TestDownloadWithRetries(t *testing.T) {
231231
// Download timeout expired (before all retries are exhausted)
232232
t.Run("download_timeout_expired", func(t *testing.T) {
233233
testCaseSettings := settings
234-
testCaseSettings.Timeout = 200 * time.Millisecond
234+
testCaseSettings.Timeout = 500 * time.Millisecond
235235
testCaseSettings.RetrySleepInitDuration = 10 * time.Millisecond
236-
// exponential backoff with 10ms init and 200ms timeout should fit at least 3 attempts.
236+
// exponential backoff with 10ms init and 500ms timeout should fit at least 3 attempts.
237237
minNmExpectedAttempts := 3
238238

239239
mockDownloaderCtor := func(version *agtversion.ParsedSemVer, log *logger.Logger, settings *artifact.Config, upgradeDetails *details.Details) (download.Downloader, error) {

testing/integration/logs_ingestion_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ func testMonitoringLogsAreShipped(
278278
"add_cloud_metadata: received error failed requesting openstack metadata: Get \\\"https://169.254.169.254/2009-04-04/meta-data/hostname\\\": dial tcp 169.254.169.254:443: connect: connection refused", // okay for the cloud metadata to not work
279279
"add_cloud_metadata: received error failed requesting openstack metadata: Get \\\"https://169.254.169.254/2009-04-04/meta-data/placement/availability-zone\\\": dial tcp 169.254.169.254:443: connect: connection refused", // okay for the cloud metadata to not work
280280
"add_cloud_metadata: received error failed requesting openstack metadata: Get \\\"https://169.254.169.254/2009-04-04/meta-data/instance-type\\\": dial tcp 169.254.169.254:443: connect: connection refused", // okay for the cloud metadata to not work
281-
"add_cloud_metadata: received error failed with http status code 404", // okay for the cloud metadata to not work
281+
"add_cloud_metadata: received error failed with http status code 404", // okay for the cloud metadata to not work
282+
"add_cloud_metadata: received error failed fetching EC2 Identity Document: not found, Signing", // okay for the cloud metadata to not work
282283
"add_cloud_metadata: received error failed fetching EC2 Identity Document: operation error ec2imds: GetInstanceIdentityDocument, http response error StatusCode: 404, request to EC2 IMDS failed", // okay for the cloud metadata to not work
283284
"failed to invoke rollback watcher: failed to start Upgrade Watcher: fork/exec /var/lib/elastic-agent/elastic-agent: no such file or directory", //on debian this happens probably need to fix.
284285
})

0 commit comments

Comments
 (0)