Skip to content

Commit 90d548b

Browse files
committed
tests/test_authconf.c: add a dev-test for discovery of user/site nutauth configs [#3329]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 7e2a9dd commit 90d548b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_authconf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ int main(int argc, char **argv)
6767
fprintf(f, " USER = otheruser\n");
6868
fclose(f);
6969

70+
#ifdef DEBUG
71+
if (upscli_read_authconf(NULL, 0) != 1) {
72+
fprintf(stderr, "INFO: Default read_authconf failed (no user/site-provided config found)\n");
73+
}
74+
#endif
75+
7076
if (upscli_read_authconf(test_conf, 1) != 1) {
7177
fprintf(stderr, "read_authconf failed\n");
7278
return 1;

0 commit comments

Comments
 (0)