Skip to content

Commit b1d8384

Browse files
authored
Possibility to read the local catalogs added. (#1245)
This allows developers to be able to visually inspect locally compiled test catalog of a small region during feature development or bugfixing. Resolves: HARP-16305 Signed-off-by: Ostap <ostapkl@gmail.com>
1 parent 0f7e907 commit b1d8384

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

olp-cpp-sdk-core/src/client/DefaultLookupEndpointProvider.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ std::string DefaultLookupEndpointProvider::operator()(
2727
constexpr struct {
2828
const char* partition;
2929
const char* url;
30-
} kDatastoreServerUrl[4] = {
30+
} kDatastoreServerUrl[5] = {
3131
{"here", "https://api-lookup.data.api.platform.here.com/lookup/v1"},
3232
{"here-dev",
3333
"https://api-lookup.data.api.platform.sit.here.com/lookup/v1"},
3434
{"here-cn", "https://api-lookup.data.api.platform.hereolp.cn/lookup/v1"},
3535
{"here-cn-dev",
36-
"https://api-lookup.data.api.platform.in.hereolp.cn/lookup/v1"}};
36+
"https://api-lookup.data.api.platform.in.hereolp.cn/lookup/v1"},
37+
{"local", "http://localhost:31005/lookup/v1"}};
3738

3839
for (const auto& it : kDatastoreServerUrl) {
3940
if (partition == it.partition)

olp-cpp-sdk-core/tests/client/DefaultLookupEndpointProviderTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ TEST(DefaultLookupEndpointProviderTest, ParenthesisOperator) {
3333
"https://api-lookup.data.api.platform.sit.here.com/lookup/v1"},
3434
{"here-cn", "https://api-lookup.data.api.platform.hereolp.cn/lookup/v1"},
3535
{"here-cn-dev",
36-
"https://api-lookup.data.api.platform.in.hereolp.cn/lookup/v1"}};
36+
"https://api-lookup.data.api.platform.in.hereolp.cn/lookup/v1"},
37+
{"local", "http://localhost:31005/lookup/v1"}};
3738

3839
auto provider = client::DefaultLookupEndpointProvider();
3940

0 commit comments

Comments
 (0)