Skip to content

Commit

Permalink
Fix octal literal to work in both Python 2 and Python 3
Browse files Browse the repository at this point in the history
@Crazybus A repeat of elastic#188 on a different file.
  • Loading branch information
cclauss committed Aug 13, 2019
1 parent 8f9999d commit 8440172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/tests/metricbeat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_adding_in_metricbeat_config():

d = r['daemonset'][name]['spec']['template']['spec']

assert {'configMap': {'name': name + '-config', 'defaultMode': 0600}, 'name': project + '-config'} in d['volumes']
assert {'configMap': {'name': name + '-config', 'defaultMode': 0o600}, 'name': project + '-config'} in d['volumes']
assert {'mountPath': '/usr/share/metricbeat/metricbeat.yml', 'name': project + '-config', 'subPath': 'metricbeat.yml', 'readOnly': True} in d['containers'][0]['volumeMounts']
assert {'mountPath': '/usr/share/metricbeat/other-config.yml', 'name': project + '-config', 'subPath': 'other-config.yml', 'readOnly': True} in d['containers'][0]['volumeMounts']

Expand Down

0 comments on commit 8440172

Please sign in to comment.