Ejemplo n.º 1
0
bool register_tests(test_suite *suite, node n)
{
	ELLIPTICS_TEST_CASE(test_write_order_execution, create_session(n, { 1 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_oplock, create_session(n, { 1 }, 0, 0));

	return true;
}
Ejemplo n.º 2
0
bool register_tests(test_suite *suite, node n)
{
	ELLIPTICS_TEST_CASE(test_cache_records_sizes, create_session(n, { 5 }, 0, DNET_IO_FLAGS_CACHE | DNET_IO_FLAGS_CACHE_ONLY));
	ELLIPTICS_TEST_CASE(test_cache_overflow, create_session(n, { 5 }, 0, DNET_IO_FLAGS_CACHE | DNET_IO_FLAGS_CACHE_ONLY));
	ELLIPTICS_TEST_CASE(test_cache_overflow, create_session(n, { 5 }, 0, DNET_IO_FLAGS_CACHE));

	return true;
}
Ejemplo n.º 3
0
bool register_tests(test_suite *suite, node n)
{
    ELLIPTICS_TEST_CASE(upload_application, global_data->locator_port, global_data->directory.path());
    ELLIPTICS_TEST_CASE(start_application, create_session(n, { 1 }, 0, 0), "dnet_cpp_srw_test_app");
    ELLIPTICS_TEST_CASE(init_application, create_session(n, { 1 }, 0, 0), "dnet_cpp_srw_test_app");
    ELLIPTICS_TEST_CASE(send_echo, create_session(n, { 1 }, 0, 0), "dnet_cpp_srw_test_app", "some-data");
    ELLIPTICS_TEST_CASE(send_echo, create_session(n, { 1 }, 0, 0), "dnet_cpp_srw_test_app", "some-data and long-data.. like this");

    return true;
}
Ejemplo n.º 4
0
bool register_tests(const nodes_data *setup)
{
	auto n = setup->node->get_native();

	ELLIPTICS_TEST_CASE(test_cache_timestamp, use_session(n, {5}, 0, DNET_IO_FLAGS_CACHE));
	ELLIPTICS_TEST_CASE(test_cache_records_sizes,
	                    use_session(n, {5}, 0, DNET_IO_FLAGS_CACHE | DNET_IO_FLAGS_CACHE_ONLY), setup);
	ELLIPTICS_TEST_CASE(test_cache_overflow, use_session(n, {5}, 0, DNET_IO_FLAGS_CACHE | DNET_IO_FLAGS_CACHE_ONLY),
	                    setup);
	ELLIPTICS_TEST_CASE(test_cache_overflow, use_session(n, {5}, 0, DNET_IO_FLAGS_CACHE), setup);
	ELLIPTICS_TEST_CASE(test_cache_lru_eviction,
	                    use_session(n, {5}, 0, DNET_IO_FLAGS_CACHE | DNET_IO_FLAGS_CACHE_ONLY), setup);

	return true;
}
Ejemplo n.º 5
0
bool register_tests(test_suite *suite, node n)
{
	ELLIPTICS_TEST_CASE(test_error_message, create_session(n, {2}, 0, 0), "non-existen-key", -ENOENT);
	ELLIPTICS_TEST_CASE_NOARGS(test_error_null_message);
	ELLIPTICS_TEST_CASE_NOARGS(test_data_buffer);

	return true;
}
Ejemplo n.º 6
0
bool register_tests(test_suite *suite, node n)
{
	ELLIPTICS_TEST_CASE(test_enable_at_start, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_backend_status, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend_again, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_disable_backend, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_disable_backend_again, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend_at_empty_node, create_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_direct_backend, create_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_set_backend_ids_for_disabled, create_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_set_backend_ids_for_enabled, create_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_make_backend_readonly, create_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_make_backend_writeable, create_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_change_group, create_session(n, { 0 }, 0, 0));

	return true;
}
Ejemplo n.º 7
0
bool register_tests(const nodes_data *setup)
{
	auto n = setup->node->get_native();

	ELLIPTICS_TEST_CASE(test_enable_at_start, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend, use_session(n, { 1, 2, 3 }, 0, 0), 1);
	ELLIPTICS_TEST_CASE(test_backend_status, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend_again, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_disable_backend, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_disable_backend_again, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend_at_empty_node, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_enable_backend_after_config_change, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_remove_backend, use_session(n, { 1, 2, 3 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_direct_backend, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_set_backend_ids_for_disabled, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_set_backend_ids_for_enabled, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_make_backend_readonly, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_make_backend_writeable, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_change_group, use_session(n, { 0 }, 0, 0));
	ELLIPTICS_TEST_CASE(test_check_initial_config, use_session(n, { 0 }, 0, 0));

	return true;
}
Ejemplo n.º 8
0
bool register_tests(test_suite *suite, node n)
{
	ELLIPTICS_TEST_CASE(test_backend_weights, create_session(n, { 1, 2, 3 }, 0, 0));

	return true;
}