Skip to content

Commit

Permalink
Reading test passwords from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Sep 26, 2024
1 parent 51f0e0f commit 060c5ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ services:
build: ./tests
networks:
- default
environment:
- GEOSHOP_DEMO_LOGIN=admin:Test1234
- EXTRACT_DEMO_LOGIN=admin:motdepasse21
depends_on:
selenium:
condition: service_healthy
Expand Down
6 changes: 4 additions & 2 deletions tests/extract_geoshop_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
FRONTEND_HOST = os.environ.get('FRONTEND_HOST', "http://frontend")

REQUEST_PROCESS_WAIT = 20 # Seconds (Selenium default time unit)
EXTRACT_DEMO_LOGIN = ("admin", "motdepasse21")
GEOSHOP_DEMO_LOGIN = ("admin", "Test1234")

# Geoshop and Extract testing credentials in the username:password format
EXTRACT_DEMO_LOGIN = tuple(os.environ.get("EXTRACT_DEMO_LOGIN").split(":"))
GEOSHOP_DEMO_LOGIN = tuple(os.environ.get("GEOSHOP_DEMO_LOGIN").split(":"))

class ExtractGeoshopSmokeTest(unittest.TestCase):

Expand Down

0 comments on commit 060c5ee

Please sign in to comment.