Skip to content

Commit

Permalink
Tests all the fluent-bit versions (#8)
Browse files Browse the repository at this point in the history
Adds integration tests for all the currently supported fluent-bit
versions.
  • Loading branch information
claudiubelu authored Jul 24, 2024
1 parent ad44c16 commit 09c889d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/integration/test_fluent_bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
import logging

import pytest
from k8s_test_harness import harness
from k8s_test_harness.util import env_util, k8s_util

Expand All @@ -11,9 +12,12 @@
LOG = logging.getLogger(__name__)


def test_integration_fluent_bit(module_instance: harness.Instance):
@pytest.mark.parametrize("image_version", ("2.1.6", "1.9.5"))
def test_integration_fluent_bit(
function_instance: harness.Instance, image_version: str
):
fluent_bit_rock = env_util.get_build_meta_info_for_rock_version(
"fluent-bit", "2.1.6", "amd64"
"fluent-bit", image_version, "amd64"
)

images = [k8s_util.HelmImage(fluent_bit_rock.image)]
Expand All @@ -27,6 +31,6 @@ def test_integration_fluent_bit(module_instance: harness.Instance):
images=images,
)

module_instance.exec(helm_command)
function_instance.exec(helm_command)

k8s_util.wait_for_daemonset(module_instance, "fluent-bit", "fluent-bit")
k8s_util.wait_for_daemonset(function_instance, "fluent-bit", "fluent-bit")

0 comments on commit 09c889d

Please sign in to comment.