Skip to content

Commit

Permalink
test enabled resource center by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjiajie committed Dec 5, 2022
1 parent 92ebd0a commit 34aa71b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pytest

from tests.testing.constants import JAVA_OPTS
from tests.testing.docker_wrapper import DockerWrapper


Expand All @@ -44,7 +45,11 @@ def docker_setup_teardown():
)
ports = {"25333/tcp": 25333, "12345/tcp": 12345}
container = docker_wrapper.run_until_log(
log="Started StandaloneServer in", tty=True, ports=ports
log="Started StandaloneServer in",
tty=True,
ports=ports,
# FIXME: To turn on resource center by Java properties, until support local type default.
environment={"JAVA_OPTS": JAVA_OPTS},
)
assert container is not None
yield
Expand Down
7 changes: 7 additions & 0 deletions tests/testing/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@

UNIT_TEST_USER_NAME = "unittest_user"
UNIT_TEST_TENANT = "unittest_tenant"

# JAVA Side
JAVA_OPTS = "-server -Duser.timezone=UTC " \
"resource_storage_type=HDFS resource.hdfs.fs.defaultfs=file:/// " \
"resource.storage.upload.base.path=/tmp/dolphinscheduler " \
"-Xms1g -Xmx1g -Xmn512m -XX:+PrintGCDetails -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError " \
"-XX:HeapDumpPath=dump.hprof -XX:-UseContainerSupport"

0 comments on commit 34aa71b

Please sign in to comment.