From 8440172d39a67b0996a6b4881941fbc5eb94b758 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 13 Aug 2019 12:50:32 +0200 Subject: [PATCH] Fix octal literal to work in both Python 2 and Python 3 @Crazybus A repeat of #188 on a different file. --- metricbeat/tests/metricbeat_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/tests/metricbeat_test.py b/metricbeat/tests/metricbeat_test.py index 96fa7ef63..a274b6a90 100644 --- a/metricbeat/tests/metricbeat_test.py +++ b/metricbeat/tests/metricbeat_test.py @@ -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']