Skip to content

Commit

Permalink
revert merge to ut
Browse files Browse the repository at this point in the history
  • Loading branch information
adameat committed Jan 17, 2025
1 parent 97dd2aa commit 9377dcd
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions ydb/core/viewer/viewer_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1611,21 +1611,6 @@ Y_UNIT_TEST_SUITE(Viewer) {
size_t AuthorizeTicketFails = 0;
};

IActor* CreateFakeTicketParser(const TTicketParserSettings&) {
return new TFakeTicketParserActor();
}

void GrantConnect(TClient& client) {
client.CreateUser("/Root", "username", "password");
client.GrantConnect("username");

const auto alterAttrsStatus = client.AlterUserAttributes("/", "Root", {
{ "folder_id", "test_folder_id" },
{ "database_id", "test_database_id" },
});
UNIT_ASSERT_EQUAL(alterAttrsStatus, NMsgBusProxy::MSTATUS_OK);
}

TString PostQuery(TKeepAliveHttpClient& httpClient, TString query, TString action = "", TString transactionMode = "") {
TStringStream requestBody;
requestBody
Expand Down Expand Up @@ -1663,8 +1648,6 @@ Y_UNIT_TEST_SUITE(Viewer) {
TClient client(settings);
client.InitRootScheme();

GrantConnect(client);

TTestActorRuntime& runtime = *server.GetRuntime();
runtime.SetLogPriority(NKikimrServices::TICKET_PARSER, NLog::PRI_TRACE);

Expand Down Expand Up @@ -1698,8 +1681,6 @@ Y_UNIT_TEST_SUITE(Viewer) {
TClient client(settings);
client.InitRootScheme();

GrantConnect(client);

TTestActorRuntime& runtime = *server.GetRuntime();
runtime.SetLogPriority(NKikimrServices::TICKET_PARSER, NLog::PRI_TRACE);

Expand Down Expand Up @@ -1794,7 +1775,11 @@ Y_UNIT_TEST_SUITE(Viewer) {
server.EnableGRpc(grpcPort);
TClient client(settings);

GrantConnect(client);
const auto alterAttrsStatus = client.AlterUserAttributes("/", "Root", {
{ "folder_id", "test_folder_id" },
{ "database_id", "test_database_id" },
});
UNIT_ASSERT_EQUAL(alterAttrsStatus, NMsgBusProxy::MSTATUS_OK);

TTestActorRuntime& runtime = *server.GetRuntime();
runtime.SetLogPriority(NKikimrServices::GRPC_SERVER, NLog::PRI_TRACE);
Expand Down

0 comments on commit 9377dcd

Please sign in to comment.