Update Caddyfile for integration tests
This commit is contained in:
@@ -21,4 +21,4 @@ class Browser(unittest.TestCase):
|
||||
|
||||
def get(self, url):
|
||||
# Like "selenium", integration is mapped to the container that runs the plume instance
|
||||
return self.driver.get("https://integration" + url)
|
||||
return self.driver.get("https://localhost" + url)
|
||||
|
||||
@@ -12,7 +12,7 @@ plm users new -n admin -N 'Admin' -e 'email@exemple.com' -p 'password'
|
||||
plume &
|
||||
caddy -conf /Caddyfile &
|
||||
|
||||
until curl http://localhost:7878/test/health -f; do sleep 1; done 2>/dev/null >/dev/null
|
||||
until curl http://integration:7878/test/health -f; do sleep 1; done 2>/dev/null >/dev/null
|
||||
|
||||
cd $(dirname $0)/browser_test/
|
||||
python3 -m unittest *.py
|
||||
|
||||
Reference in New Issue
Block a user