Merge lp:~ted/pay-service/staging-dbus into lp:pay-service/14.10

Proposed by Ted Gould
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 11
Merged at revision: 11
Proposed branch: lp:~ted/pay-service/staging-dbus
Merge into: lp:pay-service/14.10
Diff against target: 45 lines (+26/-9)
1 file modified
tests/setup-staging.sh (+26/-9)
To merge this branch: bzr merge lp:~ted/pay-service/staging-dbus
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
dobey (community) Approve
Review via email: mp+224844@code.launchpad.net

Commit message

When setting up staging set the DBus activation environment as well

Description of the change

Since online accounts is using dbus activation we need to ensure that its environment also gets these variables.

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/setup-staging.sh'
2--- tests/setup-staging.sh 2014-06-13 21:36:08 +0000
3+++ tests/setup-staging.sh 2014-06-27 14:13:30 +0000
4@@ -2,15 +2,32 @@
5 # This small script sets up the variables needed for acceptance
6 # testing of the pay-service and pay related things.
7
8-echo "Setting up staging environment variables"
9-
10-initctl set-env --global SSO_AUTH_BASE_URL=https://login.staging.ubuntu.com
11-initctl set-env --global SSO_UONE_BASE_URL=https://staging.one.ubuntu.com
12-initctl set-env --global PAY_BASE_URL=https://sc.staging.ubuntu.com/api/2.0/click/
13-initctl set-env --global URL_PACKAGE_INFO=https://search.apps.staging.ubuntu.com/api/v1/package/
14-initctl set-env --global ACCOUNT_CREDS_URL=https://login.staging.ubuntu.com/api/v2/tokens/oauth
15-initctl set-env --global ADD_PAYMENT_URL=https://sc.staging.ubuntu.com/api/2.0/click/paymentmethods/add/
16-initctl set-env --global U1_SEARCH_BASE_URL=https://search.apps.staging.ubuntu.com/
17+
18+SSO_AUTH_BASE_URL=https://login.staging.ubuntu.com
19+SSO_UONE_BASE_URL=https://staging.one.ubuntu.com
20+PAY_BASE_URL=https://sc.staging.ubuntu.com/api/2.0/click/
21+URL_PACKAGE_INFO=https://search.apps.staging.ubuntu.com/api/v1/package/
22+ACCOUNT_CREDS_URL=https://login.staging.ubuntu.com/api/v2/tokens/oauth
23+ADD_PAYMENT_URL=https://sc.staging.ubuntu.com/api/2.0/click/paymentmethods/add/
24+U1_SEARCH_BASE_URL=https://search.apps.staging.ubuntu.com/
25+
26+echo "Setting up upstart environment variables"
27+
28+initctl set-env --global SSO_AUTH_BASE_URL=$SSO_AUTH_BASE_URL
29+initctl set-env --global SSO_UONE_BASE_URL=$SSO_UONE_BASE_URL
30+initctl set-env --global PAY_BASE_URL=$PAY_BASE_URL
31+initctl set-env --global URL_PACKAGE_INFO=$URL_PACKAGE_INFO
32+initctl set-env --global ACCOUNT_CREDS_URL=$ACCOUNT_CREDS_URL
33+initctl set-env --global ADD_PAYMENT_URL=$ADD_PAYMENT_URL
34+initctl set-env --global U1_SEARCH_BASE_URL=$U1_SEARCH_BASE_URL
35+
36+echo "Setting up dbus environment variables"
37+
38+gdbus call --session \
39+ --dest org.freedesktop.DBus \
40+ --object-path / \
41+ --method org.freedesktop.DBus.UpdateActivationEnvironment \
42+ "[{'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'}]"
43
44 echo "Restarting scope registry"
45 restart scope-registry

Subscribers

People subscribed via source and target branches