aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-07-11 17:02:12 -0400
committerbnewbold <bnewbold@robocracy.org>2012-07-11 17:02:12 -0400
commit6c5af08378219dd6d740d004b891befb8a98b764 (patch)
treebc67d9c1a05b10639c2996416ed0fba31247a6d0 /test.py
parentd19ca7fe4fc642282dbd5694ad34530ee4b30c2b (diff)
downloadexmachina-6c5af08378219dd6d740d004b891befb8a98b764.tar.gz
exmachina-6c5af08378219dd6d740d004b891befb8a98b764.zip
permissions, working test
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/test.py b/test.py
index f6c4de1..b9295b8 100755
--- a/test.py
+++ b/test.py
@@ -18,8 +18,15 @@ def main():
sock.connect(socket_path)
c = bjsonrpc.connection.Connection(sock)
- print c.call.whattime()
- print c.call.listfiles()
+ print "time: %s" % c.call.test_whattime()
+ print "files: %s" % c.call.test_listfiles()
+ print c.call.initd_status("bluetooth")
+ print "/*: %s" % c.call.augeas_match("/*")
+ print "/files/*: %s" % c.call.augeas_match("/files/*")
+ print "/files/etc/*: %s" % c.call.augeas_match("/files/etc/*")
+ print "/augeas/*: %s" % c.call.augeas_match("/augeas/*")
+ print "hostname: %s" % c.call.augeas_get("/files/etc/hostname/*")
+ print "localhost: %s" % c.call.augeas_get("/files/etc/hosts/1/canonical")
if __name__ == '__main__':
main()