generated from cloudnative-pg/cnpg-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): run on ephemeral clusters
Rework the e2e test to expect a working connection to a cluster when they start. Developers can create their own clusters and run the tests. Removed the code used to start kind clusters within the e2e tests. Reworked the Taskfile to define two environments where the tests can run: 1. An ephemeral one running within Dagger, using the k3s module, to be used by the CI. 2. A persistent one created with Kind, requiring the kind binary, to be used for development and debugging when the ephemeral cluster is not enough. Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
- Loading branch information
Showing
13 changed files
with
366 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/dagger.gen.go linguist-generated | ||
/internal/dagger/** linguist-generated | ||
/internal/querybuilder/** linguist-generated | ||
/internal/telemetry/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/dagger.gen.go | ||
/internal/dagger | ||
/internal/querybuilder | ||
/internal/telemetry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "e2e", | ||
"engineVersion": "v0.15.1", | ||
"sdk": "go", | ||
"dependencies": [ | ||
{ | ||
"name": "go", | ||
"source": "github.com/sagikazarmark/daggerverse/go@go/v0.9.0", | ||
"pin": "d9ba06776c4c1ccf6f329bd862b9b439c4582ab6" | ||
}, | ||
{ | ||
"name": "k3s", | ||
"source": "github.com/marcosnils/daggerverse/k3s@k3s/v0.1.7", | ||
"pin": "833ec36632b2457862f6e3bf1f7107ad65e3e515" | ||
} | ||
], | ||
"source": "." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module dagger/e-2-e | ||
|
||
go 1.23.2 | ||
|
||
require ( | ||
github.com/99designs/gqlgen v0.17.57 | ||
github.com/Khan/genqlient v0.7.0 | ||
github.com/vektah/gqlparser/v2 v2.5.19 | ||
go.opentelemetry.io/otel v1.27.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.0.0-20240518090000-14441aefdf88 | ||
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.3.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.27.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.27.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 | ||
go.opentelemetry.io/otel/log v0.3.0 | ||
go.opentelemetry.io/otel/metric v1.27.0 | ||
go.opentelemetry.io/otel/sdk v1.27.0 | ||
go.opentelemetry.io/otel/sdk/log v0.3.0 | ||
go.opentelemetry.io/otel/sdk/metric v1.27.0 | ||
go.opentelemetry.io/otel/trace v1.27.0 | ||
go.opentelemetry.io/proto/otlp v1.3.1 | ||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa | ||
golang.org/x/sync v0.10.0 | ||
google.golang.org/grpc v1.68.0 | ||
) | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.3.0 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect | ||
github.com/sosodev/duration v1.3.1 // indirect | ||
github.com/stretchr/testify v1.10.0 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 // indirect | ||
golang.org/x/net v0.29.0 // indirect | ||
golang.org/x/sys v0.28.0 // indirect | ||
golang.org/x/text v0.21.0 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
) | ||
|
||
replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.0.0-20240518090000-14441aefdf88 | ||
|
||
replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.3.0 | ||
|
||
replace go.opentelemetry.io/otel/log => go.opentelemetry.io/otel/log v0.3.0 | ||
|
||
replace go.opentelemetry.io/otel/sdk/log => go.opentelemetry.io/otel/sdk/log v0.3.0 |
Oops, something went wrong.