Unable to run acceptance test

Steps to reproduce

  1. Remove current configuration (if exists)
    sudo rm -rf $owncloud_installation_path/data/*
    sudo rm -rf $owncloud_installation_path/config/*

  2. Drop existing DB user and database (if any)
    mysql -u root -e “DROP DATABASE owncloud;
    DROP USER ‘oc_admin’;
    DROP USER ‘oc_admin’@‘localhost’;
    DROP USER ‘owncloud’@‘localhost’;

  3. Create new database, DB user and grants
    mysql -u root -e “CREATE DATABASE IF NOT EXISTS owncloud;
    CREATE USER ‘owncloud’@‘localhost’ IDENTIFIED BY ‘owncloud’;
    CREATE USER ‘’@‘localhost’ IDENTIFIED BY ‘’;
    GRANT ALL PRIVILEGES ON owncloud.* TO ‘’@‘localhost’;
    GRANT ALL PRIVILEGES ON owncloud.* TO ‘owncloud’@‘localhost’;
    GRANT ALL PRIVILEGES ON mysql.* TO ‘owncloud’@‘localhost’;

  4. Configure new DB
    occ maintenance:install
    –database “mysql”
    –database-name “owncloud”
    –database-user “owncloud”
    –database-pass “owncloud”
    –admin-user “admin”
    –admin-pass “admin”

  5. Set DEBUG env variables

  6. Run a test case
    sudo –u www-data make test-acceptance-api
    SKELETON_DIR=apps/testing/data/apiSkeleton BEHAT_FEATURE=tests/acceptance/features/apiComments/comments.feature SHOW_OC_LOGS=true

Note: Other features were also tested and they resulted in similar errors.

Expected behaviour

Acceptance test cases should run successfully.

Actual behaviour

Unable to execute acceptance test cases to completion.

Getting response code 404 with message “The requested resource xxxxx was not found on this server.” for requests sent to http:/ / localhost:8180/xxxxx.

Server configuration

Operating system: Ubuntu 20.04.2 LTS

Web server: Apache/2.4.41

Database: MariaDB 10.3.25

PHP version: PHP 7.4.3

ownCloud version: (see ownCloud admin page) 10.7.0

Updated from an older ownCloud or fresh install: New install

Where did you install ownCloud from: Repository: https:/ / github. com/ owncloud/ core.git
branch: release-10.7.0

The content of config/config.php:

List of activated apps:
root@***:/var/www/html/core/tests# occ app:list

  • comments:
    • Version: 0.3.0
    • Path: /var/www/html/core/apps/comments
  • dav:
    • Version: 0.6.0
    • Path: /var/www/html/core/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/html/core/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/html/core/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /var/www/html/core/apps/files
  • files_external:
    • Version: 0.7.1
    • Path: /var/www/html/core/apps/files_external
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/html/core/apps/files_sharing
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/html/core/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/html/core/apps/files_versions
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/html/core/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/html/core/apps/systemtags
  • testing:
    • Version: 0.1.0
    • Path: /var/www/html/core/apps/testing
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/html/core/apps/updatenotification

Are you using external storage, if yes which one: No

Are you using encryption: No

Are you using an external user-backend, if yes which one: No


Console log

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.