diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 2e20280..cc0d109 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -1847,6 +1847,7 @@ pipelines: ###################################################################### '**': - step: + name: Run unit tests image: python:3.7-alpine3.9 services: - docker @@ -1858,12 +1859,13 @@ pipelines: - export DOCKERFILE='Dockerfile' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export MAC_PRODUCT_KEY='confluence' - - py.test tests/ - - py.test shared-components/tests/ + - py.test -v tests/ + - py.test -v shared-components/tests/ - export DOCKERFILE='Dockerfile-alpine' - - py.test tests/ - - py.test shared-components/tests/ + - py.test -v tests/ + - py.test -v shared-components/tests/ - step: + name: Run integration tests services: - docker script: @@ -1872,5 +1874,5 @@ pipelines: - export CONFLUENCE_VERSION=`curl -s https://marketplace.atlassian.com/rest/2/products/key/confluence/versions/latest | jq -r .name` - docker build --build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} -t test-image . - export IS_RELEASE=false - - /usr/src/app/integration_test.sh test-image $IS_RELEASE + - /usr/src/app/post_build.sh test-image $IS_RELEASE diff --git a/bitbucket-pipelines.yml.j2 b/bitbucket-pipelines.yml.j2 index c788966..be43f43 100644 --- a/bitbucket-pipelines.yml.j2 +++ b/bitbucket-pipelines.yml.j2 @@ -137,6 +137,7 @@ pipelines: ###################################################################### '**': - step: + name: Run unit tests image: python:3.7-alpine3.9 services: - docker @@ -148,12 +149,13 @@ pipelines: - export DOCKERFILE='Dockerfile' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export MAC_PRODUCT_KEY='confluence' - - py.test tests/ - - py.test shared-components/tests/ + - py.test -v tests/ + - py.test -v shared-components/tests/ - export DOCKERFILE='Dockerfile-alpine' - - py.test tests/ - - py.test shared-components/tests/ + - py.test -v tests/ + - py.test -v shared-components/tests/ - step: + name: Run integration tests services: - docker script: @@ -162,5 +164,5 @@ pipelines: - export CONFLUENCE_VERSION=`curl -s https://marketplace.atlassian.com/rest/2/products/key/confluence/versions/latest | jq -r .name` - docker build --build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} -t test-image . - export IS_RELEASE=false - - /usr/src/app/integration_test.sh test-image $IS_RELEASE + - /usr/src/app/post_build.sh test-image $IS_RELEASE diff --git a/tests/test_image.py b/tests/test_image.py index 2333b3e..3d515b3 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -330,19 +330,6 @@ def test_non_root_user(docker_cli, image): _jvm = wait_for_proc(container, get_bootstrap_proc(container)) -def test_jvm_support_recommended_args_order(docker_cli, image): - ENABLE_PRINTGCDETAILS = '-XX:+PrintGCDetails' - DISABLE_PRINTGCDETAILS = '-XX:-PrintGCDetails' - environment = { - 'JVM_SUPPORT_RECOMMENDED_ARGS': ENABLE_PRINTGCDETAILS, - } - container = run_image(docker_cli, image, environment=environment) - _jvm = wait_for_proc(container, get_bootstrap_proc(container)) - - procs_list = get_procs(container) - jvm = [proc for proc in procs_list if get_bootstrap_proc(container) in proc][0] - assert jvm.index(ENABLE_PRINTGCDETAILS) > jvm.index(DISABLE_PRINTGCDETAILS) - def test_jvm_fallback_fonts(docker_cli, image): container = run_image(docker_cli, image) _jvm = wait_for_proc(container, get_bootstrap_proc(container))