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 28, 2020
1 parent 948fc29 commit 47281c3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,14 +579,6 @@ 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'
volumes = r['statefulset'][custom_name]['spec']['template']['spec']['volumes']

0 comments on commit 47281c3

Please sign in to comment.