From 6b414846a73816af168c7f7934b25bdc2d9da606 Mon Sep 17 00:00:00 2001 From: zhouyu Date: Tue, 28 Jan 2025 11:47:33 -0800 Subject: [PATCH] test: feature in a selenium_download volume --- docker-compose.ci.yml | 7 ++++--- docker-compose.yml | 9 +++++---- spec/support/constants/test_constants.rb | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml index c3a07c3..eabcfc5 100644 --- a/docker-compose.ci.yml +++ b/docker-compose.ci.yml @@ -7,10 +7,9 @@ services: volumes: !reset volumes: - artifacts:/opt/app/artifacts + - selenium_downloads:/home/seluser/Downloads selenium: - depends_on: - - app image: selenium/standalone-chrome:latest ports: - 4444:4444 @@ -23,7 +22,9 @@ services: shm_size: 2g volumes: - artifacts:/opt/app/artifacts - # - ./tmp/selenium_downloads:/home/seluser/Downloads + - selenium_downloads:/home/seluser/Downloads volumes: artifacts: + selenium_downloads: + diff --git a/docker-compose.yml b/docker-compose.yml index ced99d4..117ab41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: - SOLR_URL=http://solr:8983/solr/geodata-test volumes: - ./:/opt/app:delegated - - downloads:/home/seluser/Downloads + - selenium_downloads:/home/seluser/Downloads # - artifacts:/opt/app/artifacts db: @@ -52,9 +52,10 @@ services: - selenium.test shm_size: 2g volumes: - - downloads:/home/seluser/Downloads - # - ./tmp/selenium_downloads:/home/seluser/Downloads + - selenium_downloads:/home/seluser/Downloads + # - artifacts:/opt/app/artifacts + # - artifacts:/home/seluser/Downloads volumes: artifacts: - downloads: + selenium_downloads: diff --git a/spec/support/constants/test_constants.rb b/spec/support/constants/test_constants.rb index 9c159b8..84a8ce3 100644 --- a/spec/support/constants/test_constants.rb +++ b/spec/support/constants/test_constants.rb @@ -2,6 +2,7 @@ module CommonHelpers EXPORT_TMP_PATH = '/opt/app/tmp/cache/downloads'.freeze # DOWNLOAD_TMP_PATH = '/opt/app/tmp/selenium_downloads'.freeze DOWNLOAD_TMP_PATH = '/home/seluser/Downloads'.freeze + # DOWNLOAD_TMP_PATH = '/opt/app/artifacts'.freeze PUBLIC_RECORD_ID = 'berkeley-s7038h'.freeze RESTRICTED_RECORD_ID = 'berkeley-s7b12n'.freeze end