Problem/Motivation
To work with the module, it requires having a DAM account. This makes sense for folks doing active development, but makes it difficult if someone is helping review an issue or providing some basic feedback.
Proposed resolution
We have the acquia_dam_test module which provides mocked API responses. This has enabled outside contributors to review.
There are a lot of manual setup steps:
# requires `$settings['extension_discovery_scan_tests'] = TRUE;` in settings
drush en acquia_dam_test
drush config:set acquia_dam.settings domain laser.widencollective.com
drush state:set acquia_dam_token ABC123
drush eval "\Drupal::service('acquia_dam.authentication_service')->setUserData(1, ['acquia_dam_token' => 'ACB123']);"
Then importing media via Media Library.
The acquia_dam_test module should provide a Drush command to set this up and import the known fixtured media
- Set the DAM domain, mocked access code
- Set access info for all users (easier than prompt)
- Import the known mocked asset data
Comments
Comment #3
rajeshreeputraRequesting review.
Comment #4
rohan-sinha commentedlgtm.
Comment #6
rajeshreeputraMR merged!