Merge lp:~frankban/charms/precise/juju-gui/ftests-fixes into lp:~juju-gui/charms/precise/juju-gui/trunk

Proposed by Francesco Banconi
Status: Merged
Merged at revision: 88
Proposed branch: lp:~frankban/charms/precise/juju-gui/ftests-fixes
Merge into: lp:~juju-gui/charms/precise/juju-gui/trunk
Diff against target: 45 lines (+4/-4)
4 files modified
revision (+1/-1)
tests/deploy.py (+1/-1)
tests/requirements.pip (+1/-1)
tests/test_deploy.py (+1/-1)
To merge this branch: bzr merge lp:~frankban/charms/precise/juju-gui/ftests-fixes
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+179196@code.launchpad.net

Description of the change

Fix charm functional tests.

Updated Selenium to the last version: it includes
a fix for Firefox 23.

Also updated the force-machine test: use the new
--to juju-core option.

https://codereview.appspot.com/12665043/

To post a comment you must log in.
Revision history for this message
Francesco Banconi (frankban) wrote :

Reviewers: mp+179196_code.launchpad.net,

Message:
Please take a look.

Description:
Fix charm functional tests.

Updated Selenium to the last version: it includes
a fix for Firefox 23.

Also updated the force-machine test: use the new
--to juju-core option.

https://code.launchpad.net/~frankban/charms/precise/juju-gui/ftests-fixes/+merge/179196

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/12665043/

Affected files:
   A [revision details]
   M revision
   M tests/deploy.py
   M tests/requirements.pip
   M tests/test_deploy.py

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision:
<email address hidden>

Index: revision
=== modified file 'revision'
--- revision 2013-08-05 15:00:27 +0000
+++ revision 2013-08-08 13:09:10 +0000
@@ -1,1 +1,1 @@
-66
+67

Index: tests/deploy.py
=== modified file 'tests/deploy.py'
--- tests/deploy.py 2013-06-12 09:07:29 +0000
+++ tests/deploy.py 2013-08-08 13:09:10 +0000
@@ -68,7 +68,7 @@
          config_file = make_charm_config_file({charm: options})
          args.extend(['--config', config_file.name])
      if force_machine is not None:
- args.extend(['--force-machine', str(force_machine)])
+ args.extend(['--to', str(force_machine)])
      args.append('local:{}/{}'.format(series, charm))
      juju(*args)
      juju('expose', charm)

Index: tests/requirements.pip
=== modified file 'tests/requirements.pip'
--- tests/requirements.pip 2013-07-19 14:25:55 +0000
+++ tests/requirements.pip 2013-08-08 13:09:10 +0000
@@ -23,7 +23,7 @@
  python-apt==0.8.5
  -e bzr+http://launchpad.net/python-shelltoolbox#egg=python-shelltoolbox
  PyYAML==3.10
-selenium==2.33.0
+selenium==2.34.0
  Tempita==0.5.1
  tornado==3.1
  xvfbwrapper==0.2.2

Index: tests/test_deploy.py
=== modified file 'tests/test_deploy.py'
--- tests/test_deploy.py 2013-06-12 09:07:29 +0000
+++ tests/test_deploy.py 2013-08-08 13:53:54 +0000
@@ -169,7 +169,7 @@
          expected_deploy_call = mock.call(
              'deploy',
              '--repository', self.repo,
- '--force-machine', '42',
+ '--to', '42',
              self.local_charm,
          )
          deploy_call = self.call_deploy(force_machine=42)

Revision history for this message
Francesco Banconi (frankban) wrote :

Self-review: critical + trivial.

https://codereview.appspot.com/12665043/

Revision history for this message
Francesco Banconi (frankban) wrote :

*** Submitted:

Fix charm functional tests.

Updated Selenium to the last version: it includes
a fix for Firefox 23.

Also updated the force-machine test: use the new
--to juju-core option.

R=
CC=
https://codereview.appspot.com/12665043

https://codereview.appspot.com/12665043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'revision'
2--- revision 2013-08-05 15:00:27 +0000
3+++ revision 2013-08-08 13:56:25 +0000
4@@ -1,1 +1,1 @@
5-66
6+67
7
8=== modified file 'tests/deploy.py'
9--- tests/deploy.py 2013-06-12 09:07:29 +0000
10+++ tests/deploy.py 2013-08-08 13:56:25 +0000
11@@ -68,7 +68,7 @@
12 config_file = make_charm_config_file({charm: options})
13 args.extend(['--config', config_file.name])
14 if force_machine is not None:
15- args.extend(['--force-machine', str(force_machine)])
16+ args.extend(['--to', str(force_machine)])
17 args.append('local:{}/{}'.format(series, charm))
18 juju(*args)
19 juju('expose', charm)
20
21=== modified file 'tests/requirements.pip'
22--- tests/requirements.pip 2013-07-19 14:25:55 +0000
23+++ tests/requirements.pip 2013-08-08 13:56:25 +0000
24@@ -23,7 +23,7 @@
25 python-apt==0.8.5
26 -e bzr+http://launchpad.net/python-shelltoolbox#egg=python-shelltoolbox
27 PyYAML==3.10
28-selenium==2.33.0
29+selenium==2.34.0
30 Tempita==0.5.1
31 tornado==3.1
32 xvfbwrapper==0.2.2
33
34=== modified file 'tests/test_deploy.py'
35--- tests/test_deploy.py 2013-06-12 09:07:29 +0000
36+++ tests/test_deploy.py 2013-08-08 13:56:25 +0000
37@@ -169,7 +169,7 @@
38 expected_deploy_call = mock.call(
39 'deploy',
40 '--repository', self.repo,
41- '--force-machine', '42',
42+ '--to', '42',
43 self.local_charm,
44 )
45 deploy_call = self.call_deploy(force_machine=42)

Subscribers

People subscribed via source and target branches