Merge lp:~elopio/u1-test-utils/update-sso-dependencies into lp:u1-test-utils

Proposed by Leo Arias
Status: Merged
Approved by: Leo Arias
Approved revision: 93
Merged at revision: 85
Proposed branch: lp:~elopio/u1-test-utils/update-sso-dependencies
Merge into: lp:u1-test-utils
Diff against target: 83 lines (+14/-12)
5 files modified
setup_vm/sso/run (+6/-5)
setup_vm/sso/run-for-pay (+2/-1)
setup_vm/sso/run-for-u1 (+2/-1)
setup_vm/sso/test (+1/-3)
setup_vm/vms.conf (+3/-2)
To merge this branch: bzr merge lp:~elopio/u1-test-utils/update-sso-dependencies
Reviewer Review Type Date Requested Status
Vincent Ladeuil (community) Approve
Review via email: mp+173210@code.launchpad.net

Commit message

Update the installation of the SSO machine using the dependencies package.
Run the machine with the ubuntuone brand.

Description of the change

Following http://bazaar.launchpad.net/~canonical-isd-hackers/canonical-identity-provider/trunk/revision/952 we can now install all the dependencies for SSO with a meta package.

To post a comment you must log in.
93. By Leo Arias

Last bits to make the run and run-for-pay more similar.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Nice.

You may want to update your commit message to mention that you're also selecting the ubuntuone brand.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'setup_vm/sso/run'
--- setup_vm/sso/run 2013-03-16 22:38:01 +0000
+++ setup_vm/sso/run 2013-07-05 14:00:32 +0000
@@ -5,12 +5,13 @@
5.env/bin/twistd localmail --imap {sso.imap_port} --smtp {sso.smtp_port}5.env/bin/twistd localmail --imap {sso.imap_port} --smtp {sso.smtp_port}
66
7# Setup the database.7# Setup the database.
8rm -fr .env/db # So this script can run more than once when needed
8fab setup_postgresql_server9fab setup_postgresql_server
9fab manage:loaddata,test10fab manage:loaddata,test
10fab manage:create_test_team11fab manage:create_test_team
11# get gargoyle flags from their use in the code12# add openid RP config
12SST_FLAGS=`grep -rho --exclude 'test_*.py' "is_active([\"']\(.*\)[\"']" identityprovider/ webui/ | sed -E "s/is_active\(['\"](.*)['\"]/\1/" | awk '{print tolower($0)}' | sort | uniq | tr '\n' ','`13# we need this to explicitly allow unverified logins
13# We need to remove the trailing ','14fab manage:add_openid_rp_config,$SST_BASE_URL/consumer,--allow-unverified,--allowed-user-attribs="fullname\,nickname\,email\,language,account_verified"
14fab gargoyle_flags:${SST_FLAGS%,}15fab manage:add_switch,"brand_ubuntuone"
15# Start the SSO server, accessible from the local network.16# Start the SSO server, accessible from the local network.
16fab run:0.0.0.0:{sso.port}17fab brand:ubuntuone run:0.0.0.0:{sso.port}
1718
=== modified file 'setup_vm/sso/run-for-pay'
--- setup_vm/sso/run-for-pay 2013-05-11 15:23:33 +0000
+++ setup_vm/sso/run-for-pay 2013-07-05 14:00:32 +0000
@@ -5,10 +5,11 @@
5.env/bin/twistd localmail --imap {sso.imap_port} --smtp {sso.smtp_port}5.env/bin/twistd localmail --imap {sso.imap_port} --smtp {sso.smtp_port}
66
7# Setup the database.7# Setup the database.
8rm -fr .env/db # So this script can run more than once when needed
8fab setup_postgresql_server9fab setup_postgresql_server
9fab manage:loaddata,isdtest10fab manage:loaddata,isdtest
10fab manage:loaddata,allow_unverified
11# Set the allow-unverified config for Pay.11# Set the allow-unverified config for Pay.
12fab manage:add_openid_rp_config,{pay.url},--allow-unverified,--allowed-user-attribs="fullname\,nickname\,email\,language"12fab manage:add_openid_rp_config,{pay.url},--allow-unverified,--allowed-user-attribs="fullname\,nickname\,email\,language"
13fab manage:add_switch,"brand_ubuntuone"
13# Start the SSO server, accessible from the local network.14# Start the SSO server, accessible from the local network.
14fab run:0.0.0.0:{sso.port}15fab run:0.0.0.0:{sso.port}
1516
=== modified file 'setup_vm/sso/run-for-u1'
--- setup_vm/sso/run-for-u1 2013-06-11 17:45:39 +0000
+++ setup_vm/sso/run-for-u1 2013-07-05 14:00:32 +0000
@@ -40,5 +40,6 @@
4040
41EOF41EOF
42fab manage:loaddata,apiuser42fab manage:loaddata,apiuser
43fab manage:add_switch,"brand_ubuntuone"
43# Start the SSO server, accessible from the local network.44# Start the SSO server, accessible from the local network.
44fab run:0.0.0.0:{sso.port}45fab brand:ubuntuone run:0.0.0.0:{sso.port}
4546
=== modified file 'setup_vm/sso/test'
--- setup_vm/sso/test 2013-03-13 18:23:17 +0000
+++ setup_vm/sso/test 2013-07-05 14:00:32 +0000
@@ -5,7 +5,5 @@
55
6cd {sso.src_dir}6cd {sso.src_dir}
77
8# get gargoyle flags from their use in the code
9SST_FLAGS=`grep -rho --exclude 'test_*.py' "is_active([\"']\(.*\)[\"']" identityprovider/ webui/ | sed -E "s/is_active\(['\"](.*)['\"]/\1/" | awk '{print tolower($0)}' | sort | uniq | tr '\n' ';'`
10# run tests 8# run tests
11SST_BASE_URL={sso.url} fab acceptance:screenshot=true,report=xml,extended=true,flags=$SST_FLAGS9SST_BASE_URL={sso.url} fab acceptance:screenshot=true,report=xml,headless=True
12\ No newline at end of file10\ No newline at end of file
1311
=== modified file 'setup_vm/vms.conf'
--- setup_vm/vms.conf 2013-06-12 06:05:33 +0000
+++ setup_vm/vms.conf 2013-07-05 14:00:32 +0000
@@ -42,10 +42,11 @@
42vm.name=sso42vm.name=sso
43vm.release=precise43vm.release=precise
44vm.backing=precise-server-pristine.qcow244vm.backing=precise-server-pristine.qcow2
45vm.packages=config-manager, fabric, libpq-dev, make, memcached, postgresql-plpython, python-m2crypto, python-dev, python-setuptools, python-virtualenv, swig, wget, libxml2-dev, libxslt1-dev45vm.apt_sources=deb http://ppa.launchpad.net/canonical-isd-hackers/dependencies/ubuntu {vm.release} main|F5410BE0
46vm.packages=python-software-properties, canonical-identity-provider-dependencies, canonical-identity-provider-developer-dependencies
46vm.ubuntu_script=sso/install47vm.ubuntu_script=sso/install
47vm.update=True48vm.update=True
48vm.uploaded_scripts=sso/run, sso/run-for-pay, sso/run-for-u149vm.uploaded_scripts=sso/run, sso/test, sso/run-for-pay, sso/run-for-u1
4950
50[pay]51[pay]
51vm.name=pay52vm.name=pay

Subscribers

People subscribed via source and target branches

to all changes: