Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-modx

A MODX Revolution test fixture for DDEV's automated modx project-type tests (TestDdevFullSiteSetup in pkg/ddevapp/ddevapp_test.go).

  • MODX version: Revolution 3.2.1-pl (traditional distribution, with core/vendor/ committed)
  • Docroot: project root ("")
  • Default admin login: admin / Admin123!Admin

The ddev-automated-test branch is the default branch. It holds the full MODX codebase (including Composer dependencies in core/vendor/) but not the environment-specific pieces:

  • core/config/config.inc.php is not committed — DDEV generates a #ddev-generated version on ddev start.
  • core/cache/ is emptied.
  • .ddev/ is not committed.
  • config.core.php (root, manager/, connectors/) uses the portable distribution default (dirname(__FILE__) . '/core/'), so the codebase works at any mount path.

Using it locally

git clone -b ddev-automated-test https://github.com/ddev/test-modx
cd test-modx
ddev config --project-type=modx
ddev start
ddev launch          # front end
ddev launch /manager/ # backend (admin / Admin123!Admin)

The database and uploaded-files fixtures are attached to each tagged release:

  • db.sql.tar.gz — a MariaDB dump of the installed site (imported with ddev import-db)
  • files.tgz — the contents of assets/ including uploads/ddev.png (imported with ddev import-files)

Regenerating the fixtures

The database and files artifacts are rebuilt with ./build-fixtures.sh, which downloads the MODX traditional distribution, installs it non-interactively against a throwaway MariaDB container using MODX's CLI installer, and exports the db.sql.tar.gz and files.tgz artifacts into .tarballs/. See that script for the exact commands.

Publishing a new release

  1. Update the code on the ddev-automated-test branch and commit.
  2. Run ./build-fixtures.sh to regenerate .tarballs/db.sql.tar.gz and .tarballs/files.tgz.
  3. Tag the commit (for example v3.2.1) and create a GitHub release.
  4. Attach db.sql.tar.gz and files.tgz to the release.
  5. Point the TestPkgModx entry in DDEV's pkg/ddevapp/ddevapp_test.go at the new tag.

About

MODX Revolution DDEV automated-test fixture

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages