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
=== renamed file 'ubuntuone/web/tests/sst/session/u1webs003_logout.py' => 'ubuntuone/web/tests/sst/session/u1webs9_logout.py'
--- ubuntuone/web/tests/sst/session/u1webs003_logout.py 2011-11-15 06:38:57 +0000
+++ ubuntuone/web/tests/sst/session/u1webs9_logout.py 2012-08-14 16:26:25 +0000
@@ -1,6 +1,6 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
22
3# Copyright 2011 Canonical Ltd.3# Copyright 2011, 2012 Canonical Ltd.
4#4#
5# This program is free software: you can redistribute it and/or modify it5# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published6# under the terms of the GNU General Public License version 3, as published
@@ -14,18 +14,15 @@
14# You should have received a copy of the GNU General Public License along14# You should have received a copy of the GNU General Public License along
15# with this program. If not, see <http://www.gnu.org/licenses/>.15# with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17"""Test case u1webs-003 Log out.
18Log out from the website.
19
20"""
21
22from sst.actions import *17from sst.actions import *
23import actions.setup as setup_actions18import actions.setup as setup_actions
24import actions.header as header_actions19import actions.header as header_actions
25import actions.sso as sso_actions20import actions.sso as sso_actions
21from config import environment
2622
27setup_actions.setup()23setup_actions.setup()
28header_actions.logout()24header_actions.logout()
29sso_actions.assert_logout()25sso_actions.assert_logout()
30sso_actions.return_to_site()26sso_actions.return_to_site()
27assert_url(environment.get_environment().url)
31header_actions.assert_logout()28header_actions.assert_logout()
3229
=== modified file 'ubuntuone/web/tests/sst/shared/actions/sso.py'
--- ubuntuone/web/tests/sst/shared/actions/sso.py 2011-12-18 05:00:51 +0000
+++ ubuntuone/web/tests/sst/shared/actions/sso.py 2012-08-14 16:26:25 +0000
@@ -1,10 +1,6 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
22
3# Authors: 3# Copyright 2011, 2012 Canonical Ltd.
4# Rick McBride <rick.mcbride@canonical.com>
5# Leo Arias <leo.arias@canonical.com>
6#
7# Copyright 2011 Canonical Ltd.
8#4#
9# This program is free software: you can redistribute it and/or modify it5# This program is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License version 3, as published6# under the terms of the GNU General Public License version 3, as published
@@ -39,6 +35,7 @@
39 write_textfield('id_password', user.password)35 write_textfield('id_password', user.password)
40 click_button(get_element(css_class='btn', name='continue'), wait=False)36 click_button(get_element(css_class='btn', name='continue'), wait=False)
4137
38
42def create_new_account(user):39def create_new_account(user):
43 click_link(get_element(href='+new_account'))40 click_link(get_element(href='+new_account'))
44 wait_for(assert_title, 'Create account')41 wait_for(assert_title, 'Create account')
@@ -48,14 +45,17 @@
48 write_textfield('id_passwordconfirm', user.password)45 write_textfield('id_passwordconfirm', user.password)
49 click_button(get_element(name='continue'))46 click_button(get_element(name='continue'))
5047
48
51def confirm_email(confirmation_code):49def confirm_email(confirmation_code):
52 write_textfield(get_element(name='confirmation_code'), confirmation_code)50 write_textfield(get_element(name='confirmation_code'), confirmation_code)
53 click_button(get_element(css_class='btn', text='Continue'))51 click_button(get_element(css_class='btn', text='Continue'))
5452
53
55def assert_logout():54def assert_logout():
56 assert_title('You have been logged out')55 assert_title('You have been logged out')
57 assert_text(get_element(tag='h1', css_class='main'),56 assert_text(get_element(tag='h1', css_class='main'),
58 'You have been logged out')57 'You have been logged out')
5958
59
60def return_to_site():60def return_to_site():
61 click_link(get_element_by_css('.returnto a'))61 click_link(get_element_by_css('.returnto a'))
6262
=== modified file 'ubuntuone/web/tests/sst/shared/data/environment.py'
--- ubuntuone/web/tests/sst/shared/data/environment.py 2012-08-14 16:26:24 +0000
+++ ubuntuone/web/tests/sst/shared/data/environment.py 2012-08-14 16:26:25 +0000
@@ -14,15 +14,15 @@
14# You should have received a copy of the GNU General Public License along14# You should have received a copy of the GNU General Public License along
15# with this program. If not, see <http://www.gnu.org/licenses/>.15# with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17base_urls = {'staging': 'https://staging.one.ubuntu.com',17base_urls = {'staging': 'https://staging.one.ubuntu.com/',
18 'edge': 'https://edge.one.ubuntu.com',18 'edge': 'https://edge.one.ubuntu.com/',
19 'production': 'https://one.ubuntu.com'}19 'production': 'https://one.ubuntu.com/'}
20sso_urls = {'staging': 'https://loging.staging.ubuntu.com',20sso_urls = {'staging': 'https://loging.staging.ubuntu.com/',
21 'edge': 'https://loging.ubuntu.com',21 'edge': 'https://loging.ubuntu.com/',
22 'production': 'https://loging.ubuntu.com'}22 'production': 'https://loging.ubuntu.com/'}
23files_urls = {'staging': 'https://staging.one.ubuntu.com',23files_urls = {'staging': 'https://staging.one.ubuntu.com/',
24 'edge': 'https://edge.one.ubuntu.com',24 'edge': 'https://edge.one.ubuntu.com/',
25 'production': 'https://one.ubuntu.com'}25 'production': 'https://one.ubuntu.com/'}
2626
27class Environment:27class Environment:
2828

Subscribers

People subscribed via source and target branches