Merge lp:~elopio/ubuntuone-testing/teardown into lp:ubuntuone-testing

Proposed by Leo Arias
Status: Merged
Approved by: Rick McBride
Approved revision: 95
Merged at revision: 87
Proposed branch: lp:~elopio/ubuntuone-testing/teardown
Merge into: lp:ubuntuone-testing
Diff against target: 909 lines (+121/-136)
32 files modified
ubuntuone/web/tests/sst/account/u1weba001_accountdetails.py (+0/-2)
ubuntuone/web/tests/sst/contacts/u1webc001_addcontact.py (+4/-4)
ubuntuone/web/tests/sst/contacts/u1webc002_editcontact.py (+4/-4)
ubuntuone/web/tests/sst/contacts/u1webc003_deletecontact.py (+4/-4)
ubuntuone/web/tests/sst/files/u1webf001_uploadfile.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf002_publishfile.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf003_stoppublishingfile.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf004_downloadfile.py (+9/-8)
ubuntuone/web/tests/sst/files/u1webf005_deletefile.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf006_createfolder.py (+5/-3)
ubuntuone/web/tests/sst/files/u1webf007_sharefolder.py (+5/-3)
ubuntuone/web/tests/sst/files/u1webf008_stopsharingfolder.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf009_deletefolder.py (+4/-3)
ubuntuone/web/tests/sst/files/u1webf010_foldernavigation.py (+4/-3)
ubuntuone/web/tests/sst/music/u1webm001_playsong.py (+1/-3)
ubuntuone/web/tests/sst/music/u1webm002_selectartist.py (+1/-3)
ubuntuone/web/tests/sst/music/u1webm003_selectalbum.py (+1/-3)
ubuntuone/web/tests/sst/navigation/u1webn001_maintabs.py (+1/-3)
ubuntuone/web/tests/sst/payments/u1webp001_paymusicstreaming.py (+5/-3)
ubuntuone/web/tests/sst/payments/u1webp002_payadditionalstorage.py (+4/-2)
ubuntuone/web/tests/sst/payments/u1webp003_paywithrefusedcard.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse001_information.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse002_musicstreamingmonthly.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse003_musicstreamingannually.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse005_addmonthlystorage.py (+5/-3)
ubuntuone/web/tests/sst/services/u1webse006_addannuallystorage.py (+5/-3)
ubuntuone/web/tests/sst/session/u1webs002_login.py (+1/-3)
ubuntuone/web/tests/sst/shared/actions/teardown.py (+0/-37)
ubuntuone/web/tests/sst/smoketest/contactspage.py (+4/-3)
ubuntuone/web/tests/sst/smoketest/filespage.py (+4/-3)
ubuntuone/web/tests/sst/smoketest/services.py (+5/-3)
To merge this branch: bzr merge lp:~elopio/ubuntuone-testing/teardown
Reviewer Review Type Date Requested Status
Rick McBride (community) Approve
Review via email: mp+99592@code.launchpad.net

This proposal supersedes a proposal from 2012-03-27.

Commit message

Rolled back, removed the tear down actions.

Description of the change

There is a weird interaction of the tear down actions when multiple tests are run. Revert while finding a solution.

To post a comment you must log in.
Revision history for this message
Rick McBride (rmcbride) wrote : Posted in a previous version of this proposal

rollback approved.

review: Approve
Revision history for this message
Rick McBride (rmcbride) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone/web/tests/sst/account/u1weba001_accountdetails.py'
2--- ubuntuone/web/tests/sst/account/u1weba001_accountdetails.py 2012-03-22 01:01:17 +0000
3+++ ubuntuone/web/tests/sst/account/u1weba001_accountdetails.py 2012-03-27 19:18:21 +0000
4@@ -21,7 +21,6 @@
5
6 from sst.actions import *
7 import actions.setup as setup_actions
8-import actions.teardown as teardown_actions
9 import actions.account as account_actions
10 from _passwords import full_name, email
11 from config import ENVIRONMENT
12@@ -36,4 +35,3 @@
13 else:
14 url = 'https://login.ubuntu.com/'
15 assert_url(url)
16-teardown_actions.tear_down()
17
18=== modified file 'ubuntuone/web/tests/sst/contacts/u1webc001_addcontact.py'
19--- ubuntuone/web/tests/sst/contacts/u1webc001_addcontact.py 2012-03-22 01:20:22 +0000
20+++ ubuntuone/web/tests/sst/contacts/u1webc001_addcontact.py 2012-03-27 19:18:21 +0000
21@@ -1,6 +1,6 @@
22 # -*- coding: utf-8 -*-
23
24-# Copyright 2011-2012 Canonical Ltd.
25+# Copyright 2011 Canonical Ltd.
26 #
27 # This program is free software: you can redistribute it and/or modify it
28 # under the terms of the GNU General Public License version 3, as published
29@@ -22,9 +22,10 @@
30 import uuid
31 from sst.actions import *
32 import actions.setup as setup_actions
33-import actions.teardown as teardown_actions
34 import actions.contacts as contacts_actions
35-from data.contact import Contact, Name, Email
36+from data.contact import Contact
37+from data.contact import Name
38+from data.contact import Email
39
40 setup_actions.setup()
41 contacts_actions.open()
42@@ -35,4 +36,3 @@
43 contact = Contact(name, (email,))
44 contacts_actions.add_contact(contact)
45 contacts_actions.assert_contact_information(contact)
46-teardown_actions.tear_down()
47
48=== modified file 'ubuntuone/web/tests/sst/contacts/u1webc002_editcontact.py'
49--- ubuntuone/web/tests/sst/contacts/u1webc002_editcontact.py 2012-03-22 01:20:22 +0000
50+++ ubuntuone/web/tests/sst/contacts/u1webc002_editcontact.py 2012-03-27 19:18:21 +0000
51@@ -1,6 +1,6 @@
52 # -*- coding: utf-8 -*-
53
54-# Copyright 2011-2012 Canonical Ltd.
55+# Copyright 2011 Canonical Ltd.
56 #
57 # This program is free software: you can redistribute it and/or modify it
58 # under the terms of the GNU General Public License version 3, as published
59@@ -22,9 +22,10 @@
60 import uuid
61 from sst.actions import *
62 import actions.setup as setup_actions
63-import actions.teardown as teardown_actions
64 import actions.contacts as contacts_actions
65-from data.contact import Contact, Name, Email
66+from data.contact import Contact
67+from data.contact import Name
68+from data.contact import Email
69
70 setup_actions.setup()
71 contacts_actions.open()
72@@ -43,4 +44,3 @@
73 # If it were, test will fail because two elements with the same id were found.
74 contacts_actions.edit_contact(edited_contact)
75 contacts_actions.assert_contact_information(edited_contact)
76-teardown_actions.tear_down()
77
78=== modified file 'ubuntuone/web/tests/sst/contacts/u1webc003_deletecontact.py'
79--- ubuntuone/web/tests/sst/contacts/u1webc003_deletecontact.py 2012-03-22 01:20:22 +0000
80+++ ubuntuone/web/tests/sst/contacts/u1webc003_deletecontact.py 2012-03-27 19:18:21 +0000
81@@ -1,6 +1,6 @@
82 # -*- coding: utf-8 -*-
83
84-# Copyright 2011-2012 Canonical Ltd.
85+# Copyright 2011 Canonical Ltd.
86 #
87 # This program is free software: you can redistribute it and/or modify it
88 # under the terms of the GNU General Public License version 3, as published
89@@ -22,9 +22,10 @@
90 import uuid
91 from sst.actions import *
92 import actions.setup as setup_actions
93-import actions.teardown as teardown_actions
94 import actions.contacts as contacts_actions
95-from data.contact import Contact, Name, Email
96+from data.contact import Contact
97+from data.contact import Name
98+from data.contact import Email
99
100 setup_actions.setup()
101 contacts_actions.open()
102@@ -39,4 +40,3 @@
103 contacts_actions.assert_contact_exists(contact_identifier)
104 contacts_actions.delete_contact()
105 fails(contacts_actions.assert_contact_exists, contact_identifier)
106-teardown_actions.tear_down()
107
108=== modified file 'ubuntuone/web/tests/sst/files/u1webf001_uploadfile.py'
109--- ubuntuone/web/tests/sst/files/u1webf001_uploadfile.py 2012-03-22 02:55:32 +0000
110+++ ubuntuone/web/tests/sst/files/u1webf001_uploadfile.py 2012-03-27 19:18:21 +0000
111@@ -1,6 +1,9 @@
112 # -*- coding: utf-8 -*-
113
114-# Copyright 2011-2012 Canonical Ltd.
115+# Authors:
116+# Leo Arias <leo.arias@canonical.com>
117+#
118+# Copyright 2011 Canonical Ltd.
119 #
120 # This program is free software: you can redistribute it and/or modify it
121 # under the terms of the GNU General Public License version 3, as published
122@@ -21,7 +24,6 @@
123
124 from sst.actions import *
125 import actions.setup as setup_actions
126-import actions.teardown as teardown_actions
127 import actions.files as files_actions
128 from os import path, remove
129 import tempfile
130@@ -45,4 +47,3 @@
131 assert files_actions.get_file_size(file_name) == '54 bytes'
132 files_actions.assert_file_information_is_shown(file_name)
133 files_actions.assert_file_type(file_name, 'text/plain')
134-teardown_actions.tear_down()
135
136=== modified file 'ubuntuone/web/tests/sst/files/u1webf002_publishfile.py'
137--- ubuntuone/web/tests/sst/files/u1webf002_publishfile.py 2012-03-22 02:55:32 +0000
138+++ ubuntuone/web/tests/sst/files/u1webf002_publishfile.py 2012-03-27 19:18:21 +0000
139@@ -1,6 +1,9 @@
140 # -*- coding: utf-8 -*-
141
142-# Copyright 2011-2012 Canonical Ltd.
143+# Authors:
144+# Leo Arias <leo.arias@canonical.com>
145+#
146+# Copyright 2011 Canonical Ltd.
147 #
148 # This program is free software: you can redistribute it and/or modify it
149 # under the terms of the GNU General Public License version 3, as published
150@@ -21,7 +24,6 @@
151
152 from sst.actions import *
153 import actions.setup as setup_actions
154-import actions.teardown as teardown_actions
155 import actions.files as files_actions
156 from os import path, remove
157 import tempfile
158@@ -45,4 +47,3 @@
159 files_actions.assert_file_published(file_name)
160 file_url = files_actions.go_to_public_url(file_name)
161 assert_text(get_element(tag='body'), file_contents)
162-teardown_actions.tear_down()
163
164=== modified file 'ubuntuone/web/tests/sst/files/u1webf003_stoppublishingfile.py'
165--- ubuntuone/web/tests/sst/files/u1webf003_stoppublishingfile.py 2012-03-22 02:55:32 +0000
166+++ ubuntuone/web/tests/sst/files/u1webf003_stoppublishingfile.py 2012-03-27 19:18:21 +0000
167@@ -1,6 +1,9 @@
168 # -*- coding: utf-8 -*-
169
170-# Copyright 2011-2012 Canonical Ltd.
171+# Authors:
172+# Leo Arias <leo.arias@canonical.com>
173+#
174+# Copyright 2011 Canonical Ltd.
175 #
176 # This program is free software: you can redistribute it and/or modify it
177 # under the terms of the GNU General Public License version 3, as published
178@@ -21,7 +24,6 @@
179
180 from sst.actions import *
181 import actions.setup as setup_actions
182-import actions.teardown as teardown_actions
183 import actions.files as files_actions
184 from os import path, remove
185 import tempfile
186@@ -49,4 +51,3 @@
187 set_base_url(base_url)
188 go_to(path)
189 assert_text(get_element(tag='body'), 'Could not locate object')
190-teardown_actions.tear_down()
191
192=== modified file 'ubuntuone/web/tests/sst/files/u1webf004_downloadfile.py'
193--- ubuntuone/web/tests/sst/files/u1webf004_downloadfile.py 2012-03-22 02:55:32 +0000
194+++ ubuntuone/web/tests/sst/files/u1webf004_downloadfile.py 2012-03-27 19:18:21 +0000
195@@ -1,6 +1,9 @@
196 # -*- coding: utf-8 -*-
197
198-# Copyright 2011-2012 Canonical Ltd.
199+# Authors:
200+# Leo Arias <leo.arias@canonical.com>
201+#
202+# Copyright 2011 Canonical Ltd.
203 #
204 # This program is free software: you can redistribute it and/or modify it
205 # under the terms of the GNU General Public License version 3, as published
206@@ -21,18 +24,12 @@
207
208 from sst.actions import *
209 import actions.setup as setup_actions
210-import actions.teardown as teardown_actions
211 import actions.files as files_actions
212 from os import path, remove
213 import tempfile
214 import uuid
215 import urlparse
216
217-skip('Selenium has no way to download the file. The file has to be ' \
218- 'downloaded with something like urllib, but then we required to do ' \
219- 'the authentication again. An alternative would be to use a Firefox ' \
220- 'profile with autosave to a predefined location, but SST has no easy ' \
221- 'way to set a profile, and that will only work for Firefox')
222 setup_actions.setup()
223 files_actions.open()
224 file_uuid = str(uuid.uuid1())
225@@ -49,4 +46,8 @@
226 remove(upload.name)
227 file_url = files_actions.get_download_url(file_name)
228 # TODO verify the downloaded file.
229-teardown_actions.tear_down()
230+skip('Selenium has no way to download the file. The file has to be ' \
231+ 'downloaded with something like urllib, but then we required to do ' \
232+ 'the authentication again. An alternative would be to use a Firefox ' \
233+ 'profile with autosave to a predefined location, but SST has no easy ' \
234+ 'way to set a profile, and that will only work for Firefox')
235
236=== modified file 'ubuntuone/web/tests/sst/files/u1webf005_deletefile.py'
237--- ubuntuone/web/tests/sst/files/u1webf005_deletefile.py 2012-03-22 02:55:32 +0000
238+++ ubuntuone/web/tests/sst/files/u1webf005_deletefile.py 2012-03-27 19:18:21 +0000
239@@ -1,6 +1,9 @@
240 # -*- coding: utf-8 -*-
241
242-# Copyright 2011-2012 Canonical Ltd.
243+# Authors:
244+# Leo Arias <leo.arias@canonical.com>
245+#
246+# Copyright 2011 Canonical Ltd.
247 #
248 # This program is free software: you can redistribute it and/or modify it
249 # under the terms of the GNU General Public License version 3, as published
250@@ -21,7 +24,6 @@
251
252 from sst.actions import *
253 import actions.setup as setup_actions
254-import actions.teardown as teardown_actions
255 import actions.files as files_actions
256 import os.path
257 import tempfile
258@@ -43,4 +45,3 @@
259 files_actions.assert_file_exists(file_name)
260 files_actions.delete_file(file_name)
261 fails(files_actions.assert_file_exists, file_name)
262-teardown_actions.tear_down()
263
264=== modified file 'ubuntuone/web/tests/sst/files/u1webf006_createfolder.py'
265--- ubuntuone/web/tests/sst/files/u1webf006_createfolder.py 2012-03-22 02:55:32 +0000
266+++ ubuntuone/web/tests/sst/files/u1webf006_createfolder.py 2012-03-27 19:18:21 +0000
267@@ -1,6 +1,9 @@
268 # -*- coding: utf-8 -*-
269
270-# Copyright 2011-2012 Canonical Ltd.
271+# Authors:
272+# Leo Arias <leo.arias@canonical.com>
273+#
274+# Copyright 2011 Canonical Ltd.
275 #
276 # This program is free software: you can redistribute it and/or modify it
277 # under the terms of the GNU General Public License version 3, as published
278@@ -21,7 +24,6 @@
279
280 from sst.actions import *
281 import actions.setup as setup_actions
282-import actions.teardown as teardown_actions
283 import actions.files as files_actions
284 import uuid
285
286@@ -36,4 +38,4 @@
287 files_actions.assert_folder_information_is_shown(folder_name)
288 files_actions.open_folder(folder_name)
289 files_actions.assert_breadcrumb(folder_name)
290-teardown_actions.tear_down()
291+# TODO should it show the gallery link?
292
293=== modified file 'ubuntuone/web/tests/sst/files/u1webf007_sharefolder.py'
294--- ubuntuone/web/tests/sst/files/u1webf007_sharefolder.py 2012-03-22 02:55:32 +0000
295+++ ubuntuone/web/tests/sst/files/u1webf007_sharefolder.py 2012-03-27 19:18:21 +0000
296@@ -1,6 +1,9 @@
297 # -*- coding: utf-8 -*-
298
299-# Copyright 2011-2012 Canonical Ltd.
300+# Authors:
301+# Leo Arias <leo.arias@canonical.com>
302+#
303+# Copyright 2011 Canonical Ltd.
304 #
305 # This program is free software: you can redistribute it and/or modify it
306 # under the terms of the GNU General Public License version 3, as published
307@@ -21,7 +24,6 @@
308
309 from sst.actions import *
310 import actions.setup as setup_actions
311-import actions.teardown as teardown_actions
312 import actions.files as files_actions
313 import uuid
314 from datetime import datetime
315@@ -37,4 +39,4 @@
316 files_actions.assert_folder_information_is_shown(folder_name)
317 files_actions.assert_folder_shared(folder_name, email_address,
318 date=datetime.utcnow())
319-teardown_actions.tear_down()
320+
321
322=== modified file 'ubuntuone/web/tests/sst/files/u1webf008_stopsharingfolder.py'
323--- ubuntuone/web/tests/sst/files/u1webf008_stopsharingfolder.py 2012-03-22 02:55:32 +0000
324+++ ubuntuone/web/tests/sst/files/u1webf008_stopsharingfolder.py 2012-03-27 19:18:21 +0000
325@@ -1,6 +1,9 @@
326 # -*- coding: utf-8 -*-
327
328-# Copyright 2011-2012 Canonical Ltd.
329+# Authors:
330+# Leo Arias <leo.arias@canonical.com>
331+#
332+# Copyright 2011 Canonical Ltd.
333 #
334 # This program is free software: you can redistribute it and/or modify it
335 # under the terms of the GNU General Public License version 3, as published
336@@ -22,7 +25,6 @@
337
338 from sst.actions import *
339 import actions.setup as setup_actions
340-import actions.teardown as teardown_actions
341 import actions.files as files_actions
342 import uuid
343 from datetime import datetime
344@@ -38,4 +40,3 @@
345 today = datetime.utcnow()
346 files_actions.stop_sharing_folder(folder_name, email_address, today)
347 fails(files_actions.assert_folder_shared, folder_name, email_address, today)
348-teardown_actions.tear_down()
349
350=== modified file 'ubuntuone/web/tests/sst/files/u1webf009_deletefolder.py'
351--- ubuntuone/web/tests/sst/files/u1webf009_deletefolder.py 2012-03-22 02:55:32 +0000
352+++ ubuntuone/web/tests/sst/files/u1webf009_deletefolder.py 2012-03-27 19:18:21 +0000
353@@ -1,6 +1,9 @@
354 # -*- coding: utf-8 -*-
355
356-# Copyright 2011-2012 Canonical Ltd.
357+# Authors:
358+# Leo Arias <leo.arias@canonical.com>
359+#
360+# Copyright 2011 Canonical Ltd.
361 #
362 # This program is free software: you can redistribute it and/or modify it
363 # under the terms of the GNU General Public License version 3, as published
364@@ -21,7 +24,6 @@
365
366 from sst.actions import *
367 import actions.setup as setup_actions
368-import actions.teardown as teardown_actions
369 import actions.files as files_actions
370 import uuid
371
372@@ -33,4 +35,3 @@
373 files_actions.assert_file_exists(folder_name)
374 files_actions.delete_file(folder_name)
375 fails(files_actions.assert_file_exists, folder_name)
376-teardown_actions.tear_down()
377
378=== modified file 'ubuntuone/web/tests/sst/files/u1webf010_foldernavigation.py'
379--- ubuntuone/web/tests/sst/files/u1webf010_foldernavigation.py 2012-03-22 02:55:32 +0000
380+++ ubuntuone/web/tests/sst/files/u1webf010_foldernavigation.py 2012-03-27 19:18:21 +0000
381@@ -1,6 +1,9 @@
382 # -*- coding: utf-8 -*-
383
384-# Copyright 2011-2012 Canonical Ltd.
385+# Authors:
386+# Leo Arias <leo.arias@canonical.com>
387+#
388+# Copyright 2011 Canonical Ltd.
389 #
390 # This program is free software: you can redistribute it and/or modify it
391 # under the terms of the GNU General Public License version 3, as published
392@@ -22,7 +25,6 @@
393
394 from sst.actions import *
395 import actions.setup as setup_actions
396-import actions.teardown as teardown_actions
397 import actions.files as files_actions
398 from random import random
399 from datetime import date
400@@ -50,4 +52,3 @@
401 files_actions.assert_breadcrumb(parent_folder_name, sibling_folder_name)
402 files_actions.go_to_breadcrumb()
403 files_actions.assert_breadcrumb()
404-teardown_actions.tear_down()
405
406=== modified file 'ubuntuone/web/tests/sst/music/u1webm001_playsong.py'
407--- ubuntuone/web/tests/sst/music/u1webm001_playsong.py 2012-03-22 02:55:32 +0000
408+++ ubuntuone/web/tests/sst/music/u1webm001_playsong.py 2012-03-27 19:18:21 +0000
409@@ -1,6 +1,6 @@
410 # -*- coding: utf-8 -*-
411
412-# Copyright 2011-2012 Canonical Ltd.
413+# Copyright 2011 Canonical Ltd.
414 #
415 # This program is free software: you can redistribute it and/or modify it
416 # under the terms of the GNU General Public License version 3, as published
417@@ -21,7 +21,6 @@
418
419 from sst.actions import *
420 import actions.setup as setup_actions
421-import actions.teardown as teardown_actions
422 import actions.music as music_actions
423 from data.song import Song
424 from data.user import User
425@@ -40,4 +39,3 @@
426 music_actions.assert_current_song(song)
427 music_actions.assert_player_playing()
428 music_actions.assert_player_title(1, 1)
429-teardown_actions.tear_down()
430
431=== modified file 'ubuntuone/web/tests/sst/music/u1webm002_selectartist.py'
432--- ubuntuone/web/tests/sst/music/u1webm002_selectartist.py 2012-03-22 02:55:32 +0000
433+++ ubuntuone/web/tests/sst/music/u1webm002_selectartist.py 2012-03-27 19:18:21 +0000
434@@ -1,6 +1,6 @@
435 # -*- coding: utf-8 -*-
436
437-# Copyright 2011-2012 Canonical Ltd.
438+# Copyright 2011 Canonical Ltd.
439 #
440 # This program is free software: you can redistribute it and/or modify it
441 # under the terms of the GNU General Public License version 3, as published
442@@ -21,7 +21,6 @@
443
444 from sst.actions import *
445 import actions.setup as setup_actions
446-import actions.teardown as teardown_actions
447 import actions.music as music_actions
448 from data.song import Song
449 from data.user import User
450@@ -38,4 +37,3 @@
451 album = 'Free Film Music (cameronmusic.co.uk)'
452 music_actions.select_artist(artist)
453 music_actions.assert_artist_albums(artist, [album])
454-teardown_actions.tear_down()
455
456=== modified file 'ubuntuone/web/tests/sst/music/u1webm003_selectalbum.py'
457--- ubuntuone/web/tests/sst/music/u1webm003_selectalbum.py 2012-03-22 02:55:32 +0000
458+++ ubuntuone/web/tests/sst/music/u1webm003_selectalbum.py 2012-03-27 19:18:21 +0000
459@@ -1,6 +1,6 @@
460 # -*- coding: utf-8 -*-
461
462-# Copyright 2011-2012 Canonical Ltd.
463+# Copyright 2011 Canonical Ltd.
464 #
465 # This program is free software: you can redistribute it and/or modify it
466 # under the terms of the GNU General Public License version 3, as published
467@@ -21,7 +21,6 @@
468
469 from sst.actions import *
470 import actions.setup as setup_actions
471-import actions.teardown as teardown_actions
472 import actions.music as music_actions
473 from data.song import Song
474 from data.user import User
475@@ -37,4 +36,3 @@
476 song = Song('gentle marimba', 'Alastair Cameron', 'Free Film Music (cameronmusic.co.uk)')
477 music_actions.select_album(song.album)
478 music_actions.assert_album_songs(song.artist, song.album, [song.title])
479-teardown_actions.tear_down()
480
481=== modified file 'ubuntuone/web/tests/sst/navigation/u1webn001_maintabs.py'
482--- ubuntuone/web/tests/sst/navigation/u1webn001_maintabs.py 2012-03-22 02:55:32 +0000
483+++ ubuntuone/web/tests/sst/navigation/u1webn001_maintabs.py 2012-03-27 19:18:21 +0000
484@@ -1,6 +1,6 @@
485 # -*- coding: utf-8 -*-
486
487-# Copyright 2011-2012 Canonical Ltd.
488+# Copyright 2011 Canonical Ltd.
489 #
490 # This program is free software: you can redistribute it and/or modify it
491 # under the terms of the GNU General Public License version 3, as published
492@@ -21,7 +21,6 @@
493
494 from sst.actions import *
495 import actions.setup as setup_actions
496-import actions.teardown as teardown_actions
497 import actions.dashboard as dashboard_actions
498 import actions.files as files_actions
499 import actions.contacts as contacts_actions
500@@ -31,4 +30,3 @@
501 files_actions.open()
502 contacts_actions.open()
503 dashboard_actions.open()
504-teardown_actions.tear_down()
505
506=== modified file 'ubuntuone/web/tests/sst/payments/u1webp001_paymusicstreaming.py'
507--- ubuntuone/web/tests/sst/payments/u1webp001_paymusicstreaming.py 2012-03-22 02:55:32 +0000
508+++ ubuntuone/web/tests/sst/payments/u1webp001_paymusicstreaming.py 2012-03-27 19:18:21 +0000
509@@ -1,6 +1,10 @@
510 # -*- coding: utf-8 -*-
511
512-# Copyright 2011-2012 Canonical Ltd.
513+# Authors:
514+# Rick McBride <rick.mcbride@canonical.com>
515+# Leo Arias <leo.arias@canonical.com>
516+#
517+# Copyright 2011 Canonical Ltd.
518 #
519 # This program is free software: you can redistribute it and/or modify it
520 # under the terms of the GNU General Public License version 3, as published
521@@ -20,7 +24,6 @@
522 from config import ENVIRONMENT
523 from datetime import date
524 import actions.setup as setup_actions
525-import actions.teardown as teardown_actions
526 import actions.services as services_actions
527 import actions.payment as payment_actions
528 import actions.payment_confirmed as payment_confirmed_actions
529@@ -41,4 +44,3 @@
530 get_element(tag='p', text='You are subscribed yearly')
531 get_element(tag='span', text='See my subscription')
532 get_element(tag='span', text='20GB with Music Streaming')
533-teardown_actions.tear_down()
534
535=== modified file 'ubuntuone/web/tests/sst/payments/u1webp002_payadditionalstorage.py'
536--- ubuntuone/web/tests/sst/payments/u1webp002_payadditionalstorage.py 2012-03-22 02:55:32 +0000
537+++ ubuntuone/web/tests/sst/payments/u1webp002_payadditionalstorage.py 2012-03-27 19:18:21 +0000
538@@ -1,5 +1,9 @@
539 # -*- coding: utf-8 -*-
540
541+# Authors:
542+# Rick McBride <rick.mcbride@canonical.com>
543+# Leo Arias <leo.arias@canonical.com>
544+#
545 # Copyright 2011-2012 Canonical Ltd.
546 #
547 # This program is free software: you can redistribute it and/or modify it
548@@ -19,7 +23,6 @@
549 from sst.actions import *
550 from config import ENVIRONMENT
551 import actions.setup as setup_actions
552-import actions.teardown as teardown_actions
553 import actions.services as services_actions
554 import actions.payment as payment_actions
555 import actions.payment_confirmed as payment_confirmed_actions
556@@ -35,4 +38,3 @@
557 # TODO move this to the module account actions.
558 get_element(tag='span', text='5GB with Ubuntu One Free')
559 get_element(tag='span', text='20GB from storage add-on')
560-teardown_actions.tear_down()
561
562=== modified file 'ubuntuone/web/tests/sst/payments/u1webp003_paywithrefusedcard.py'
563--- ubuntuone/web/tests/sst/payments/u1webp003_paywithrefusedcard.py 2012-03-22 02:55:32 +0000
564+++ ubuntuone/web/tests/sst/payments/u1webp003_paywithrefusedcard.py 2012-03-27 19:18:21 +0000
565@@ -1,6 +1,10 @@
566 # -*- coding: utf-8 -*-
567
568-# Copyright 2011-2012 Canonical Ltd.
569+# Authors:
570+# Rick McBride <rick.mcbride@canonical.com>
571+# Leo Arias <leo.arias@canonical.com>
572+#
573+# Copyright 2011 Canonical Ltd.
574 #
575 # This program is free software: you can redistribute it and/or modify it
576 # under the terms of the GNU General Public License version 3, as published
577@@ -19,7 +23,6 @@
578 from sst.actions import *
579 from config import ENVIRONMENT
580 import actions.setup as setup_actions
581-import actions.teardown as teardown_actions
582 import actions.services as services_actions
583 import actions.payment as payment_actions
584 import actions.payment_confirmed as payment_confirmed_actions
585@@ -34,4 +37,3 @@
586 payment_actions.confirm_payment_details()
587 payment_confirmed_actions.assert_page_title()
588 payment_confirmed_actions.assert_failed_payment()
589-teardown_actions.tear_down()
590
591=== modified file 'ubuntuone/web/tests/sst/services/u1webse001_information.py'
592--- ubuntuone/web/tests/sst/services/u1webse001_information.py 2012-03-22 02:55:32 +0000
593+++ ubuntuone/web/tests/sst/services/u1webse001_information.py 2012-03-27 19:18:21 +0000
594@@ -1,6 +1,10 @@
595 # -*- coding: utf-8 -*-
596
597-# Copyright 2011-2012 Canonical Ltd.
598+# Authors:
599+# Rick McBride <rick.mcbride@canonical.com>
600+# Leo Arias <leo.arias@canonical.com>
601+#
602+# Copyright 2011 Canonical Ltd.
603 #
604 # This program is free software: you can redistribute it and/or modify it
605 # under the terms of the GNU General Public License version 3, as published
606@@ -18,10 +22,8 @@
607
608 from sst.actions import *
609 import actions.setup as setup_actions
610-import actions.teardown as teardown_actions
611 import actions.services as services_actions
612
613 setup_actions.setup()
614 services_actions.open()
615 services_actions.assert_services_information()
616-teardown_actions.tear_down()
617
618=== modified file 'ubuntuone/web/tests/sst/services/u1webse002_musicstreamingmonthly.py'
619--- ubuntuone/web/tests/sst/services/u1webse002_musicstreamingmonthly.py 2012-03-22 02:55:32 +0000
620+++ ubuntuone/web/tests/sst/services/u1webse002_musicstreamingmonthly.py 2012-03-27 19:18:21 +0000
621@@ -1,6 +1,10 @@
622 # -*- coding: utf-8 -*-
623
624-# Copyright 2011-2012 Canonical Ltd.
625+# Authors:
626+# Rick McBride <rick.mcbride@canonical.com>
627+# Leo Arias <leo.arias@canonical.com>
628+#
629+# Copyright 2011 Canonical Ltd.
630 #
631 # This program is free software: you can redistribute it and/or modify it
632 # under the terms of the GNU General Public License version 3, as published
633@@ -18,7 +22,6 @@
634
635 from sst.actions import *
636 import actions.setup as setup_actions
637-import actions.teardown as teardown_actions
638 import actions.services as services_actions
639 import actions.payment as payment_actions
640
641@@ -27,4 +30,3 @@
642 services_actions.buy_music_streaming_monthly()
643 payment_actions.assert_page_title()
644 payment_actions.assert_monthly_music_streaming_subscription()
645-teardown_actions.tear_down()
646
647=== modified file 'ubuntuone/web/tests/sst/services/u1webse003_musicstreamingannually.py'
648--- ubuntuone/web/tests/sst/services/u1webse003_musicstreamingannually.py 2012-03-22 02:55:32 +0000
649+++ ubuntuone/web/tests/sst/services/u1webse003_musicstreamingannually.py 2012-03-27 19:18:21 +0000
650@@ -1,6 +1,10 @@
651 # -*- coding: utf-8 -*-
652
653-# Copyright 2011-2012 Canonical Ltd.
654+# Authors:
655+# Rick McBride <rick.mcbride@canonical.com>
656+# Leo Arias <leo.arias@canonical.com>
657+#
658+# Copyright 2011 Canonical Ltd.
659 #
660 # This program is free software: you can redistribute it and/or modify it
661 # under the terms of the GNU General Public License version 3, as published
662@@ -18,7 +22,6 @@
663
664 from sst.actions import *
665 import actions.setup as setup_actions
666-import actions.teardown as teardown_actions
667 import actions.services as services_actions
668 import actions.payment as payment_actions
669
670@@ -27,4 +30,3 @@
671 services_actions.buy_music_streaming_yearly()
672 payment_actions.assert_page_title()
673 payment_actions.assert_annually_music_streaming_subscription()
674-teardown_actions.tear_down()
675
676=== modified file 'ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py'
677--- ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py 2012-03-22 02:55:32 +0000
678+++ ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py 2012-03-27 19:18:21 +0000
679@@ -1,6 +1,10 @@
680 # -*- coding: utf-8 -*-
681
682-# Copyright 2012 Canonical Ltd.
683+# Authors:
684+# Rick McBride <rick.mcbride@canonical.com>
685+# Leo Arias <leo.arias@canonical.com>
686+#
687+# Copyright 2011 Canonical Ltd.
688 #
689 # This program is free software: you can redistribute it and/or modify it
690 # under the terms of the GNU General Public License version 3, as published
691@@ -18,7 +22,6 @@
692
693 from sst.actions import *
694 import actions.setup as setup_actions
695-import actions.teardown as teardown_actions
696 import actions.services as services_actions
697
698 setup_actions.setup()
699@@ -38,4 +41,3 @@
700 click_element('storage-gb')
701 sleep(1)
702 services_actions.assert_storage(25)
703-teardown_actions.tear_down()
704
705=== modified file 'ubuntuone/web/tests/sst/services/u1webse005_addmonthlystorage.py'
706--- ubuntuone/web/tests/sst/services/u1webse005_addmonthlystorage.py 2012-03-22 02:55:32 +0000
707+++ ubuntuone/web/tests/sst/services/u1webse005_addmonthlystorage.py 2012-03-27 19:18:21 +0000
708@@ -1,6 +1,10 @@
709 # -*- coding: utf-8 -*-
710
711-# Copyright 2011-2012 Canonical Ltd.
712+# Authors:
713+# Rick McBride <rick.mcbride@canonical.com>
714+# Leo Arias <leo.arias@canonical.com>
715+#
716+# Copyright 2011 Canonical Ltd.
717 #
718 # This program is free software: you can redistribute it and/or modify it
719 # under the terms of the GNU General Public License version 3, as published
720@@ -18,7 +22,6 @@
721
722 from sst.actions import *
723 import actions.setup as setup_actions
724-import actions.teardown as teardown_actions
725 import actions.services as services_actions
726 import actions.payment as payment_actions
727
728@@ -28,4 +31,3 @@
729 services_actions.buy_extra_storage_monthly()
730 payment_actions.assert_page_title()
731 payment_actions.assert_monthly_extra_storage_subscription(5)
732-teardown_actions.tear_down()
733
734=== modified file 'ubuntuone/web/tests/sst/services/u1webse006_addannuallystorage.py'
735--- ubuntuone/web/tests/sst/services/u1webse006_addannuallystorage.py 2012-03-22 02:55:32 +0000
736+++ ubuntuone/web/tests/sst/services/u1webse006_addannuallystorage.py 2012-03-27 19:18:21 +0000
737@@ -1,6 +1,10 @@
738 # -*- coding: utf-8 -*-
739
740-# Copyright 2011-2012 Canonical Ltd.
741+# Authors:
742+# Rick McBride <rick.mcbride@canonical.com>
743+# Leo Arias <leo.arias@canonical.com>
744+#
745+# Copyright 2011 Canonical Ltd.
746 #
747 # This program is free software: you can redistribute it and/or modify it
748 # under the terms of the GNU General Public License version 3, as published
749@@ -18,7 +22,6 @@
750
751 from sst.actions import *
752 import actions.setup as setup_actions
753-import actions.teardown as teardown_actions
754 import actions.services as services_actions
755 import actions.payment as payment_actions
756
757@@ -28,4 +31,3 @@
758 services_actions.buy_extra_storage_yearly()
759 payment_actions.assert_page_title()
760 payment_actions.assert_annually_extra_storage_subscription(5)
761-teardown_actions.tear_down()
762
763=== modified file 'ubuntuone/web/tests/sst/session/u1webs002_login.py'
764--- ubuntuone/web/tests/sst/session/u1webs002_login.py 2012-03-22 02:55:32 +0000
765+++ ubuntuone/web/tests/sst/session/u1webs002_login.py 2012-03-27 19:18:21 +0000
766@@ -1,6 +1,6 @@
767 # -*- coding: utf-8 -*-
768
769-# Copyright 2011-2012 Canonical Ltd.
770+# Copyright 2011 Canonical Ltd.
771 #
772 # This program is free software: you can redistribute it and/or modify it
773 # under the terms of the GNU General Public License version 3, as published
774@@ -21,7 +21,6 @@
775
776 from sst.actions import *
777 import actions.setup as setup_actions
778-import actions.teardown as teardown_actions
779 import actions.dashboard as dashboard_actions
780 import actions.header as header_actions
781 from _passwords import full_name
782@@ -30,4 +29,3 @@
783 dashboard_actions.assert_page_title()
784 header_actions.assert_login(full_name)
785 dashboard_actions.assert_welcome_message(full_name)
786-teardown_actions.tear_down()
787
788=== removed file 'ubuntuone/web/tests/sst/shared/actions/teardown.py'
789--- ubuntuone/web/tests/sst/shared/actions/teardown.py 2012-03-22 02:55:32 +0000
790+++ ubuntuone/web/tests/sst/shared/actions/teardown.py 1970-01-01 00:00:00 +0000
791@@ -1,37 +0,0 @@
792-# -*- coding: utf-8 -*-
793-
794-# Copyright 2012 Canonical Ltd.
795-#
796-# This program is free software: you can redistribute it and/or modify it
797-# under the terms of the GNU General Public License version 3, as published
798-# by the Free Software Foundation.
799-#
800-# This program is distributed in the hope that it will be useful, but
801-# WITHOUT ANY WARRANTY; without even the implied warranties of
802-# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
803-# PURPOSE. See the GNU General Public License for more details.
804-#
805-# You should have received a copy of the GNU General Public License along
806-# with this program. If not, see <http://www.gnu.org/licenses/>.
807-
808-"""Tear down actions for Ubuntu One sst tests."""
809-
810-from sst.actions import *
811-from sst.actions import browser
812-
813-import actions.header as header_actions
814-import actions.sso as sso_actions
815-
816-def tear_down():
817- go_to()
818- if header_actions.is_logged_in():
819- _prevent_unsaved_data_confirmation()
820- header_actions.logout()
821- sso_actions.assert_logout()
822-
823-def _prevent_unsaved_data_confirmation():
824- """The browser might have unsaved data and ask for a confirmation before
825- logging out. This will prevent that dialog to appear.
826-
827- """
828- browser.execute_script("window.onbeforeunload = function(e){};")
829
830=== modified file 'ubuntuone/web/tests/sst/smoketest/contactspage.py'
831--- ubuntuone/web/tests/sst/smoketest/contactspage.py 2012-03-22 02:55:32 +0000
832+++ ubuntuone/web/tests/sst/smoketest/contactspage.py 2012-03-27 19:18:21 +0000
833@@ -1,6 +1,9 @@
834 # -*- coding: utf-8 -*-
835
836-# Copyright 2011-2012 Canonical Ltd.
837+# Authors:
838+# Rick McBride <rick.mcbride@canonical.com>
839+#
840+# Copyright 2011 Canonical Ltd.
841 #
842 # This program is free software: you can redistribute it and/or modify it
843 # under the terms of the GNU General Public License version 3, as published
844@@ -17,7 +20,6 @@
845 '''Check existence of Contacts Page.'''
846 from sst.actions import *
847 import actions.setup as setup_actions
848-import actions.teardown as teardown_actions
849
850 setup_actions.setup(new_user=False)
851 go_to('/contacts/')
852@@ -25,4 +27,3 @@
853 get_element(css_class='add-button', text='Add contact')
854 # possibly add tests for Desktop, Facebook and Ubuntu One Mobile here or
855 # in seperate tests
856-teardown_actions.tear_down()
857
858=== modified file 'ubuntuone/web/tests/sst/smoketest/filespage.py'
859--- ubuntuone/web/tests/sst/smoketest/filespage.py 2012-03-22 02:55:32 +0000
860+++ ubuntuone/web/tests/sst/smoketest/filespage.py 2012-03-27 19:18:21 +0000
861@@ -1,6 +1,9 @@
862 # -*- coding: utf-8 -*-
863
864-# Copyright 2011-2012 Canonical Ltd.
865+# Authors:
866+# Rick McBride <rick.mcbride@canonical.com>
867+#
868+# Copyright 2011 Canonical Ltd.
869 #
870 # This program is free software: you can redistribute it and/or modify it
871 # under the terms of the GNU General Public License version 3, as published
872@@ -17,11 +20,9 @@
873 '''Check existence of Files Page.'''
874 from sst.actions import *
875 import actions.setup as setup_actions
876-import actions.teardown as teardown_actions
877
878 setup_actions.setup(new_user=False)
879 assert_title(u'Ubuntu One : Dashboard')
880 go_to('/files/')
881 assert_title(u'Ubuntu One : My Storage')
882 get_element(css_class='add-button', text='Share this folder')
883-teardown_actions.tear_down()
884
885=== modified file 'ubuntuone/web/tests/sst/smoketest/services.py'
886--- ubuntuone/web/tests/sst/smoketest/services.py 2012-03-22 02:55:32 +0000
887+++ ubuntuone/web/tests/sst/smoketest/services.py 2012-03-27 19:18:21 +0000
888@@ -1,6 +1,10 @@
889 # -*- coding: utf-8 -*-
890
891-# Copyright 2011-2012 Canonical Ltd.
892+# Authors:
893+# Rick McBride <rick.mcbride@canonical.com>
894+# Leo Arias <leo.arias@canonical.com>
895+#
896+# Copyright 2011 Canonical Ltd.
897 #
898 # This program is free software: you can redistribute it and/or modify it
899 # under the terms of the GNU General Public License version 3, as published
900@@ -15,9 +19,7 @@
901 # with this program. If not, see <http://www.gnu.org/licenses/>.
902 from sst.actions import *
903 import actions.setup as setup_actions
904-import actions.teardown as teardown_actions
905
906 setup_actions.setup(new_user=False)
907 go_to('/services/')
908 assert_title(u'Ubuntu One : Services')
909-teardown_actions.tear_down()

Subscribers

People subscribed via source and target branches