Skip to content

Commit 1136c58

Browse files
authored
Merge 7061aca into 979fcef
2 parents 979fcef + 7061aca commit 1136c58

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

ydb/core/http_proxy/ut/http_proxy_ut.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ Y_UNIT_TEST_SUITE(TestHttpProxy) {
16451645
UNIT_ASSERT_VALUES_EQUAL(res.HttpCode, 200);
16461646
UNIT_ASSERT(NJson::ReadJsonTree(res.Body, &json));
16471647
UNIT_ASSERT(!GetByPath<TString>(json, "SequenceNumber").empty());
1648-
UNIT_ASSERT(!GetByPath<TString>(json, "Md5OfMessageBody").empty());
1648+
UNIT_ASSERT(!GetByPath<TString>(json, "MD5OfMessageBody").empty());
16491649
UNIT_ASSERT(!GetByPath<TString>(json, "MessageId").empty());
16501650
}
16511651

@@ -1666,7 +1666,7 @@ Y_UNIT_TEST_SUITE(TestHttpProxy) {
16661666

16671667
res = SendHttpRequest("/Root", "AmazonSQS.SendMessage", std::move(sendMessageReq), FormAuthorizationStr("ru-central1"));
16681668
UNIT_ASSERT(NJson::ReadJsonTree(res.Body, &json));
1669-
UNIT_ASSERT(!GetByPath<TString>(json, "Md5OfMessageBody").empty());
1669+
UNIT_ASSERT(!GetByPath<TString>(json, "MD5OfMessageBody").empty());
16701670
UNIT_ASSERT_VALUES_EQUAL(res.HttpCode, 200);
16711671

16721672
for (int i = 0; i < 20; ++i) {
@@ -1911,8 +1911,8 @@ Y_UNIT_TEST_SUITE(TestHttpProxy) {
19111911
UNIT_ASSERT(json["Successful"].GetArray().size() == 2);
19121912
auto succesful0 = json["Successful"][0];
19131913
UNIT_ASSERT(succesful0["Id"] == "Id-0");
1914-
UNIT_ASSERT(!GetByPath<TString>(succesful0, "Md5OfMessageAttributes").empty());
1915-
UNIT_ASSERT(!GetByPath<TString>(succesful0, "Md5OfMessageBody").empty());
1914+
UNIT_ASSERT(!GetByPath<TString>(succesful0, "MD5OfMessageAttributes").empty());
1915+
UNIT_ASSERT(!GetByPath<TString>(succesful0, "MD5OfMessageBody").empty());
19161916
UNIT_ASSERT(!GetByPath<TString>(succesful0, "MessageId").empty());
19171917
}
19181918

ydb/public/api/protos/draft/ymq.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ message GetQueueAttributesResult {
128128
message GetQueueUrlRequest {
129129
Ydb.Operations.OperationParams operation_params = 1;
130130
string queue_name = 2;
131-
optional string queue_owner_aws_account_id = 3;
131+
optional string queue_owner_a_w_s_account_id = 3;
132132
}
133133

134134
message GetQueueUrlResponse {
@@ -194,8 +194,8 @@ message ReceiveMessageResponse {
194194
message Message {
195195
map<string, string> attributes = 1;
196196
string body = 2;
197-
string md5_of_body = 3;
198-
string md5_of_message_attributes = 4;
197+
string m_d_5_of_body = 3;
198+
string m_d_5_of_message_attributes = 4;
199199
map<string, MessageAttribute> message_attributes = 5;
200200
string message_id = 6;
201201
string receipt_handle = 7;
@@ -221,9 +221,9 @@ message SendMessageResponse {
221221
}
222222

223223
message SendMessageResult {
224-
string md5_of_message_attributes = 1;
225-
string md5_of_message_body= 2;
226-
string md5_of_message_system_attributes= 3;
224+
string m_d_5_of_message_attributes = 1;
225+
string m_d_5_of_message_body= 2;
226+
string m_d_5_of_message_system_attributes= 3;
227227
string message_id = 4;
228228
string sequence_number = 5;
229229
}
@@ -248,10 +248,10 @@ message SendMessageBatchRequestEntry {
248248

249249
message SendMessageBatchResultEntry {
250250
string id = 1;
251-
string md5_of_message_body = 2;
251+
string m_d_5_of_message_body = 2;
252252
string message_id = 3;
253-
string md5_of_message_attributes = 4;
254-
string md5_of_message_system_attributes = 5;
253+
string m_d_5_of_message_attributes = 4;
254+
string m_d_5_of_message_system_attributes = 5;
255255
string sequence_number = 6;
256256
}
257257

ydb/services/ymq/ymq_proxy.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ namespace NKikimr::NYmq::V1 {
259259

260260
Ydb::Ymq::V1::SendMessageResult GetResult(const NKikimrClient::TSqsResponse& resp) override {
261261
Ydb::Ymq::V1::SendMessageResult result;
262-
result.set_md5_of_message_attributes(GetResponse(resp).GetMD5OfMessageAttributes());
263-
result.set_md5_of_message_body(GetResponse(resp).GetMD5OfMessageBody());
262+
result.set_m_d_5_of_message_attributes(GetResponse(resp).GetMD5OfMessageAttributes());
263+
result.set_m_d_5_of_message_body(GetResponse(resp).GetMD5OfMessageBody());
264264
result.set_message_id(GetResponse(resp).GetMessageId());
265265
result.set_sequence_number(std::to_string(GetResponse(resp).GetSequenceNumber()));
266266
return result;
@@ -347,8 +347,8 @@ namespace NKikimr::NYmq::V1 {
347347
}
348348

349349
dstMessage.set_body(srcMessage.GetData());
350-
dstMessage.set_md5_of_body(srcMessage.GetMD5OfMessageBody());
351-
dstMessage.set_md5_of_message_attributes(srcMessage.GetMD5OfMessageAttributes());
350+
dstMessage.set_m_d_5_of_body(srcMessage.GetMD5OfMessageBody());
351+
dstMessage.set_m_d_5_of_message_attributes(srcMessage.GetMD5OfMessageAttributes());
352352

353353
for (const auto& srcAttribute: srcMessage.GetMessageAttributes()) {
354354
Ydb::Ymq::V1::MessageAttribute dstAttribute;
@@ -819,8 +819,8 @@ namespace NKikimr::NYmq::V1 {
819819
} else {
820820
auto currentSuccessful = result.Addsuccessful();
821821
currentSuccessful->Setid(entry.GetId());
822-
currentSuccessful->Setmd5_of_message_attributes(entry.GetMD5OfMessageAttributes());
823-
currentSuccessful->Setmd5_of_message_body(entry.GetMD5OfMessageBody());
822+
currentSuccessful->set_m_d_5_of_message_attributes(entry.GetMD5OfMessageAttributes());
823+
currentSuccessful->set_m_d_5_of_message_body(entry.GetMD5OfMessageBody());
824824
currentSuccessful->Setmessage_id(entry.GetMessageId());
825825
currentSuccessful->Setsequence_number(std::to_string(entry.GetSequenceNumber()));
826826
}

0 commit comments

Comments
 (0)