Skip to content

Commit

Permalink
skip journald tests for 1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Oct 1, 2024
1 parent f660649 commit 03a2626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functional_tests/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ func testAgentLogs(t *testing.T) {
assert.Contains(tt, sourcetypes, "sourcetype-anno") // pod-wo-index-w-ns-index has a sourcetype annotation
}, 3*time.Minute, 5*time.Second)

if strings.HasPrefix(os.Getenv("K8S_VERSION"), "v1.30") {
t.Log("Skipping test for journald sourcetypes for cluster version 1.30")
if strings.HasPrefix(os.Getenv("K8S_VERSION"), "v1.30") || strings.HasPrefix(os.Getenv("K8S_VERSION"), "v1.31") {
t.Log("Skipping test for journald sourcetypes for cluster version 1.30 and 1.31")
} else {
t.Run("test journald sourcetypes are set", func(t *testing.T) {
assert.Contains(t, journalDsourceTypes, "kube:journald:containerd.service")
Expand Down

0 comments on commit 03a2626

Please sign in to comment.