Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tuananhnguyen-ct committed Nov 2, 2020
1 parent d6f90fe commit b5e09f1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,25 @@ def test_adding_in_pipeline():
)


def test_adding_in_pattern():
config = """
logstashPattern:
pattern.conf: |
DPKG_VERSION [-+~<>\.0-9a-zA-Z]+
"""
r = helm_template(config)
c = r["configmap"][name + "-pattern"]["data"]

assert "pattern.conf" in c

assert "DPKG_VERSION [-+~<>\.0-9a-zA-Z]+" in c["pattern.conf"]

assert (
"patternchecksum"
in r["statefulset"][name]["spec"]["template"]["metadata"]["annotations"]
)


def test_priority_class_name():
config = """
priorityClassName: ""
Expand Down

0 comments on commit b5e09f1

Please sign in to comment.