Commit de1a1707 authored by Łukasz Nowak's avatar Łukasz Nowak

component/caddy: Disable telemetry fully

parent ca795327
Pipeline #11645 failed with stage
in 0 seconds
......@@ -9,6 +9,7 @@ parts =
# Caddy 1.x+ uses go modules, for which gowork does not work yet
golang = ${golang1.14:location}
install =
buildflags = enableTelemetry=False
[gowork.goinstall]
command = :
......
......@@ -1682,6 +1682,15 @@ class TestSlave(SlaveHttpFrontendTestCase, TestDataMixin):
proto
)
def test_telemetry_disabled(self):
# here we trust that telemetry not present in error log means it was
# really disabled
error_log_file = glob.glob(
os.path.join(
self.instance_path, '*', 'var', 'log', 'frontend-error.log'))[0]
with open(error_log_file) as fh:
self.assertNotIn('Sending telemetry', fh.read(), 'Telemetry enabled')
def test_url(self):
parameter_dict = self.assertSlaveBase('Url')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment