Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Indexer
Commits
f1cc808e
Commit
f1cc808e
authored
4 years ago
by
Sviatoslav Nekhaienko
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
c59994fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!60
Indexer to read from Schema Service as well as Storage Schema
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/Config.java
+3
-2
3 additions, 2 deletions
...st-core/src/main/java/org/opengroup/osdu/util/Config.java
with
3 additions
and
2 deletions
testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/Config.java
+
3
−
2
View file @
f1cc808e
...
...
@@ -11,7 +11,7 @@ public class Config {
private
static
final
String
DEFAULT_INDEXER_HOST
=
""
;
private
static
final
String
DEFAULT_SEARCH_HOST
=
""
;
private
static
final
String
DEFAULT_STORAGE_HOST
=
""
;
private
static
final
String
DEFAULT_
SCHEMA_
HOST
=
""
;
private
static
final
String
DEFAULT_HOST
=
""
;
private
static
final
String
DEFAULT_DATA_PARTITION_ID_TENANT1
=
""
;
private
static
final
String
DEFAULT_DATA_PARTITION_ID_TENANT2
=
""
;
private
static
final
String
DEFAULT_SEARCH_INTEGRATION_TESTER
=
""
;
...
...
@@ -23,6 +23,7 @@ public class Config {
private
static
final
String
DEFAULT_ENTITLEMENTS_DOMAIN
=
""
;
private
static
final
String
SCHEMA_PATH
=
"/api/schema-service/v1"
;
public
static
int
getPort
()
{
return
Integer
.
parseInt
(
getEnvironmentVariableOrDefaultValue
(
"ELASTIC_PORT"
,
String
.
valueOf
(
PORT
)));
...
...
@@ -81,7 +82,7 @@ public class Config {
}
public
static
String
getSchemaBaseURL
()
{
return
getEnvironmentVariableOrDefaultValue
(
"HOST"
,
DEFAULT_
SCHEMA_
HOST
)
+
"/api/schema-service/v1"
;
return
getEnvironmentVariableOrDefaultValue
(
"HOST"
,
DEFAULT_HOST
)
+
SCHEMA_PATH
;
}
public
static
String
getEntitlementsDomain
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment