312
expect_function_call(__mock_rrddim_query_is_finished);
313
will_return(__mock_rrddim_query_is_finished, 0);
314
expect_function_call(__mock_rrddim_query_next_metric);
315
- will_return(__mock_rrddim_query_next_metric, pack_storage_number(27, SN_EXISTS));
315
+ will_return(__mock_rrddim_query_next_metric, pack_storage_number(27, SN_DEFAULT_FLAGS));
316
317
expect_function_call(__mock_rrddim_query_is_finished);
318
will_return(__mock_rrddim_query_is_finished, 0);
319
expect_function_call(__mock_rrddim_query_next_metric);
320
- will_return(__mock_rrddim_query_next_metric, pack_storage_number(45, SN_EXISTS));
320
+ will_return(__mock_rrddim_query_next_metric, pack_storage_number(45, SN_DEFAULT_FLAGS));
321
322
expect_function_call(__mock_rrddim_query_is_finished);
323
will_return(__mock_rrddim_query_is_finished, 1);
431
struct engine *engine = *state;
432
433
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
434
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
434
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
435
436
RRDDIM *rd = localhost->rrdset_root->dimensions;
437
assert_int_equal(format_dimension_stored_graphite_plaintext(engine->instance_root, rd), 0);
459
struct engine *engine = *state;
460
461
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
462
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
462
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
463
464
RRDDIM *rd = localhost->rrdset_root->dimensions;
465
assert_int_equal(format_dimension_stored_json_plaintext(engine->instance_root, rd), 0);
487
struct engine *engine = *state;
488
489
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
490
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
490
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
491
492
RRDDIM *rd = localhost->rrdset_root->dimensions;
493
assert_int_equal(format_dimension_stored_opentsdb_telnet(engine->instance_root, rd), 0);
515
struct engine *engine = *state;
516
517
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
518
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
518
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
519
520
RRDDIM *rd = localhost->rrdset_root->dimensions;
521
assert_int_equal(format_dimension_stored_opentsdb_http(engine->instance_root, rd), 0);
1070
will_return(__wrap_now_realtime_sec, 2);
1071
1072
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
1073
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
1073
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
1074
1075
rrd_stats_api_v1_charts_allmetrics_prometheus_single_host(localhost, buffer, "test_server", "test_prefix", 0, 0);
1076
1087
will_return(__wrap_now_realtime_sec, 2);
1088
1089
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
1090
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
1090
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
1091
1092
rrd_stats_api_v1_charts_allmetrics_prometheus_single_host(
1093
localhost, buffer, "test_server", "test_prefix", 0, PROMETHEUS_OUTPUT_NAMES | PROMETHEUS_OUTPUT_TYPES);
1106
will_return(__wrap_now_realtime_sec, 2);
1107
1108
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
1109
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
1109
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
1110
1111
rrd_stats_api_v1_charts_allmetrics_prometheus_all_hosts(localhost, buffer, "test_server", "test_prefix", 0, 0);
1112
1265
RRDDIM *rd = localhost->rrdset_root->dimensions;
1266
1267
expect_function_call(__wrap_exporting_calculate_value_from_stored_data);
1268
- will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_EXISTS));
1268
+ will_return(__wrap_exporting_calculate_value_from_stored_data, pack_storage_number(27, SN_DEFAULT_FLAGS));
1269
1270
expect_function_call(__wrap_add_metric);
1271
expect_value(__wrap_add_metric, write_request_p, 0xff);