summaryrefslogtreecommitdiffstats
path: root/overlord/test_func.py
diff options
context:
space:
mode:
Diffstat (limited to 'overlord/test_func.py')
-rw-r--r--overlord/test_func.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/overlord/test_func.py b/overlord/test_func.py
index bcce45d..d759a2e 100644
--- a/overlord/test_func.py
+++ b/overlord/test_func.py
@@ -4,13 +4,20 @@
# FIXME: should import the client lib, not XMLRPC lib, when we are done
import xmlrpclib
+import sys
+TEST_GETATTR = True
TEST_PROCESS = False
TEST_VIRT = False
TEST_SERVICES = False
TEST_HARDWARE = False
TEST_SMART = True
+if TEST_GETATTR:
+ import func.overlord.client as func_client
+ print func_client.Client("*").hardware.info()
+ sys.exit(1)
+
# get a connecton (to be replaced by client lib logic)
s = xmlrpclib.ServerProxy("http://127.0.0.1:51234")