summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-09-30 17:16:46 +0000
committerGreg Hudson <ghudson@mit.edu>2010-09-30 17:16:46 +0000
commit3e668d20274d528775f7d9c10caff946c10760e2 (patch)
tree2884831b750d410751425573f377030cf539366e /src
parenta3141561d86b73cee18fb1874aff0f662a8c378c (diff)
downloadkrb5-3e668d20274d528775f7d9c10caff946c10760e2.tar.gz
krb5-3e668d20274d528775f7d9c10caff946c10760e2.tar.xz
krb5-3e668d20274d528775f7d9c10caff946c10760e2.zip
Whitespace
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24393 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/plugins/kadm5_hook/test/main.c9
-rw-r--r--src/tests/Makefile.in3
-rw-r--r--src/tests/t_kadm5_hook.py15
3 files changed, 12 insertions, 15 deletions
diff --git a/src/plugins/kadm5_hook/test/main.c b/src/plugins/kadm5_hook/test/main.c
index e09e3c1de3..46efeee9c4 100644
--- a/src/plugins/kadm5_hook/test/main.c
+++ b/src/plugins/kadm5_hook/test/main.c
@@ -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,
diff --git a/src/tests/Makefile.in b/src/tests/Makefile.in
index 924de2dbff..85a592b8dc 100644
--- a/src/tests/Makefile.in
+++ b/src/tests/Makefile.in
@@ -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
diff --git a/src/tests/t_kadm5_hook.py b/src/tests/t_kadm5_hook.py
index 50f9a33f3b..0c8b19dac0 100644
--- a/src/tests/t_kadm5_hook.py
+++ b/src/tests/t_kadm5_hook.py
@@ -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')