Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 9794b62

Browse files
committed
Merge branch '7.13.x' into mergify/bp/7.13.x/pr-1137
* 7.13.x: Pull fresh docker images before suite (#1123) (#1141)
2 parents 28f37b8 + feb7847 commit 9794b62

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

e2e/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ The following environment variables affect how the tests are run in both the CI
149149
>"ELASTIC_APM_ACTIVE" only affects Helm and Metricbeat test suites.
150150
151151
- `ELASTIC_APM_ENVIRONMENT`: Set this environment variable to `ci` to send APM data to Elastic Cloud. Otherwise, the framework will spin up local APM Server and Kibana instances. For the CI, it will read credentials from Vault. Default value: `local`.
152+
- `SKIP_PULL`: Set this environment variable to prevent the test suite to pull Docker images for all components. Default: `false`
152153
- `SKIP_SCENARIOS`: Set this environment variable to `false` if it's needed to include the scenarios annotated as `@skip` in the current test execution. Default value: `true`.
153154
- `BEATS_LOCAL_PATH`: Set this environment variable to the base path to your local clone of Beats if it's needed to use the binary snapshots produced by your local build instead of the official releases. The snapshots will be fetched from the `${BEATS_LOCAL_PATH}/${THE_BEAT}/build/distributions` local directory. This variable is intended to be used by Beats developers, when testing locally the artifacts generated its own build. Default: empty.
154155
- `BEATS_USE_CI_SNAPSHOTS`: Set this environment variable to `true` if it's needed to use the binary snapshots produced by Beats CI instead of the official releases. The snapshots will be downloaded from a bucket in Google Cloud Storage. This variable is used by the Beats repository, when testing the artifacts generated by the packaging job. Default: `false`.

e2e/_suites/fleet/ingest_manager_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/elastic/e2e-testing/cli/config"
1616
"github.com/elastic/e2e-testing/internal/common"
1717
"github.com/elastic/e2e-testing/internal/compose"
18+
"github.com/elastic/e2e-testing/internal/docker"
1819
"github.com/elastic/e2e-testing/internal/elasticsearch"
1920
"github.com/elastic/e2e-testing/internal/installer"
2021
"github.com/elastic/e2e-testing/internal/kibana"
@@ -130,11 +131,11 @@ func InitializeIngestManagerTestSuite(ctx *godog.TestSuiteContext) {
130131

131132
log.Trace("Installing Fleet runtime dependencies")
132133

133-
<<<<<<< HEAD
134134
common.ProfileEnv = map[string]string{
135135
"kibanaVersion": common.KibanaVersion,
136136
"stackVersion": common.StackVersion,
137-
=======
137+
}
138+
138139
if !shell.GetEnvBool("SKIP_PULL") {
139140
images := []string{
140141
"docker.elastic.co/beats/elastic-agent:" + common.AgentVersion,
@@ -149,7 +150,6 @@ func InitializeIngestManagerTestSuite(ctx *godog.TestSuiteContext) {
149150
"docker.elastic.co/observability-ci/kibana-ubi8:" + common.KibanaVersion,
150151
}
151152
docker.PullImages(images)
152-
>>>>>>> 4c0075fb... chore: abstract image pulling (#1137)
153153
}
154154

155155
common.ProfileEnv["kibanaDockerNamespace"] = "kibana"

internal/docker/docker.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"compress/gzip"
1010
"context"
1111
"fmt"
12+
"io"
1213
"os"
1314
"path/filepath"
1415
"strings"
@@ -436,8 +437,6 @@ func getDockerClient() *client.Client {
436437

437438
return instance
438439
}
439-
<<<<<<< HEAD
440-
=======
441440

442441
// PullImages pulls images
443442
func PullImages(images []string) error {
@@ -457,4 +456,3 @@ func PullImages(images []string) error {
457456
}
458457
return nil
459458
}
460-
>>>>>>> 4c0075fb... chore: abstract image pulling (#1137)

0 commit comments

Comments
 (0)