From dfaf48cb7674f84c67b89ed495660f0d98c7ca7c Mon Sep 17 00:00:00 2001 From: Toshiaki Takahashi Date: Thu, 6 Sep 2018 10:16:09 +0000 Subject: functest: Add test code of DMA localagent Change-Id: If1195b7b3d9000e3ec75bc3c4c108b0e9a1bc9e3 Signed-off-by: Toshiaki Takahashi --- baro_tests/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'baro_tests/tests.py') diff --git a/baro_tests/tests.py b/baro_tests/tests.py index 02eca90a..bd49583d 100644 --- a/baro_tests/tests.py +++ b/baro_tests/tests.py @@ -270,3 +270,15 @@ def test_csv_handles_plugin_data( logger.info('OK') return True + + +def test_localagent_server_set_collectd(compute, file, logger, client): + with open(file, mode='w') as f: + f.write('# dummy conf\n') + res = client.set(file) + if res: + logger.info('set collectd PASS') + else: + logger.error('set collectd FAIL') + + return res -- cgit 1.2.3-korg