22 #include "reqh/ut/service_xc.h" 88 m0_xc_reqh_ut_service_init();
91 .
name =
"Reqh unit test",
93 .
xt = m0_reqhut_dummy_xc,
104 m0_xc_reqh_ut_service_fini();
213 .
ts_name =
"reqh-fop-allow-ut",
struct m0_ut_suite reqh_fop_allow_ut
struct m0_reqh_service_type * ut_stypes[]
#define M0_FOP_TYPE_INIT(ft,...)
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
static int fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
int(* fto_create)(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
struct m0_reqh_service_type ds1_service_type
M0_INTERNAL void m0_buf_init(struct m0_buf *buf, void *data, uint32_t nob)
static const struct m0_fid ut_fid
static struct m0_rpc_client_ctx cctx
void * m0_fop_data(const struct m0_fop *fop)
void m0_fop_type_fini(struct m0_fop_type *fopt)
struct m0_fop_type m0_fop_ss_fopt
static const struct m0_fom_type_ops ut_fom_type_ops
static struct m0_xcode_type ** xt[]
const struct m0_sm_conf m0_generic_conf
static struct m0_rpc_item * item
static int m0_reqhut_fop_init(void)
struct m0_fom_type ft_fom_type
static void ut_sss_req(const char *name, uint32_t cmd, int expected_rc, int expected_state)
void m0_fom_init(struct m0_fom *fom, const struct m0_fom_type *fom_type, const struct m0_fom_ops *ops, struct m0_fop *fop, struct m0_fop *reply, struct m0_reqh *reqh)
struct m0_fop_type * f_type
static const struct m0_fom_ops ut_fom_ops
int m0_fom_tick_generic(struct m0_fom *fom)
static void stop_rpc_client_and_server(void)
static struct m0_fop_type m0_reqhut_allow_fopt
struct m0_rpc_item * ri_reply
static struct m0_rpc_server_ctx sctx
int m0_rpc_post_sync(struct m0_fop *fop, struct m0_rpc_session *session, const struct m0_rpc_item_ops *ri_ops, m0_time_t deadline)
#define SERVER_ADDB_STOB_NAME
static struct m0_fop * ut_ssfop_alloc(const char *name, uint32_t cmd)
static void m0_reqhut_fop_fini(void)
static char * ut_server_argv[]
struct m0_fop_type m0_fop_generic_reply_fopt
struct m0_fop * m0_fop_reply_alloc(struct m0_fop *req, struct m0_fop_type *rept)
M0_INTERNAL void m0_ss_fop_release(struct m0_ref *ref)
struct m0_rpc_session rcx_session
static void fop_allow_test(void)
#define M0_ALLOC_PTR(ptr)
#define M0_UT_CONF_PROCESS
static void reqhut_fom_fini(struct m0_fom *fom)
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
struct m0_fop * m0_rpc_item_to_fop(const struct m0_rpc_item *item)
void(* fo_fini)(struct m0_fom *fom)
struct m0_rpc_machine rcx_rpc_machine
#define SERVER_ENDPOINT_ADDR
void m0_fom_phase_set(struct m0_fom *fom, int phase)
static enum m0_ha_obj_state expected_state
static int fom_tick(struct m0_fom *fom)
struct m0_rpc_item f_item
static size_t reqhut_find_fom_home_locality(const struct m0_fom *fom)
static void start_rpc_client_and_server(void)
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)