Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Indexer
Commits
f1cc808e
Commit
f1cc808e
authored
Dec 28, 2020
by
Sviatoslav Nekhaienko
Browse files
refactoring
parent
c59994fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/Config.java
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
()
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment