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

Commit

Permalink
[logstash] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchristiansson committed Jan 31, 2020
1 parent f47028c commit 147d4d4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,14 +579,5 @@ def test_setting_fullnameOverride():
r = helm_template(config)

custom_name = 'logstash-custom'
assert custom_name in r['daemonset']
assert r['daemonset'][custom_name]['spec']['template']['spec']['containers'][0]['name'] == project
assert r['daemonset'][custom_name]['spec']['template']['spec']['serviceAccountName'] == name
volumes = r['daemonset'][custom_name]['spec']['template']['spec']['volumes']
assert {
'name': 'data',
'hostPath': {
'path': '/var/lib/' + custom_name + '-default-data',
'type': 'DirectoryOrCreate'
}
} in volumes
assert custom_name in r['statefulset']
assert r['statefulset'][custom_name]['spec']['template']['spec']['containers'][0]['name'] == 'logstash'

0 comments on commit 147d4d4

Please sign in to comment.