summaryrefslogtreecommitdiffstats
path: root/web/api/tests
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/tests')
-rw-r--r--web/api/tests/valid_urls.c12
-rw-r--r--web/api/tests/web_api.c11
2 files changed, 23 insertions, 0 deletions
diff --git a/web/api/tests/valid_urls.c b/web/api/tests/valid_urls.c
index 30dc29828..91cd19b09 100644
--- a/web/api/tests/valid_urls.c
+++ b/web/api/tests/valid_urls.c
@@ -8,6 +8,18 @@
#include <cmocka.h>
#include <stdbool.h>
+void free_temporary_host(RRDHOST *host)
+{
+ (void) host;
+}
+
+void *__wrap_free_temporary_host(RRDHOST *host)
+{
+ (void) host;
+ return NULL;
+}
+
+
RRDHOST *sql_create_host_by_uuid(char *hostname)
{
(void) hostname;
diff --git a/web/api/tests/web_api.c b/web/api/tests/web_api.c
index df4efdabd..fd9a86ef6 100644
--- a/web/api/tests/web_api.c
+++ b/web/api/tests/web_api.c
@@ -8,6 +8,17 @@
#include <cmocka.h>
#include <stdbool.h>
+void free_temporary_host(RRDHOST *host)
+{
+ (void) host;
+}
+
+void *__wrap_free_temporary_host(RRDHOST *host)
+{
+ (void) host;
+ return NULL;
+}
+
RRDHOST *sql_create_host_by_uuid(char *hostname)
{
(void) hostname;