a simple docker compose stack to execute the ncp test
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
sed -i 's/#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
systemctl restart ssh
- copy .env_example / create .env and set variables in .env (optional)
- start container
- run tests inside the container
docker compose build test-runner docker compose run --rm test-runner bash
python3 system_tests.py root@
python3 nextcloud_tests_api.py --no-check-cert