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:
James Valleroy 2021-01-31 09:36:49 -05:00 committed by Fioddor Superconcentrado
parent df2587e254
commit c714833d7e
No known key found for this signature in database
GPG Key ID: 6E98A18FEBF77724
2 changed files with 6 additions and 6 deletions

View File

@ -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`.

View File

@ -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