~ted/pay-service/lp1348231-account-creation

« back to all changes in this revision

Viewing changes to tests/setup-staging.sh

  • Committer: CI bot
  • Author(s): Alejandro J. Cura
  • Date: 2014-08-01 14:11:08 UTC
  • mfrom: (30.1.1 show-purchaseable-flag)
  • Revision ID: ps-jenkins@lists.canonical.com-20140801141108-s38qes04szebywqy
Enable purchases in the script to setup the staging environ. 
Approved by: Diego Sarmentero, PS Jenkins bot, Rodney Dawes

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
ACCOUNT_CREDS_URL=https://login.staging.ubuntu.com/api/v2/tokens/oauth
11
11
ADD_PAYMENT_URL=https://sc.staging.ubuntu.com/api/2.0/click/paymentmethods/add/
12
12
U1_SEARCH_BASE_URL=https://search.apps.staging.ubuntu.com/
 
13
CLICK_STORE_ENABLE_PURCHASES=1
13
14
 
14
15
echo "Setting up upstart environment variables"
15
16
 
20
21
/sbin/initctl set-env --global ACCOUNT_CREDS_URL=$ACCOUNT_CREDS_URL
21
22
/sbin/initctl set-env --global ADD_PAYMENT_URL=$ADD_PAYMENT_URL
22
23
/sbin/initctl set-env --global U1_SEARCH_BASE_URL=$U1_SEARCH_BASE_URL
 
24
/sbin/initctl set-env --global CLICK_STORE_ENABLE_PURCHASES=$CLICK_STORE_ENABLE_PURCHASES
23
25
 
24
26
echo "Setting up dbus environment variables"
25
27
 
27
29
        --dest org.freedesktop.DBus \
28
30
        --object-path / \
29
31
        --method org.freedesktop.DBus.UpdateActivationEnvironment \
30
 
        "[{'SSO_AUTH_BASE_URL', '$SSO_AUTH_BASE_URL'}, {'SSO_UONE_BASE_URL', '$SSO_UONE_BASE_URL'}, {'PAY_BASE_URL', '$PAY_BASE_URL'}, {'URL_PACKAGE_INFO', '$URL_PACKAGE_INFO'}, {'ACCOUNT_CREDS_URL', '$ACCOUNT_CREDS_URL'}, {'ADD_PAYMENT_URL', '$ADD_PAYMENT_URL'}, {'U1_SEARCH_BASE_URL', '$U1_SEARCH_BASE_URL'}]"
 
32
        "[{'SSO_AUTH_BASE_URL', '$SSO_AUTH_BASE_URL'}, {'SSO_UONE_BASE_URL', '$SSO_UONE_BASE_URL'}, {'PAY_BASE_URL', '$PAY_BASE_URL'}, {'URL_PACKAGE_INFO', '$URL_PACKAGE_INFO'}, {'ACCOUNT_CREDS_URL', '$ACCOUNT_CREDS_URL'}, {'ADD_PAYMENT_URL', '$ADD_PAYMENT_URL'}, {'U1_SEARCH_BASE_URL', '$U1_SEARCH_BASE_URL'}, {'CLICK_STORE_ENABLE_PURCHASES', '$CLICK_STORE_ENABLE_PURCHASES'}]"
31
33
 
32
34
echo "Restarting scope registry"
33
35
/sbin/restart scope-registry