]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Fix broken unit tests v1.4.2
authorpcarana <pc.moreno2099@gmail.com>
Tue, 20 Oct 2020 23:34:14 +0000 (18:34 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 20 Oct 2020 23:34:14 +0000 (18:34 -0500)
test/impersonator.c
test/rsync_test.c
test/tal_test.c

index 3e82f904e2b49e32b4588a7c7070c08acebc01fb..96fd8a515c99044762ca87182c8453d3f312d68b 100644 (file)
@@ -49,6 +49,12 @@ reqs_errors_log_summary(void)
        /* Nothing here */
 }
 
+char const *
+db_rrdp_uris_workspace_get(void)
+{
+       return NULL;
+}
+
 char const *
 config_get_tal(void)
 {
index ff358428f01bdcba0eac7dea066c0ba927a40165..ca5b61d1a4fa52ceb6a40730cadba3d54c75d867 100644 (file)
@@ -2,6 +2,7 @@
 #include <errno.h>
 #include <stdlib.h>
 
+#include "common.c"
 #include "log.c"
 #include "impersonator.c"
 #include "str_token.c"
index ad65c7c0fc242cb7e66d66c08f6c36e2a0d1bbbb..93f39d297238a5cbee32d90092a830756be6e8d2 100644 (file)
@@ -56,6 +56,17 @@ close_thread(pthread_t thread, char const *what)
        /* Nothing to close */
 }
 
+int
+map_uri_to_local(char const *uri, char const *uri_prefix, char const *workspace,
+    char **result)
+{
+       /* These tests focus on global URIs, so set a dummy value */
+       *result = strdup("dummy");
+       if (*result == NULL)
+               return -ENOMEM;
+       return 0;
+}
+
 void
 fnstack_init(void)
 {