Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip Fleet tests until #6331 is resolved #6376

Merged
merged 3 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/e2e/agent/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func TestMultipleOutputConfig(t *testing.T) {
}

func TestFleetMode(t *testing.T) {

test.SkipUntilResolution(t, 6331)

v := version.MustParse(test.Ctx().ElasticStackVersion)
// installation of policies and integrations through Kibana file based configuration was broken between those versions:
if v.LT(version.MinFor(8, 1, 0)) && v.GTE(version.MinFor(8, 0, 0)) {
Expand Down
10 changes: 8 additions & 2 deletions test/e2e/agent/recipes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func TestMultiOutputRecipe(t *testing.T) {
}

func TestFleetKubernetesIntegrationRecipe(t *testing.T) {
// This test is disabled until we understand why it is failing
t.Skip("TestFleetKubernetesIntegrationRecipe is disabled, see https://github.com/elastic/cloud-on-k8s/issues/6331")

test.SkipUntilResolution(t, 6331)

customize := func(builder agent.Builder) agent.Builder {
if !builder.Agent.Spec.FleetServerEnabled {
Expand Down Expand Up @@ -133,6 +133,9 @@ func TestFleetKubernetesIntegrationRecipe(t *testing.T) {
}

func TestFleetCustomLogsIntegrationRecipe(t *testing.T) {

test.SkipUntilResolution(t, 6331)
thbkrkr marked this conversation as resolved.
Show resolved Hide resolved

notLoggingPod := beat.NewPodBuilder("test")
loggingPod := beat.NewPodBuilder("test")
loggingPod.Pod.Namespace = "default"
Expand All @@ -159,6 +162,9 @@ func TestFleetCustomLogsIntegrationRecipe(t *testing.T) {
}

func TestFleetAPMIntegrationRecipe(t *testing.T) {

test.SkipUntilResolution(t, 6331)

customize := func(builder agent.Builder) agent.Builder {
if !builder.Agent.Spec.FleetServerEnabled {
return builder
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/agent/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
)

func TestAgentVersionUpgradeToLatest8x(t *testing.T) {

test.SkipUntilResolution(t, 6331)

srcVersion, dstVersion := test.GetUpgradePathTo8x(test.Ctx().ElasticStackVersion)

test.SkipInvalidUpgrade(t, srcVersion, dstVersion)
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/test/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ func IsGKE(v version.Version) bool {
// cloud providers append the name of the k8s platform in the version prefix (e.g.: 1.21.6-gke.1503)
return strings.Contains(v.String(), "gke")
}

func SkipUntilResolution(t *testing.T, knownIssueNumber int) {
t.Skip(fmt.Sprintf("Skip until we understand why it is failing, see https://github.com/elastic/cloud-on-k8s/issues/%d", knownIssueNumber))
}