Update Caddyfile for integration tests
This commit is contained in:
parent
4c6fb83793
commit
925254983e
@ -1,5 +1,5 @@
|
||||
localhost:443 {
|
||||
proxy / localhost:7878 {
|
||||
proxy / integration:7878 {
|
||||
transparent
|
||||
}
|
||||
tls self_signed
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
// This Docker image contains everything we need to build Plume.
|
||||
// Its Dockerfile can be found at https://git.joinplu.me/plume/buildenv
|
||||
local plumeEnv = "plumeorg/plume-buildenv:v0.0.9";
|
||||
local plumeEnv = "plumeorg/plume-buildenv:v0.2.0";
|
||||
|
||||
// Common cache config
|
||||
local cacheConfig(name, extra) = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user