Whitespace
authorGreg Hudson <ghudson@mit.edu>
Thu, 30 Sep 2010 17:16:46 +0000 (17:16 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 30 Sep 2010 17:16:46 +0000 (17:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24393 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kadm5_hook/test/main.c
src/tests/Makefile.in
src/tests/t_kadm5_hook.py

index e09e3c1de3bfdb4ede8868a3b28c5c056c71eaa7..46efeee9c4afe2b5e804952717e97a610ab17a5b 100644 (file)
@@ -41,7 +41,7 @@
 
 static void
 log_call(krb5_context context,
-         const char * function,
+         const char *function,
          int stage,
          krb5_principal princ)
 {
@@ -51,14 +51,13 @@ log_call(krb5_context context,
     assert(ret == 0);
     printf("%s: stage %s principal %s\n",
            function,
-           (stage == KADM5_HOOK_STAGE_PRECOMMIT)? "precommit"
-           :"postcommit",
+           (stage == KADM5_HOOK_STAGE_PRECOMMIT) ? "precommit" : "postcommit",
            unparsed);
     if (unparsed)
         krb5_free_unparsed_name(context, unparsed);
 }
 
-static     kadm5_ret_t
+static kadm5_ret_t
 chpass(krb5_context context,
        kadm5_hook_modinfo *modinfo,
        int stage,
@@ -72,7 +71,7 @@ chpass(krb5_context context,
 }
 
 
-static     kadm5_ret_t
+static kadm5_ret_t
 create(krb5_context context,
        kadm5_hook_modinfo *modinfo,
        int stage,
index 924de2dbff9f969b9a7ad339adf29ccee68b67e0..85a592b8dcb74eba8b2339d03751e48d154cad64 100644 (file)
@@ -64,8 +64,7 @@ check-pytests::
        $(RUNPYTEST) $(srcdir)/t_general.py $(PYTESTFLAGS)
        $(RUNPYTEST) $(srcdir)/t_anonpkinit.py $(PYTESTFLAGS)
        $(RUNPYTEST) $(srcdir)/t_lockout.py $(PYTESTFLAGS)
-               $(RUNPYTEST) $(srcdir)/t_kadm5_hook.py $(PYTESTFLAGS)
-
+       $(RUNPYTEST) $(srcdir)/t_kadm5_hook.py $(PYTESTFLAGS)
 
 clean::
        $(RM) kdc.conf
index 50f9a33f3bafbbef2002832b73523b161478b4c2..0c8b19dac043c6f1fd044d080e97281c266335ea 100644 (file)
@@ -1,23 +1,22 @@
 #!/usr/bin/python
 from k5test import *
-plugin = os.path.join(buildtop, "plugins", "kadm5_hook", "test", "kadm5_hook_test.so")
+
+plugin = os.path.join(buildtop, "plugins", "kadm5_hook", "test",
+                      "kadm5_hook_test.so")
 
 hook_krb5_conf = {
     'all' : {
         "plugins" : {
-            "kadm5_hook": {
-                "module": "test:"+plugin
-                }
+            "kadm5_hook" : {
+                "module" : "test:" + plugin
             }
         }
     }
+}
 
-realm = K5Realm(krb5_conf=hook_krb5_conf, create_user=False,
-                create_host=False)
+realm = K5Realm(krb5_conf=hook_krb5_conf, create_user=False, create_host=False)
 output = realm.run_kadminl ('addprinc -randkey test')
 if "create: stage precommit" not in output:
     fail('kadm5_hook test output not found')
 
-
-
 success('kadm5_hook')