Skip to content

Commit c82a584

Browse files
authored
Merge 100d881 into 5e926e1
2 parents 5e926e1 + 100d881 commit c82a584

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

ydb/core/external_sources/hive_metastore/ut/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TString Exec(const TString& cmd) {
2525

2626
TString GetExternalPort(const TString& service, const TString& port) {
2727
auto dockerComposeBin = BinaryPath("library/recipes/docker_compose/bin/docker-compose");
28-
auto composeFileYml = ArcadiaSourceRoot() + "/ydb/core/external_sources/hive_metastore/ut/docker-compose.yml";
28+
auto composeFileYml = ArcadiaFromCurrentLocation(__SOURCE_FILE__, "docker-compose.yml");
2929
auto result = StringSplitter(Exec(dockerComposeBin + " -f " + composeFileYml + " port " + service + " " + port)).Split(':').ToList<TString>();
3030
return result ? Strip(result.back()) : TString{};
3131
}

ydb/core/external_sources/s3/ut/s3_aws_credentials_ut.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
#include <ydb/core/kqp/federated_query/kqp_federated_query_helpers.h>
12
#include <ydb/core/kqp/ut/common/kqp_ut_common.h>
23
#include <ydb/core/kqp/ut/federated_query/common/common.h>
3-
#include <ydb/core/kqp/federated_query/kqp_federated_query_helpers.h>
4+
#include <ydb/library/yql/providers/s3/actors/yql_s3_actors_factory_impl.h>
45
#include <ydb/library/yql/utils/log/log.h>
56
#include <ydb/public/sdk/cpp/client/draft/ydb_scripting.h>
67
#include <ydb/public/sdk/cpp/client/ydb_operation/operation.h>
78
#include <ydb/public/sdk/cpp/client/ydb_proto/accessor.h>
8-
#include <ydb/public/sdk/cpp/client/ydb_types/operation/operation.h>
99
#include <ydb/public/sdk/cpp/client/ydb_table/table.h>
10+
#include <ydb/public/sdk/cpp/client/ydb_types/operation/operation.h>
1011

1112
#include <library/cpp/testing/unittest/registar.h>
1213

@@ -38,15 +39,16 @@ TString Exec(const TString& cmd) {
3839

3940
TString GetExternalPort(const TString& service, const TString& port) {
4041
auto dockerComposeBin = BinaryPath("library/recipes/docker_compose/bin/docker-compose");
41-
auto composeFileYml = ArcadiaSourceRoot() + "/ydb/core/external_sources/s3/ut/docker-compose.yml";
42+
auto composeFileYml = ArcadiaFromCurrentLocation(__SOURCE_FILE__, "docker-compose.yml");
4243
auto result = StringSplitter(Exec(dockerComposeBin + " -f " + composeFileYml + " port " + service + " " + port)).Split(':').ToList<TString>();
4344
return result ? Strip(result.back()) : TString{};
4445
}
4546

4647
Y_UNIT_TEST_SUITE(S3AwsCredentials) {
4748
Y_UNIT_TEST(ExecuteScriptWithEqSymbol) {
4849
const TString externalDataSourceName = "/Root/external_data_source";
49-
auto kikimr = MakeKikimrRunner(true);
50+
auto s3ActorsFactory = NYql::NDq::CreateS3ActorsFactory();
51+
auto kikimr = MakeKikimrRunner(true, nullptr, nullptr, std::nullopt, s3ActorsFactory);
5052
auto tc = kikimr->GetTableClient();
5153
auto session = tc.CreateSession().GetValueSync().GetSession();
5254
const TString query = fmt::format(R"(

ydb/library/yql/providers/s3/compressors/ut/decompressor_ut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace NYql::NCompressors {
99

1010
namespace {
1111
TString GetResourcePath(const TString& path) {
12-
return ArcadiaSourceRoot() + "/ydb/library/yql/providers/s3/compressors/ut/test_compression_data/" + path;
12+
return ArcadiaFromCurrentLocation(__SOURCE_FILE__, "test_compression_data/" + path);
1313
}
1414
}
1515

0 commit comments

Comments
 (0)