Skip to content
Snippets Groups Projects
Commit 380dcea9 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #711 from totten/autoconfigure-api-key

CRM-12556 - Set admin API key for new test sites
parents 0b29be8f dc13c338
Branches
Tags
No related merge requests found
......@@ -124,6 +124,8 @@ class CiviSeleniumSettings {
var \$password = 'demo';
var \$adminUsername = '${ADMIN_USER}';
var \$adminPassword = '${ADMIN_PASS}';
var \$adminApiKey = 'apikey${ADMIN_PASS}';
var \$siteKey = '${SITE_KEY}';
var \$UFemail = 'noreply@civicrm.org';
function __construct() {
\$this->fullSandboxPath = \$this->sandboxURL . \$this->sandboxPATH;
......@@ -141,4 +143,5 @@ drush -l "${SITE_URL}" -y pm-enable civicrm
drush -l "${SITE_URL}" -y pm-enable civicrm_webtest
drush -l "${SITE_URL}" -y user-create --password=demo --mail='demo@example.com' demo
drush -l "${SITE_URL}" -y user-add-role civicrm_webtest_user demo
drush -l "${SITE_URL}" -y -u "$ADMIN_USER" civicrm-api contact.create id=user_contact_id api_key="apikey$ADMIN_PASS"
popd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment