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

Proposed by Leo Arias
Status: Superseded
Proposed branch: lp:~elopio/ubuntuone-testing/logout
Merge into: lp:ubuntuone-testing
Prerequisite: lp:~elopio/ubuntuone-testing/configglue
Diff against target: 102 lines (+17/-20)
3 files modified
ubuntuone/web/tests/sst/session/u1webs9_logout.py (+3/-6)
ubuntuone/web/tests/sst/shared/actions/sso.py (+5/-5)
ubuntuone/web/tests/sst/shared/data/environment.py (+9/-9)
To merge this branch: bzr merge lp:~elopio/ubuntuone-testing/logout
Reviewer Review Type Date Requested Status
Vincent Ladeuil Pending
Review via email: mp+119583@code.launchpad.net

This proposal has been superseded by a proposal from 2012-08-14.

Commit message

Updated the logout test.

Description of the change

Updated the logout test.

To post a comment you must log in.
lp:~elopio/ubuntuone-testing/logout updated
131. By Leo Arias

Corrected the copyright years.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== renamed file 'ubuntuone/web/tests/sst/session/u1webs003_logout.py' => 'ubuntuone/web/tests/sst/session/u1webs9_logout.py'
2--- ubuntuone/web/tests/sst/session/u1webs003_logout.py 2011-11-15 06:38:57 +0000
3+++ ubuntuone/web/tests/sst/session/u1webs9_logout.py 2012-08-14 16:26:25 +0000
4@@ -1,6 +1,6 @@
5 # -*- coding: utf-8 -*-
6
7-# Copyright 2011 Canonical Ltd.
8+# Copyright 2011, 2012 Canonical Ltd.
9 #
10 # This program is free software: you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License version 3, as published
12@@ -14,18 +14,15 @@
13 # You should have received a copy of the GNU General Public License along
14 # with this program. If not, see <http://www.gnu.org/licenses/>.
15
16-"""Test case u1webs-003 Log out.
17-Log out from the website.
18-
19-"""
20-
21 from sst.actions import *
22 import actions.setup as setup_actions
23 import actions.header as header_actions
24 import actions.sso as sso_actions
25+from config import environment
26
27 setup_actions.setup()
28 header_actions.logout()
29 sso_actions.assert_logout()
30 sso_actions.return_to_site()
31+assert_url(environment.get_environment().url)
32 header_actions.assert_logout()
33
34=== modified file 'ubuntuone/web/tests/sst/shared/actions/sso.py'
35--- ubuntuone/web/tests/sst/shared/actions/sso.py 2011-12-18 05:00:51 +0000
36+++ ubuntuone/web/tests/sst/shared/actions/sso.py 2012-08-14 16:26:25 +0000
37@@ -1,10 +1,6 @@
38 # -*- coding: utf-8 -*-
39
40-# Authors:
41-# Rick McBride <rick.mcbride@canonical.com>
42-# Leo Arias <leo.arias@canonical.com>
43-#
44-# Copyright 2011 Canonical Ltd.
45+# Copyright 2011, 2012 Canonical Ltd.
46 #
47 # This program is free software: you can redistribute it and/or modify it
48 # under the terms of the GNU General Public License version 3, as published
49@@ -39,6 +35,7 @@
50 write_textfield('id_password', user.password)
51 click_button(get_element(css_class='btn', name='continue'), wait=False)
52
53+
54 def create_new_account(user):
55 click_link(get_element(href='+new_account'))
56 wait_for(assert_title, 'Create account')
57@@ -48,14 +45,17 @@
58 write_textfield('id_passwordconfirm', user.password)
59 click_button(get_element(name='continue'))
60
61+
62 def confirm_email(confirmation_code):
63 write_textfield(get_element(name='confirmation_code'), confirmation_code)
64 click_button(get_element(css_class='btn', text='Continue'))
65
66+
67 def assert_logout():
68 assert_title('You have been logged out')
69 assert_text(get_element(tag='h1', css_class='main'),
70 'You have been logged out')
71
72+
73 def return_to_site():
74 click_link(get_element_by_css('.returnto a'))
75
76=== modified file 'ubuntuone/web/tests/sst/shared/data/environment.py'
77--- ubuntuone/web/tests/sst/shared/data/environment.py 2012-08-14 16:26:24 +0000
78+++ ubuntuone/web/tests/sst/shared/data/environment.py 2012-08-14 16:26:25 +0000
79@@ -14,15 +14,15 @@
80 # You should have received a copy of the GNU General Public License along
81 # with this program. If not, see <http://www.gnu.org/licenses/>.
82
83-base_urls = {'staging': 'https://staging.one.ubuntu.com',
84- 'edge': 'https://edge.one.ubuntu.com',
85- 'production': 'https://one.ubuntu.com'}
86-sso_urls = {'staging': 'https://loging.staging.ubuntu.com',
87- 'edge': 'https://loging.ubuntu.com',
88- 'production': 'https://loging.ubuntu.com'}
89-files_urls = {'staging': 'https://staging.one.ubuntu.com',
90- 'edge': 'https://edge.one.ubuntu.com',
91- 'production': 'https://one.ubuntu.com'}
92+base_urls = {'staging': 'https://staging.one.ubuntu.com/',
93+ 'edge': 'https://edge.one.ubuntu.com/',
94+ 'production': 'https://one.ubuntu.com/'}
95+sso_urls = {'staging': 'https://loging.staging.ubuntu.com/',
96+ 'edge': 'https://loging.ubuntu.com/',
97+ 'production': 'https://loging.ubuntu.com/'}
98+files_urls = {'staging': 'https://staging.one.ubuntu.com/',
99+ 'edge': 'https://edge.one.ubuntu.com/',
100+ 'production': 'https://one.ubuntu.com/'}
101
102 class Environment:
103

Subscribers

People subscribed via source and target branches