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
=== modified file 'debian/changelog'
--- debian/changelog 2009-10-26 16:17:55 +0000
+++ debian/changelog 2009-10-27 14:40:20 +0000
@@ -1,3 +1,10 @@
1checkbox (0.8.6) karmic; urgency=low
2
3 * Fixed strings in fingerprint and modem tests (LP: #457759)
4 * Fixed client side validation of Launchpad form (LP: #438671)
5
6 -- Marc Tardif <marc@ubuntu.com> Tue, 27 Oct 2009 10:32:09 -0400
7
1checkbox (0.8.5) karmic; urgency=low8checkbox (0.8.5) karmic; urgency=low
29
3 * Fixed translation of suites and tests files (LP: #456115)10 * Fixed translation of suites and tests files (LP: #456115)
411
=== modified file 'plugins/launchpad_exchange.py'
--- plugins/launchpad_exchange.py 2009-05-12 00:38:17 +0000
+++ plugins/launchpad_exchange.py 2009-10-27 14:40:20 +0000
@@ -30,10 +30,25 @@
30from checkbox.lib.log import format_delta30from checkbox.lib.log import format_delta
31from checkbox.lib.transport import HTTPTransport31from checkbox.lib.transport import HTTPTransport
3232
33from checkbox.properties import Int, String33from checkbox.properties import Int, Map, String
34from checkbox.plugin import Plugin34from checkbox.plugin import Plugin
3535
3636
37FORM = Map({
38 "field.private": String(),
39 "field.contactable": String(),
40 "field.format": String(),
41 "field.actions.upload": String(),
42 "field.architecture": String(),
43 "field.date_created": String(),
44 "field.distribution": String(),
45 "field.distroseries": String(),
46 "field.submission_key": String(),
47 "field.system": String(),
48 "field.emailaddress": String(),
49 "field.live_cd": String()})
50
51
37class LaunchpadExchange(Plugin):52class LaunchpadExchange(Plugin):
3853
39 # Timeout value for each submission.54 # Timeout value for each submission.
@@ -46,11 +61,11 @@
46 super(LaunchpadExchange, self).register(manager)61 super(LaunchpadExchange, self).register(manager)
47 self._headers = {}62 self._headers = {}
48 self._form = {63 self._form = {
49 "field.private": False,64 "field.private": "False",
50 "field.contactable": False,65 "field.contactable": "False",
51 "field.live_cd": False,66 "field.live_cd": "False",
52 "field.format": u"VERSION_1",67 "field.format": "VERSION_1",
53 "field.actions.upload": u"Upload"}68 "field.actions.upload": "Upload"}
5469
55 for (rt, rh) in [70 for (rt, rh) in [
56 ("report-architecture", self.report_architecture),71 ("report-architecture", self.report_architecture),
@@ -92,9 +107,12 @@
92107
93 def launchpad_exchange(self):108 def launchpad_exchange(self):
94 # Encode form data109 # Encode form data
95 form = {}110 try:
96 for field, value in self._form.items():111 form = FORM.coerce(self._form)
97 form[field] = str(value).encode("UTF-8")112 except ValueError, e:
113 self._manager.reactor.fire("exchange-error", _("""\
114Failed to process form: %s""" % e))
115 return
98116
99 # Compress and add payload to form117 # Compress and add payload to form
100 payload = open(self._launchpad_report, "r").read()118 payload = open(self._launchpad_report, "r").read()
101119
=== modified file 'po/checkbox.pot'
--- po/checkbox.pot 2009-10-26 15:52:11 +0000
+++ po/checkbox.pot 2009-10-27 14:40:20 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2009-10-26 10:27-0400\n"11"POT-Creation-Date: 2009-10-27 10:29-0400\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -207,7 +207,7 @@
207#. description207#. description
208#: ../tests/fingerprint.txt.in:3208#: ../tests/fingerprint.txt.in:3
209msgid ""209msgid ""
210"Fingerprint unlock verification procedure: 1.- Click on the user switcher "210"Fingerprint login verification procedure: 1.- Click on the user switcher "
211"applet 2.- Select your user name 3.- A window should appear that provides "211"applet 2.- Select your user name 3.- A window should appear that provides "
212"the ability to login either \\ typing your password or using fingerprint "212"the ability to login either \\ typing your password or using fingerprint "
213"authentication 4.- Use the fingerprint reader to login 5.- Click on the user "213"authentication 4.- Use the fingerprint reader to login 5.- Click on the user "
@@ -218,10 +218,10 @@
218#: ../tests/fingerprint.txt.in:21218#: ../tests/fingerprint.txt.in:21
219msgid ""219msgid ""
220"Fingerprint unlock verification procedure: 1.- Click on the user switcher "220"Fingerprint unlock verification procedure: 1.- Click on the user switcher "
221"applet 2.- Select 'Lock screen' 3.- Press any key or move the mouse 3.- A "221"applet 2.- Select 'Lock screen' 3.- Press any key or move the mouse 4.- A "
222"window should appear that provides the ability to unlock either \\ typing "222"window should appear that provides the ability to unlock either \\ typing "
223"your password or using fingerprint authentication 4.- Use the fingerprint "223"your password or using fingerprint authentication 5.- Use the fingerprint "
224"reader to unlock 5.- Screen should be unlocked"224"reader to unlock 6.- Screen should be unlocked"
225msgstr ""225msgstr ""
226226
227#. description227#. description
@@ -284,17 +284,20 @@
284#. description284#. description
285#: ../tests/network.txt.in:26285#: ../tests/network.txt.in:26
286msgid ""286msgid ""
287"Built-in modem network connection procedure: 1.- Connect the telephone line "287"Built-in modem network connection procedure: 1.- Open System -> "
288"to the computer 2.- Right click on the Network Manager applet 3.- Select "288"Administration -> Network 2.- Press Unlock and type your password to unlock "
289"'Edit Connections' 4.- Select the 'DSL' tab 5.- Click on add 'Add' button "289"the settings 3.- Select the Connections tab. 4.- Select Point to point "
290"6.- Configure the connection parameters properly 7.- Notify OSD should "290"connection and press Properties. 5.- Tick Enable this connection 6.- Choose "
291"confirm that the connection has been established 8.- Select Test to verify "291"Serial Modem from the Connection Type drop down. 7.- Under Internet Service "
292"that it's possible to establish both http \\ and ftp connections"292"Provider data, enter the phone number and dial prefix. 8.- Under Account "
293"Data enter your password and username. 9.- Click the Modem tab. 10.- Choose "
294"the modem settings you require. 11.- Click OK. 12.- Select the DNS tab and "
295"enter the DNS addresses of your ISP. 13.- Click Close."
293msgstr ""296msgstr ""
294297
295#. description298#. description
296#: ../tests/network.txt.in:26299#: ../tests/network.txt.in:26
297msgid "Was the connection correctly established?"300msgid "Can you successfully establish a network connection?"
298msgstr ""301msgstr ""
299302
300#. description303#. description
@@ -563,7 +566,12 @@
563"your system."566"your system."
564msgstr ""567msgstr ""
565568
566#: ../plugins/launchpad_exchange.py:118569#: ../plugins/launchpad_exchange.py:113
570#, python-format
571msgid "Failed to process form: %s"
572msgstr ""
573
574#: ../plugins/launchpad_exchange.py:136
567#, python-format575#, python-format
568msgid ""576msgid ""
569"Failed to contact server. Please try\n"577"Failed to contact server. Please try\n"
@@ -574,13 +582,13 @@
574"https://launchpad.net/+hwdb/+submit"582"https://launchpad.net/+hwdb/+submit"
575msgstr ""583msgstr ""
576584
577#: ../plugins/launchpad_exchange.py:127585#: ../plugins/launchpad_exchange.py:145
578msgid ""586msgid ""
579"Failed to upload to server,\n"587"Failed to upload to server,\n"
580"please try again later."588"please try again later."
581msgstr ""589msgstr ""
582590
583#: ../plugins/launchpad_exchange.py:139591#: ../plugins/launchpad_exchange.py:157
584msgid "Information not posted to Launchpad."592msgid "Information not posted to Launchpad."
585msgstr ""593msgstr ""
586594
587595
=== modified file 'tests/fingerprint.txt.in'
--- tests/fingerprint.txt.in 2009-09-11 16:41:43 +0000
+++ tests/fingerprint.txt.in 2009-10-27 14:40:20 +0000
@@ -5,7 +5,7 @@
5 from which test cases are run and a personal account that the tester \5 from which test cases are run and a personal account that the tester \
6 uses to verify the fingerprint reader6 uses to verify the fingerprint reader
7 .7 .
8 Fingerprint unlock verification procedure:8 Fingerprint login verification procedure:
9 1.- Click on the user switcher applet9 1.- Click on the user switcher applet
10 2.- Select your user name10 2.- Select your user name
11 3.- A window should appear that provides the ability to login either \11 3.- A window should appear that provides the ability to login either \
@@ -23,9 +23,9 @@
23 1.- Click on the user switcher applet23 1.- Click on the user switcher applet
24 2.- Select 'Lock screen'24 2.- Select 'Lock screen'
25 3.- Press any key or move the mouse25 3.- Press any key or move the mouse
26 3.- A window should appear that provides the ability to unlock either \26 4.- A window should appear that provides the ability to unlock either \
27 typing your password or using fingerprint authentication27 typing your password or using fingerprint authentication
28 4.- Use the fingerprint reader to unlock28 5.- Use the fingerprint reader to unlock
29 5.- Screen should be unlocked29 6.- Screen should be unlocked
30 .30 .
31 Did the authentication procedure work correctly?31 Did the authentication procedure work correctly?
3232
=== modified file 'tests/network.txt.in'
--- tests/network.txt.in 2009-09-11 16:41:43 +0000
+++ tests/network.txt.in 2009-10-27 14:40:20 +0000
@@ -25,14 +25,18 @@
25command: network_check25command: network_check
26_description:26_description:
27 Built-in modem network connection procedure:27 Built-in modem network connection procedure:
28 1.- Connect the telephone line to the computer28 1.- Open System -> Administration -> Network
29 2.- Right click on the Network Manager applet29 2.- Press Unlock and type your password to unlock the settings
30 3.- Select 'Edit Connections'30 3.- Select the Connections tab.
31 4.- Select the 'DSL' tab31 4.- Select Point to point connection and press Properties.
32 5.- Click on add 'Add' button32 5.- Tick Enable this connection
33 6.- Configure the connection parameters properly33 6.- Choose Serial Modem from the Connection Type drop down.
34 7.- Notify OSD should confirm that the connection has been established34 7.- Under Internet Service Provider data, enter the phone number and dial prefix.
35 8.- Select Test to verify that it's possible to establish both http \35 8.- Under Account Data enter your password and username.
36 and ftp connections36 9.- Click the Modem tab.
37 10.- Choose the modem settings you require.
38 11.- Click OK.
39 12.- Select the DNS tab and enter the DNS addresses of your ISP.
40 13.- Click Close.
37 .41 .
38 Was the connection correctly established?42 Can you successfully establish a network connection?

Subscribers

People subscribed via source and target branches