mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: Update functional tests default config
- Set default SSH and Samba port for testing a container. - Set default URL for running functional tests from within container. - Update instructions. Closes: #2015. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Fioddor Superconcentrado <fioddor@gmail.com>
This commit is contained in:
parent
df2587e254
commit
c714833d7e
@ -425,10 +425,10 @@ tests will create the required user using FreedomBox's first boot process.
|
||||
|
||||
#### Running Functional Tests
|
||||
|
||||
**When inside a container/VM you will need to target the guest**
|
||||
|
||||
If you are testing a VM using NAT, and running the tests on the host,
|
||||
then you need to specify the URL and ports:
|
||||
```bash
|
||||
guest$ export FREEDOMBOX_URL=https://localhost FREEDOMBOX_SSH_PORT=22 FREEDOMBOX_SAMBA_PORT=445
|
||||
host$ export FREEDOMBOX_URL=https://localhost:4430 FREEDOMBOX_SSH_PORT=2222 FREEDOMBOX_SAMBA_PORT=4450
|
||||
```
|
||||
|
||||
You will be running `py.test-3`.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[DEFAULT]
|
||||
url = https://localhost:4430
|
||||
url = https://localhost
|
||||
username = tester
|
||||
password = testingtesting
|
||||
ssh_port = 2222
|
||||
samba_port = 4450
|
||||
ssh_port = 22
|
||||
samba_port = 445
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user