diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:49:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 12:42:05 +0000 |
commit | 2e85f9325a797977eea9dfea0a925775ddd211d9 (patch) | |
tree | 452c7f30d62fca5755f659b99e4e53c7b03afc21 /web/api/tests | |
parent | Releasing debian version 1.19.0-4. (diff) | |
download | netdata-2e85f9325a797977eea9dfea0a925775ddd211d9.tar.xz netdata-2e85f9325a797977eea9dfea0a925775ddd211d9.zip |
Merging upstream version 1.29.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | web/api/tests/valid_urls.c | 15 | ||||
-rw-r--r-- | web/api/tests/web_api.c | 15 |
2 files changed, 28 insertions, 2 deletions
diff --git a/web/api/tests/valid_urls.c b/web/api/tests/valid_urls.c index c6032a5e9..d8c261c51 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> +RRDHOST *sql_create_host_by_uuid(char *hostname) +{ + (void) hostname; + return NULL; +} + +RRDHOST *__wrap_sql_create_host_by_uuid(char *hostname) +{ + (void) hostname; + return NULL; +} + void repr(char *result, int result_size, char const *buf, int size) { int n; @@ -182,7 +194,8 @@ WEB_SERVER_MODE web_server_mode = WEB_SERVER_MODE_STATIC_THREADED; char *netdata_configured_web_dir = "UNKNOWN FIXME"; RRDHOST *localhost = NULL; -struct config netdata_config = { .sections = NULL, +struct config netdata_config = { .first_section = NULL, + .last_section = NULL, .mutex = NETDATA_MUTEX_INITIALIZER, .index = { .avl_tree = { .root = NULL, .compar = appconfig_section_compare }, .rwlock = AVL_LOCK_INITIALIZER } }; diff --git a/web/api/tests/web_api.c b/web/api/tests/web_api.c index ef9fea0cf..3cc0a790f 100644 --- a/web/api/tests/web_api.c +++ b/web/api/tests/web_api.c @@ -8,6 +8,18 @@ #include <cmocka.h> #include <stdbool.h> +RRDHOST *sql_create_host_by_uuid(char *hostname) +{ + (void) hostname; + return NULL; +} + +RRDHOST *__wrap_sql_create_host_by_uuid(char *hostname) +{ + (void) hostname; + return NULL; +} + void repr(char *result, int result_size, char const *buf, int size) { int n; @@ -184,7 +196,8 @@ WEB_SERVER_MODE web_server_mode = WEB_SERVER_MODE_STATIC_THREADED; char *netdata_configured_web_dir = "UNKNOWN FIXME"; RRDHOST *localhost = NULL; -struct config netdata_config = { .sections = NULL, +struct config netdata_config = { .first_section = NULL, + .last_section = NULL, .mutex = NETDATA_MUTEX_INITIALIZER, .index = { .avl_tree = { .root = NULL, .compar = appconfig_section_compare }, .rwlock = AVL_LOCK_INITIALIZER } }; |