Skip to content

MagelanM/nextcloudpiTestcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a simple docker compose stack to execute the ncp test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors