Merge lp:~elopio/u1-test-utils/scopes_machine into lp:u1-test-utils

Proposed by Leo Arias
Status: Work in progress
Proposed branch: lp:~elopio/u1-test-utils/scopes_machine
Merge into: lp:u1-test-utils
Diff against target: 124 lines (+50/-15)
4 files modified
setup_vm/smartscopes/install-sources (+16/-0)
setup_vm/u1/install (+1/-3)
setup_vm/u1/run-music-search (+1/-3)
setup_vm/vms.conf (+32/-9)
To merge this branch: bzr merge lp:~elopio/u1-test-utils/scopes_machine
Reviewer Review Type Date Requested Status
Canonical ISD hackers Pending
Review via email: mp+170967@code.launchpad.net
To post a comment you must log in.
85. By Leo Arias

Removed the spaces.

86. By Leo Arias

Added the install-sources script for smart scopes.

87. By Leo Arias

Added the sources to run smart scopes tests.

Unmerged revisions

87. By Leo Arias

Added the sources to run smart scopes tests.

86. By Leo Arias

Added the install-sources script for smart scopes.

85. By Leo Arias

Removed the spaces.

84. By Leo Arias

Added the install script and config values

83. By Leo Arias

Renamed the directory with the music lens scripts.

82. By Leo Arias

Merged with trunk.

81. By Leo Arias

Added the scopes machine config.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== renamed directory 'setup_vm/unity' => 'setup_vm/musiclens'
2=== added directory 'setup_vm/smartscopes'
3=== added file 'setup_vm/smartscopes/install-sources'
4--- setup_vm/smartscopes/install-sources 1970-01-01 00:00:00 +0000
5+++ setup_vm/smartscopes/install-sources 2013-06-25 20:11:22 +0000
6@@ -0,0 +1,16 @@
7+#!/bin/sh
8+# Allow ssh access to launchpad.
9+# This should probably be provided by setup_vm. -- vila 2013-03-10
10+ssh-keyscan bazaar.launchpad.net >>~/.ssh/known_hosts
11+mkdir ~/src
12+# Get the in-dash payments test branch
13+# TODO split and move the scopes tests to a different project.
14+cd ~/src
15+# TODO update the location when the branch is merged. -elopio -- 2013-06-22
16+bzr branch lp:~elopio/u1-test-utils/smart_scopes_tests
17+cat <<EOF >~/src/test-in-dash-payments/tests/local.cfg
18+[smartscopes]
19+smartscopes_server_url = {curucu.url}
20+smartscopes_geo_store = {music_search.geo_store_id}
21+
22+EOF
23
24=== modified file 'setup_vm/u1/install'
25--- setup_vm/u1/install 2013-06-19 21:05:31 +0000
26+++ setup_vm/u1/install 2013-06-25 20:11:22 +0000
27@@ -56,9 +56,7 @@
28 else
29 monday=`date -dlast-monday +%Y%m%d`
30 fi
31-# 496 is the id of the world shop. The other ids can be found on the cerati branch, cerati/parameters.py:MUSIC_PROVIDER_SHOP_IDS.
32-# TODO should we add them? --elopio - 20130520
33-monday_shop_dir=working_dir/$monday/shop-496
34+monday_shop_dir=working_dir/$monday/shop-{music_search.geo_store_id}
35 mkdir -p $monday_shop_dir
36 cat <<EOF >$monday_shop_dir/artist-full.csv
37 artistId,name,popularity,tags,image,url
38
39=== modified file 'setup_vm/u1/run-music-search'
40--- setup_vm/u1/run-music-search 2013-05-23 21:07:38 +0000
41+++ setup_vm/u1/run-music-search 2013-06-25 20:11:22 +0000
42@@ -10,9 +10,7 @@
43 else
44 monday=`date -dlast-monday +%Y%m%d`
45 fi
46-# 496 is the id of the world shop. The other ids can be found on the cerati branch, cerati/parameters.py:MUSIC_PROVIDER_SHOP_IDS.
47-# TODO should we add them? --elopio - 20130520
48-./utilities/seven_digital/manage.py import_7d_to_solr canonical {music_search.token} --shop-ids 496 --solr-port `ps fax | grep jetty.port | tail -n 1 | sed 's/.*jetty.port=\([0-9]*\).*/\1/'` --limit 1000 --date $monday
49+./utilities/seven_digital/manage.py import_7d_to_solr canonical {music_search.token} --shop-ids {music_search.geo_store_id} --solr-port `ps fax | grep jetty.port | tail -n 1 | sed 's/.*jetty.port=\([0-9]*\).*/\1/'` --limit 1000 --date $monday
50 cd ~/{music_search.src_dir}
51 echo `ps fax | grep jetty.port | tail -n 1 | sed 's/.*jetty.port=\([0-9]*\).*/\1/'` > tmp/jetty.port
52 PYTHONPATH=.:lib:$PYTHONPATH U1CONFIG=configs/local-lazr.conf gunicorn cerati.views:app -b 0.0.0.0:{music_search.port}
53
54=== modified file 'setup_vm/vms.conf'
55--- setup_vm/vms.conf 2013-06-12 06:05:33 +0000
56+++ setup_vm/vms.conf 2013-06-25 20:11:22 +0000
57@@ -27,11 +27,17 @@
58 music_search.port=8004
59 music_search.address={u1.address}
60 music_search.url=http://{music_search.address}:{music_search.port}
61+# 496 is the id of the world shop. The other ids can be found on the cerati branch, cerati/parameters.py:MUSIC_PROVIDER_SHOP_IDS.
62+music_search.geo_store_id = 496
63
64 curucu.src_dir=curucu
65 curucu.port=8005
66 curucu.url=http://{curucu.address}:{curucu.port}
67
68+# python-unittest2 is not strictly required here but works around sst
69+# insisting on installing it locally.
70+desktop.packages=bzr, emacs23, pyflakes, python-setuptools, python-unittest2, python-autopilot, unity-autopilot, ubuntu-desktop, avahi-daemon
71+
72 [precise-server-pristine]
73 vm.name=precise-server-pristine
74 vm.release=precise
75@@ -79,13 +85,11 @@
76 [raring-desktop-pristine]
77 vm.name=raring-desktop-pristine
78 vm.release=raring
79-# python-unittest2 is not strictly required here but works around sst
80-# insisting on installing it locally.
81-vm.packages=bzr, emacs23, pyflakes, python-setuptools, python-unittest2, python-autopilot, unity-autopilot, ubuntu-desktop, avahi-daemon
82+vm.packages={desktop.packages}
83 vm.update=True
84 # Roughly all vms installing ubuntu-desktop need to complete the
85 # installation by making the ubuntu user part of the admin group.
86-vm.root_script = bin/ubuntu_admin.sh
87+vm.root_script=bin/ubuntu_admin.sh
88
89 [purchase-testing]
90 vm.name=purchase-testing
91@@ -93,8 +97,27 @@
92 vm.backing=raring-desktop-pristine.qcow2
93 vm.apt_sources=deb http://ppa.launchpad.net/ubuntuone/dashpurchase-testing/ubuntu {vm.release} main|4BD0ECAE,deb http://ppa.launchpad.net/vila/selenium/ubuntu {vm.release} main|5703355D,ppa:ubuntuone/nightlies
94 vm.packages=python-selenium, python-sst, ubuntuone-dev-tools, libautopilot-qt, python-requests, python-mock, python-django, python-django-configglue, python-piston-mini-client, python-dateutil, xvfb
95-vm.uploaded_scripts=unity/run-sso-client, unity/run-unity-lens-music
96-# TODO unity/run-syncdaemon. We don't yet have the hermetic filesync server.
97-vm.update=True
98-vm.root_script=unity/transient-dist-upgrade
99-vm.ubuntu_script=unity/install-sources
100+vm.uploaded_scripts=musiclens/run-sso-client, musiclens/run-unity-lens-music
101+# TODO musiclens/run-syncdaemon. We don't yet have the hermetic filesync
102+# server.
103+vm.update=True
104+vm.root_script=musiclens/transient-dist-upgrade
105+vm.ubuntu_script=musiclens/install-sources
106+
107+[saucy-desktop-pristine]
108+vm.name=saucy-desktop-pristine
109+vm.release=saucy
110+vm.packages={desktop.packages}
111+vm.update=True
112+# Roughly all vms installing ubuntu-desktop need to complete the
113+# installation by making the ubuntu user part of the admin group.
114+vm.root_script=bin/ubuntu_admin.sh
115+
116+[scopes-testing]
117+vm.name=scopes-testing
118+vm.release=saucy
119+vm.backing=saucy-desktop-pristine.qcow2
120+vm.apt_sources=deb http://ppa.launchpad.net/vila/selenium/ubuntu {vm.release} main|5703355D
121+vm.packages=python-django, python-django-configglue, python-selenium, python-sst, libautopilot-qt
122+vm.update=True
123+vm.ubuntu_script=smartscopes/install-sources
124\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: