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

Commit

Permalink
Add tests for extraInitContainers to filebeat chart
Browse files Browse the repository at this point in the history
  • Loading branch information
vasrem committed Jan 30, 2020
1 parent fbf6249 commit f114e2a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions filebeat/tests/filebeat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ def test_adding_envs():
envs = r['daemonset'][name]['spec']['template']['spec']['containers'][0]['env']
assert {'name': 'LOG_LEVEL', 'value': 'DEBUG'} in envs

def test_adding_init_containers():
config = '''
extraInitContainers:
- name: dummy-init
image: busybox
command: ['echo', 'hey']
'''
r = helm_template(config)
initContainers = r['daemonset'][name]['spec']['template']['spec']['initContainers']
assert {'name': 'dummy-init', 'image': 'busybox', 'command': ['echo', 'hey']} in initContainers


def test_adding_image_pull_secrets():
config = '''
Expand Down

0 comments on commit f114e2a

Please sign in to comment.