diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-07-11 17:02:12 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-07-11 17:02:12 -0400 |
commit | 6c5af08378219dd6d740d004b891befb8a98b764 (patch) | |
tree | bc67d9c1a05b10639c2996416ed0fba31247a6d0 /test.py | |
parent | d19ca7fe4fc642282dbd5694ad34530ee4b30c2b (diff) | |
download | exmachina-6c5af08378219dd6d740d004b891befb8a98b764.tar.gz exmachina-6c5af08378219dd6d740d004b891befb8a98b764.zip |
permissions, working test
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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() |