#include <criterion/criterion.h>#include "http-loadbalancer.h"#include "apphook.h"#include "scratch-buffers.h"#include <unistd.h>
Macros | |
| #define | NUM_TARGETS 5 |
| #define | NUM_CLIENTS 16 |
Functions | |
| Test (http_loadbalancer, construct_and_free) | |
| Test (http_loadbalancer, target_index_is_set_as_urls_are_added_to_the_array_index) | |
| Test (http_loadbalancer, number_of_clients_is_tracked_in_num_clients) | |
| Test (http_loadbalancer, choose_target_selects_the_first_operational_target) | |
| Test (http_loadbalancer, choose_target_escapes_templated_url) | |
| Test (http_loadbalancer, choose_target_balances_clients_to_targets) | |
| Test (http_loadbalancer, choose_target_tries_to_stay_affine_to_the_current_target) | |
| Test (http_loadbalancer, failed_target_is_taken_out_of_rotation) | |
| Test (http_loadbalancer, number_of_failed_targets_is_tracked_even_if_the_same_target_is_failed_multiple_times) | |
| Test (http_loadbalancer, if_all_targets_fail_the_least_recently_failed_one_is_tried) | |
| Test (http_loadbalancer, failed_servers_are_reattempted_after_recovery_time) | |
| Test (http_loadbalancer, drop_targets_resets_the_target_list) | |
| void | setup (void) |
| void | teardown (void) |
| TestSuite (http_loadbalancer,.init=setup,.fini=teardown) | |
| #define NUM_CLIENTS 16 |
| #define NUM_TARGETS 5 |
| void setup | ( | void | ) |
| void teardown | ( | void | ) |
| Test | ( | http_loadbalancer | , |
| choose_target_balances_clients_to_targets | |||
| ) |
| Test | ( | http_loadbalancer | , |
| choose_target_escapes_templated_url | |||
| ) |
| Test | ( | http_loadbalancer | , |
| choose_target_selects_the_first_operational_target | |||
| ) |
| Test | ( | http_loadbalancer | , |
| choose_target_tries_to_stay_affine_to_the_current_target | |||
| ) |
| Test | ( | http_loadbalancer | , |
| construct_and_free | |||
| ) |
| Test | ( | http_loadbalancer | , |
| drop_targets_resets_the_target_list | |||
| ) |
| Test | ( | http_loadbalancer | , |
| failed_servers_are_reattempted_after_recovery_time | |||
| ) |
| Test | ( | http_loadbalancer | , |
| failed_target_is_taken_out_of_rotation | |||
| ) |
| Test | ( | http_loadbalancer | , |
| if_all_targets_fail_the_least_recently_failed_one_is_tried | |||
| ) |
| Test | ( | http_loadbalancer | , |
| number_of_clients_is_tracked_in_num_clients | |||
| ) |
| Test | ( | http_loadbalancer | , |
| number_of_failed_targets_is_tracked_even_if_the_same_target_is_failed_multiple_times | |||
| ) |
| Test | ( | http_loadbalancer | , |
| target_index_is_set_as_urls_are_added_to_the_array_index | |||
| ) |