Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 977 Bytes

File metadata and controls

31 lines (22 loc) · 977 Bytes

nextcloudpiTestcontainer

a simple docker compose stack to execute the ncp test

Prepare

enable ssh access for root

By default, SSH access is disabled for the root user. However, it is required for testing. We are temporarily enabling this feature on the Nextcloud instance. This should not be done on production systems and should be disabled again once testing is complete.

sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config

systemctl restart ssh

disable ssh access after tests

sed -i 's/#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config

systemctl restart ssh

Usage

  1. copy .env_example / create .env and set variables in .env (optional)
  2. start container
  3. run tests inside the container

start the cointainer

docker compose build test-runner docker compose run --rm test-runner bash

run system_tests

python3 system_tests.py root@

run nextcloud API-Tests

python3 nextcloud_tests_api.py --no-check-cert