Skip to content

Commit

Permalink
test: feature in a selenium_download volume
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Jan 28, 2025
1 parent 7cc2657 commit 6b41484
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:

9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
1 change: 1 addition & 0 deletions spec/support/constants/test_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b41484

Please sign in to comment.