Merge lp:~cr3/checkbox/438671 into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: not available
Proposed branch: lp:~cr3/checkbox/438671
Merge into: lp:checkbox
Diff against target: 231 lines
5 files modified
debian/changelog (+7/-0)
plugins/launchpad_exchange.py (+27/-9)
po/checkbox.pot (+23/-15)
tests/fingerprint.txt.in (+4/-4)
tests/network.txt.in (+14/-10)
To merge this branch: bzr merge lp:~cr3/checkbox/438671
Reviewer Review Type Date Requested Status
Abel Deuring Pending
Review via email: mp+14032@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-10-26 16:17:55 +0000
3+++ debian/changelog 2009-10-27 14:40:20 +0000
4@@ -1,3 +1,10 @@
5+checkbox (0.8.6) karmic; urgency=low
6+
7+ * Fixed strings in fingerprint and modem tests (LP: #457759)
8+ * Fixed client side validation of Launchpad form (LP: #438671)
9+
10+ -- Marc Tardif <marc@ubuntu.com> Tue, 27 Oct 2009 10:32:09 -0400
11+
12 checkbox (0.8.5) karmic; urgency=low
13
14 * Fixed translation of suites and tests files (LP: #456115)
15
16=== modified file 'plugins/launchpad_exchange.py'
17--- plugins/launchpad_exchange.py 2009-05-12 00:38:17 +0000
18+++ plugins/launchpad_exchange.py 2009-10-27 14:40:20 +0000
19@@ -30,10 +30,25 @@
20 from checkbox.lib.log import format_delta
21 from checkbox.lib.transport import HTTPTransport
22
23-from checkbox.properties import Int, String
24+from checkbox.properties import Int, Map, String
25 from checkbox.plugin import Plugin
26
27
28+FORM = Map({
29+ "field.private": String(),
30+ "field.contactable": String(),
31+ "field.format": String(),
32+ "field.actions.upload": String(),
33+ "field.architecture": String(),
34+ "field.date_created": String(),
35+ "field.distribution": String(),
36+ "field.distroseries": String(),
37+ "field.submission_key": String(),
38+ "field.system": String(),
39+ "field.emailaddress": String(),
40+ "field.live_cd": String()})
41+
42+
43 class LaunchpadExchange(Plugin):
44
45 # Timeout value for each submission.
46@@ -46,11 +61,11 @@
47 super(LaunchpadExchange, self).register(manager)
48 self._headers = {}
49 self._form = {
50- "field.private": False,
51- "field.contactable": False,
52- "field.live_cd": False,
53- "field.format": u"VERSION_1",
54- "field.actions.upload": u"Upload"}
55+ "field.private": "False",
56+ "field.contactable": "False",
57+ "field.live_cd": "False",
58+ "field.format": "VERSION_1",
59+ "field.actions.upload": "Upload"}
60
61 for (rt, rh) in [
62 ("report-architecture", self.report_architecture),
63@@ -92,9 +107,12 @@
64
65 def launchpad_exchange(self):
66 # Encode form data
67- form = {}
68- for field, value in self._form.items():
69- form[field] = str(value).encode("UTF-8")
70+ try:
71+ form = FORM.coerce(self._form)
72+ except ValueError, e:
73+ self._manager.reactor.fire("exchange-error", _("""\
74+Failed to process form: %s""" % e))
75+ return
76
77 # Compress and add payload to form
78 payload = open(self._launchpad_report, "r").read()
79
80=== modified file 'po/checkbox.pot'
81--- po/checkbox.pot 2009-10-26 15:52:11 +0000
82+++ po/checkbox.pot 2009-10-27 14:40:20 +0000
83@@ -8,7 +8,7 @@
84 msgstr ""
85 "Project-Id-Version: PACKAGE VERSION\n"
86 "Report-Msgid-Bugs-To: \n"
87-"POT-Creation-Date: 2009-10-26 10:27-0400\n"
88+"POT-Creation-Date: 2009-10-27 10:29-0400\n"
89 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
90 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
91 "Language-Team: LANGUAGE <LL@li.org>\n"
92@@ -207,7 +207,7 @@
93 #. description
94 #: ../tests/fingerprint.txt.in:3
95 msgid ""
96-"Fingerprint unlock verification procedure: 1.- Click on the user switcher "
97+"Fingerprint login verification procedure: 1.- Click on the user switcher "
98 "applet 2.- Select your user name 3.- A window should appear that provides "
99 "the ability to login either \\ typing your password or using fingerprint "
100 "authentication 4.- Use the fingerprint reader to login 5.- Click on the user "
101@@ -218,10 +218,10 @@
102 #: ../tests/fingerprint.txt.in:21
103 msgid ""
104 "Fingerprint unlock verification procedure: 1.- Click on the user switcher "
105-"applet 2.- Select 'Lock screen' 3.- Press any key or move the mouse 3.- A "
106+"applet 2.- Select 'Lock screen' 3.- Press any key or move the mouse 4.- A "
107 "window should appear that provides the ability to unlock either \\ typing "
108-"your password or using fingerprint authentication 4.- Use the fingerprint "
109-"reader to unlock 5.- Screen should be unlocked"
110+"your password or using fingerprint authentication 5.- Use the fingerprint "
111+"reader to unlock 6.- Screen should be unlocked"
112 msgstr ""
113
114 #. description
115@@ -284,17 +284,20 @@
116 #. description
117 #: ../tests/network.txt.in:26
118 msgid ""
119-"Built-in modem network connection procedure: 1.- Connect the telephone line "
120-"to the computer 2.- Right click on the Network Manager applet 3.- Select "
121-"'Edit Connections' 4.- Select the 'DSL' tab 5.- Click on add 'Add' button "
122-"6.- Configure the connection parameters properly 7.- Notify OSD should "
123-"confirm that the connection has been established 8.- Select Test to verify "
124-"that it's possible to establish both http \\ and ftp connections"
125+"Built-in modem network connection procedure: 1.- Open System -> "
126+"Administration -> Network 2.- Press Unlock and type your password to unlock "
127+"the settings 3.- Select the Connections tab. 4.- Select Point to point "
128+"connection and press Properties. 5.- Tick Enable this connection 6.- Choose "
129+"Serial Modem from the Connection Type drop down. 7.- Under Internet Service "
130+"Provider data, enter the phone number and dial prefix. 8.- Under Account "
131+"Data enter your password and username. 9.- Click the Modem tab. 10.- Choose "
132+"the modem settings you require. 11.- Click OK. 12.- Select the DNS tab and "
133+"enter the DNS addresses of your ISP. 13.- Click Close."
134 msgstr ""
135
136 #. description
137 #: ../tests/network.txt.in:26
138-msgid "Was the connection correctly established?"
139+msgid "Can you successfully establish a network connection?"
140 msgstr ""
141
142 #. description
143@@ -563,7 +566,12 @@
144 "your system."
145 msgstr ""
146
147-#: ../plugins/launchpad_exchange.py:118
148+#: ../plugins/launchpad_exchange.py:113
149+#, python-format
150+msgid "Failed to process form: %s"
151+msgstr ""
152+
153+#: ../plugins/launchpad_exchange.py:136
154 #, python-format
155 msgid ""
156 "Failed to contact server. Please try\n"
157@@ -574,13 +582,13 @@
158 "https://launchpad.net/+hwdb/+submit"
159 msgstr ""
160
161-#: ../plugins/launchpad_exchange.py:127
162+#: ../plugins/launchpad_exchange.py:145
163 msgid ""
164 "Failed to upload to server,\n"
165 "please try again later."
166 msgstr ""
167
168-#: ../plugins/launchpad_exchange.py:139
169+#: ../plugins/launchpad_exchange.py:157
170 msgid "Information not posted to Launchpad."
171 msgstr ""
172
173
174=== modified file 'tests/fingerprint.txt.in'
175--- tests/fingerprint.txt.in 2009-09-11 16:41:43 +0000
176+++ tests/fingerprint.txt.in 2009-10-27 14:40:20 +0000
177@@ -5,7 +5,7 @@
178 from which test cases are run and a personal account that the tester \
179 uses to verify the fingerprint reader
180 .
181- Fingerprint unlock verification procedure:
182+ Fingerprint login verification procedure:
183 1.- Click on the user switcher applet
184 2.- Select your user name
185 3.- A window should appear that provides the ability to login either \
186@@ -23,9 +23,9 @@
187 1.- Click on the user switcher applet
188 2.- Select 'Lock screen'
189 3.- Press any key or move the mouse
190- 3.- A window should appear that provides the ability to unlock either \
191+ 4.- A window should appear that provides the ability to unlock either \
192 typing your password or using fingerprint authentication
193- 4.- Use the fingerprint reader to unlock
194- 5.- Screen should be unlocked
195+ 5.- Use the fingerprint reader to unlock
196+ 6.- Screen should be unlocked
197 .
198 Did the authentication procedure work correctly?
199
200=== modified file 'tests/network.txt.in'
201--- tests/network.txt.in 2009-09-11 16:41:43 +0000
202+++ tests/network.txt.in 2009-10-27 14:40:20 +0000
203@@ -25,14 +25,18 @@
204 command: network_check
205 _description:
206 Built-in modem network connection procedure:
207- 1.- Connect the telephone line to the computer
208- 2.- Right click on the Network Manager applet
209- 3.- Select 'Edit Connections'
210- 4.- Select the 'DSL' tab
211- 5.- Click on add 'Add' button
212- 6.- Configure the connection parameters properly
213- 7.- Notify OSD should confirm that the connection has been established
214- 8.- Select Test to verify that it's possible to establish both http \
215- and ftp connections
216+ 1.- Open System -> Administration -> Network
217+ 2.- Press Unlock and type your password to unlock the settings
218+ 3.- Select the Connections tab.
219+ 4.- Select Point to point connection and press Properties.
220+ 5.- Tick Enable this connection
221+ 6.- Choose Serial Modem from the Connection Type drop down.
222+ 7.- Under Internet Service Provider data, enter the phone number and dial prefix.
223+ 8.- Under Account Data enter your password and username.
224+ 9.- Click the Modem tab.
225+ 10.- Choose the modem settings you require.
226+ 11.- Click OK.
227+ 12.- Select the DNS tab and enter the DNS addresses of your ISP.
228+ 13.- Click Close.
229 .
230- Was the connection correctly established?
231+ Can you successfully establish a network connection?

Subscribers

People subscribed via source and target branches