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 {
|
message Mpb_AuthResp {
|
||||||
required uint32 code = 1;
|
required int32 code = 1;
|
||||||
// TODO: not implemented yet
|
// 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) ->
|
do_pb_request3({low_echo, _BogusEpochID, Msg}, S) ->
|
||||||
{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,
|
do_pb_request3({low_append_chunk, _EpochID, PKey, Prefix, Chunk, CSum_tag,
|
||||||
CSum, ChunkExtra}, S) ->
|
CSum, ChunkExtra}, S) ->
|
||||||
{do_pb_server_append_chunk(PKey, Prefix, Chunk, CSum_tag, CSum,
|
{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,
|
req_id=ReqID,
|
||||||
echo=#mpb_echoresp{message=Resp}};
|
echo=#mpb_echoresp{message=Resp}};
|
||||||
to_pb_response(ReqID, {low_auth, _, _, _}, Resp) ->
|
to_pb_response(ReqID, {low_auth, _, _, _}, Resp) ->
|
||||||
#mpb_ll_response{
|
#mpb_ll_response{req_id=ReqID,
|
||||||
req_id=ReqID,
|
generic=#mpb_errorresp{code=1,
|
||||||
auth=#mpb_authresp{code=Resp}};
|
msg="AUTH not implemented"}};
|
||||||
to_pb_response(ReqID, {low_append_chunk, _EID, _PKey, _Pfx, _Ch, _CST, _CS, _CE}, Resp)->
|
to_pb_response(ReqID, {low_append_chunk, _EID, _PKey, _Pfx, _Ch, _CST, _CS, _CE}, Resp)->
|
||||||
case Resp of
|
case Resp of
|
||||||
{ok, {Offset, Size, File}} ->
|
{ok, {Offset, Size, File}} ->
|
||||||
|
|
Loading…
Reference in a new issue