WIP: hairball, but: Failed: 6. Skipped: 0. Passed: 13
This commit is contained in:
parent
3cf18817df
commit
f45dc7829e
3 changed files with 6 additions and 4 deletions
|
@ -147,7 +147,7 @@ message Mpb_AuthReq {
|
|||
}
|
||||
|
||||
message Mpb_AuthResp {
|
||||
required uint32 code = 1;
|
||||
required int32 code = 1;
|
||||
// TODO: not implemented yet
|
||||
}
|
||||
|
||||
|
|
|
@ -334,6 +334,8 @@ io:format(user, "LINE ~s ~p\n", [?MODULE, ?LINE]),
|
|||
|
||||
do_pb_request3({low_echo, _BogusEpochID, Msg}, S) ->
|
||||
{Msg, S};
|
||||
do_pb_request3({low_auth, _BogusEpochID, _User, _Pass}, S) ->
|
||||
{-6, S};
|
||||
do_pb_request3({low_append_chunk, _EpochID, PKey, Prefix, Chunk, CSum_tag,
|
||||
CSum, ChunkExtra}, S) ->
|
||||
{do_pb_server_append_chunk(PKey, Prefix, Chunk, CSum_tag, CSum,
|
||||
|
|
|
@ -411,9 +411,9 @@ to_pb_response(ReqID, {low_echo, _BogusEpochID, _Msg}, Resp) ->
|
|||
req_id=ReqID,
|
||||
echo=#mpb_echoresp{message=Resp}};
|
||||
to_pb_response(ReqID, {low_auth, _, _, _}, Resp) ->
|
||||
#mpb_ll_response{
|
||||
req_id=ReqID,
|
||||
auth=#mpb_authresp{code=Resp}};
|
||||
#mpb_ll_response{req_id=ReqID,
|
||||
generic=#mpb_errorresp{code=1,
|
||||
msg="AUTH not implemented"}};
|
||||
to_pb_response(ReqID, {low_append_chunk, _EID, _PKey, _Pfx, _Ch, _CST, _CS, _CE}, Resp)->
|
||||
case Resp of
|
||||
{ok, {Offset, Size, File}} ->
|
||||
|
|
Loading…
Reference in a new issue