Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
UgnineSirdis committed Jan 17, 2025
1 parent c2bcb40 commit 557f88b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions ydb/core/blobstorage/nodewarden/blobstorage_node_warden_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ void SetupServices(TTestActorRuntime &runtime, TString extraPath, TIntrusivePtr<

if (nodeIndex == 0) {
nodeWardenConfig->SectorMaps[extraPath] = extraSectorMap;
ObtainTenantKey(&nodeWardenConfig->TenantKey, app.Keys[0]);
ObtainStaticKey(&nodeWardenConfig->StaticKey);
ObtainTenantKeys(&nodeWardenConfig->TenantKeys, app.Keys[0]);
ObtainStaticKeys(&nodeWardenConfig->StaticKeys);

TString baseDir = runtime.GetTempDir();

Expand Down Expand Up @@ -852,17 +852,17 @@ Y_UNIT_TEST_SUITE(TBlobStorageWardenTest) {
keyRecord->SetId("Key");
keyRecord->SetVersion(1);

TEncryptionKey key1;
UNIT_ASSERT(ObtainTenantKey(&key1, keyConfig));
TEncryptionKeys key1;
UNIT_ASSERT(ObtainTenantKeys(&key1, keyConfig));

keyRecord->SetPin(pin2);
TEncryptionKey key2;
UNIT_ASSERT(ObtainTenantKey(&key2, keyConfig));
TEncryptionKeys key2;
UNIT_ASSERT(ObtainTenantKeys(&key2, keyConfig));

if (pin1 == pin2) {
UNIT_ASSERT(key1.Key == key2.Key);
UNIT_ASSERT(key1.GetCurrentEncryptionKey().Key == key2.GetCurrentEncryptionKey().Key);
} else {
UNIT_ASSERT(!(key1.Key == key2.Key));
UNIT_ASSERT(!(key1.GetCurrentEncryptionKey().Key == key2.GetCurrentEncryptionKey().Key));
}
}

Expand Down
4 changes: 2 additions & 2 deletions ydb/core/mind/ut_fat/blobstorage_node_warden_ut_fat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ void SetupServices(TTestActorRuntime &runtime) {
google::protobuf::TextFormat::ParseFromString(staticConfig, nodeWardenConfig->BlobStorageConfig.MutableServiceSet());

app.SetKeyForNode(keyfile, nodeIndex);
ObtainTenantKey(&nodeWardenConfig->TenantKey, app.Keys[nodeIndex]);
ObtainStaticKey(&nodeWardenConfig->StaticKey);
ObtainTenantKeys(&nodeWardenConfig->TenantKeys, app.Keys[nodeIndex]);
ObtainStaticKeys(&nodeWardenConfig->StaticKeys);

if (nodeIndex == 0) {
static TTempDir tempDir;
Expand Down

0 comments on commit 557f88b

Please sign in to comment.