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

Commit

Permalink
Fix octal literal to work in both Python 2 and Python 3 (#255)
Browse files Browse the repository at this point in the history
Fix octal literal to work in both Python 2 and Python 3
  • Loading branch information
Crazybus committed Aug 13, 2019
2 parents 8f9999d + 8440172 commit 7e9b029
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 7e9b029

Please sign in to comment.