summaryrefslogtreecommitdiffstats
path: root/collectors/cgroups.plugin/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:57 +0000
commit00151562145df50cc65e9902d52d5fa77f89fe50 (patch)
tree2737716802f6725a5074d606ec8fe5422c58a83c /collectors/cgroups.plugin/tests
parentReleasing debian version 1.34.1-1. (diff)
downloadnetdata-00151562145df50cc65e9902d52d5fa77f89fe50.tar.xz
netdata-00151562145df50cc65e9902d52d5fa77f89fe50.zip
Merging upstream version 1.35.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/cgroups.plugin/tests')
-rw-r--r--collectors/cgroups.plugin/tests/test_cgroups_plugin.c8
-rw-r--r--collectors/cgroups.plugin/tests/test_doubles.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/collectors/cgroups.plugin/tests/test_cgroups_plugin.c b/collectors/cgroups.plugin/tests/test_cgroups_plugin.c
index be8ea2c48..057ac9280 100644
--- a/collectors/cgroups.plugin/tests/test_cgroups_plugin.c
+++ b/collectors/cgroups.plugin/tests/test_cgroups_plugin.c
@@ -8,7 +8,7 @@ int netdata_zero_metrics_enabled = 1;
struct config netdata_config;
char *netdata_configured_primary_plugins_dir = NULL;
-static void test_parse_k8s_data(void **state)
+static void test_k8s_parse_resolved_name(void **state)
{
UNUSED(state);
@@ -89,7 +89,7 @@ static void test_parse_k8s_data(void **state)
expect_value(__wrap_add_label_to_list, label_source, LABEL_SOURCE_KUBERNETES);
}
- char *name = parse_k8s_data(&labels, data);
+ char *name = k8s_parse_resolved_name(&labels, data);
assert_string_equal(name, test_data[i].name);
assert_ptr_equal(labels, 0xff);
@@ -101,10 +101,10 @@ static void test_parse_k8s_data(void **state)
int main(void)
{
const struct CMUnitTest tests[] = {
- cmocka_unit_test(test_parse_k8s_data),
+ cmocka_unit_test(test_k8s_parse_resolved_name),
};
- int test_res = cmocka_run_group_tests_name("test_parse_k8s_data", tests, NULL, NULL);
+ int test_res = cmocka_run_group_tests_name("test_k8s_parse_resolved_name", tests, NULL, NULL);
return test_res;
}
diff --git a/collectors/cgroups.plugin/tests/test_doubles.c b/collectors/cgroups.plugin/tests/test_doubles.c
index 5572fb2f5..9cefa6c98 100644
--- a/collectors/cgroups.plugin/tests/test_doubles.c
+++ b/collectors/cgroups.plugin/tests/test_doubles.c
@@ -142,9 +142,9 @@ void rrdset_done(RRDSET *st)
UNUSED(st);
}
-void update_pressure_chart(struct pressure_chart *chart)
+void update_pressure_charts(struct pressure_charts *charts)
{
- UNUSED(chart);
+ UNUSED(charts);
}
void netdev_rename_device_add(