Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(904)

Issue 9591043: Add authentication CI tests.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by frankban
Modified:
10 years, 11 months ago
Reviewers:
mp+164768, teknico, gary.poster
Visibility:
Public.

Description

Add authentication CI tests. This branch introduces CI tests for the authentication infrastructure. Login/logout process is tested from root and from detail pages, as discussed in a pre-imp call with Jeff. Fixed a bug preventing the user to logout from a detail page if that page was directly accessed. Also improved testing using a local Selenium driver. As described in the docs, now it is possible to pass a "local-" prefix in order to run tests using local browsers. Refactored browser capabilities handling: now the used data structures are no longer defined at module level. QA: Local run: JUJU_GUI_TEST_BROWSERS="local-firefox" bin/test-charm \ --origin=lp:~frankban/juju-gui/auth-ci-tests Remote run: bin/test-charm --origin=lp:~frankban/juju-gui/auth-ci-tests https://code.launchpad.net/~frankban/juju-gui/auth-ci-tests/+merge/164768 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add authentication CI tests. #

Total comments: 2

Patch Set 3 : Add authentication CI tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -43 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 1 chunk +9 lines, -6 lines 0 comments Download
M app/templates/service-header.partial View 2 chunks +2 lines, -2 lines 0 comments Download
M docs/continuous-integration.rst View 1 chunk +3 lines, -2 lines 0 comments Download
M test/browser.py View 1 6 chunks +107 lines, -33 lines 0 comments Download
M test/test_charm_running.py View 1 2 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 10
frankban
Please take a look.
10 years, 11 months ago (2013-05-20 16:52:15 UTC) #1
gary.poster
Looks great! QA now... https://codereview.appspot.com/9591043/diff/1/app/app.js File app/app.js (right): https://codereview.appspot.com/9591043/diff/1/app/app.js#newcode785 app/app.js:785: // the env to log ...
10 years, 11 months ago (2013-05-20 17:46:58 UTC) #2
gary.poster
One QA item that's probably separate from this branch: when test failed because of an ...
10 years, 11 months ago (2013-05-20 18:02:26 UTC) #3
gary.poster
LGTM, thanks! unit tests failed for me in local firefox, but this was not the ...
10 years, 11 months ago (2013-05-20 18:27:12 UTC) #4
frankban
Please take a look. https://codereview.appspot.com/9591043/diff/1/app/app.js File app/app.js (right): https://codereview.appspot.com/9591043/diff/1/app/app.js#newcode785 app/app.js:785: // the env to log ...
10 years, 11 months ago (2013-05-21 08:39:27 UTC) #5
frankban
On 2013/05/20 18:02:26, gary.poster wrote: > One QA item that's probably separate from this branch: ...
10 years, 11 months ago (2013-05-21 08:47:33 UTC) #6
teknico
LGTM, one trivial. https://codereview.appspot.com/9591043/diff/3002/test/test_charm_running.py File test/test_charm_running.py (right): https://codereview.appspot.com/9591043/diff/3002/test/test_charm_running.py#newcode212 test/test_charm_running.py:212: self.wait_for_path( path, error='Post login redirection failed.') ...
10 years, 11 months ago (2013-05-21 10:19:00 UTC) #7
teknico
Still LGTM, but while doing QA I got two errors, likely transient ones. The first ...
10 years, 11 months ago (2013-05-21 11:33:28 UTC) #8
frankban
*** Submitted: Add authentication CI tests. This branch introduces CI tests for the authentication infrastructure. ...
10 years, 11 months ago (2013-05-21 11:36:08 UTC) #9
frankban
10 years, 11 months ago (2013-05-21 11:46:23 UTC) #10
Thanks both for the reviews!

On 2013/05/21 11:33:28, teknico wrote:
> Still LGTM, but while doing QA I got two errors, likely transient ones.
> 
> The first happened locally on Firefox, details:
> http://pastebin.ubuntu.com/5686540/ .
> 
> The second remotely on IE, details: http://pastebin.ubuntu.com/5686626/ .

* Details: https://saucelabs.com/jobs/4ac22d99a8b642bfa7bc423144e652df
Weird "Internet Explorer has stopped working error"...

> They both seem timeout errors, we'll see how things go with Jenkins.

In Selenium tests we mostly wait for something to happen, so it is quite usual
that failures come out as timeout errors. If there are fragilities, I hope
Jenkins will expose them and give us enough info to fix them later.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b