summaryrefslogtreecommitdiffstats
path: root/baro_tests/tests.py
diff options
context:
space:
mode:
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>2018-09-06 10:16:09 +0000
committerToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>2018-09-07 06:03:16 +0000
commitdfaf48cb7674f84c67b89ed495660f0d98c7ca7c (patch)
tree6eccd84b54efb3a887e7920a9e29bf314540bec6 /baro_tests/tests.py
parentd61931341176dad9ccff7c967a10d88fe54218fa (diff)
functest: Add test code of DMA localagent
Change-Id: If1195b7b3d9000e3ec75bc3c4c108b0e9a1bc9e3 Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Diffstat (limited to 'baro_tests/tests.py')
-rw-r--r--baro_tests/tests.py12
1 files changed, 12 insertions, 0 deletions
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