Merge lp:~frankban/juju-quickstart/fix-macosx-failing-test into lp:juju-quickstart

Proposed by Francesco Banconi
Status: Merged
Merged at revision: 115
Proposed branch: lp:~frankban/juju-quickstart/fix-macosx-failing-test
Merge into: lp:juju-quickstart
Diff against target: 68 lines (+15/-7)
3 files modified
HACKING.rst (+13/-2)
README.rst (+1/-1)
quickstart/tests/models/test_jenv.py (+1/-4)
To merge this branch: bzr merge lp:~frankban/juju-quickstart/fix-macosx-failing-test
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+246290@code.launchpad.net

Description of the change

Fix failing test on MacOS.

Also update docs to include vivid.

Tests: `make check`.
No QA required.

https://codereview.appspot.com/191640043/

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

Reviewers: mp+246290_code.launchpad.net,

Message:
Please take a look.

Description:
Fix failing test on MacOS.

Also update docs to include vivid.

Tests: `make check`.
No QA required.

https://code.launchpad.net/~frankban/juju-quickstart/fix-macosx-failing-test/+merge/246290

(do not edit description out of merge proposal)

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

Affected files (+17, -7 lines):
   M HACKING.rst
   M README.rst
   A [revision details]
   M quickstart/tests/models/test_jenv.py

Index: HACKING.rst
=== modified file 'HACKING.rst'
--- HACKING.rst 2014-11-12 10:35:40 +0000
+++ HACKING.rst 2015-01-13 12:03:15 +0000
@@ -131,7 +131,7 @@
  ~~~~~~~~~~~~~~

  The general steps for manual QA (until we get a continuous integration set
up
-with functional tests) should be run on trusty and utopic.
+with functional tests) should be run on trusty, utopic and vivid.

  * Ensure juju-quickstart is installed from the juju-gui/quickstart-beta
PPA.::

@@ -309,6 +309,17 @@
     merged without human intervention. A recent branch took about two hours
     from the time the pull request was made.

+Tagging a new release
+~~~~~~~~~~~~~~~~~~~~~
+
+When a new release is successfully done (meaning it passed the QA described
+above and has been correctly published on PyPI, the PPAs and Homebrew), it
is
+time to tag it for future reference. To do that, just run the following
+commands on the trunk branch of Juju Quickstart::
+
+ $ bzr tag {version} # For instance bzr tag "1.6.0"
+ $ bzr push :parent
+
  Updating application and test dependencies
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@@ -322,7 +333,7 @@

  Also ensure, before updating the application dependencies, that those
packages
  are available in the main Ubuntu repositories for the series we support
(from
-precise to utopic), or in the `Juju Quickstart Beta PPA
+precise to vivid), or in the `Juju Quickstart Beta PPA
  <https://launchpad.net/~juju-gui/+archive/quickstart-beta/+packages>`_.

  Please also keep up to date the possible values for the environments.yaml

Index: README.rst
=== modified file 'README.rst'
--- README.rst 2014-11-10 11:27:04 +0000
+++ README.rst 2015-01-13 12:03:15 +0000
@@ -34,7 +34,7 @@
  ------------------

  Juju Quickstart is available on Ubuntu releases 12.04 LTS (precise), 14.04
LTS
-(trusty), 14.10 (utopic) and on OS X (10.7 and later).
+(trusty), 14.10 (utopic), 15.04 (vivid) and on OS X (10.7 and later).

  Starting from version 1.5.0, Juju Quickstart only supports Juju >= 1.18.1.

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: quickstart/tests/models/test_jenv.py
=== modified file 'quickstart/tests/models/test_jenv.py'
--- quickstart/tests/models/test_jenv.py 2015-01-12 12:10:38 +0000
+++ quickstart/tests/models/test_jenv.py 2015-01-13 11:46:06 +0000
@@ -292,10 +292,7 @@
              dirname = os.path.dirname(path)
     ...

Read more...

Revision history for this message
Brad Crittenden (bac) wrote :
Revision history for this message
Brad Crittenden (bac) wrote :

Verified tests pass on OS X 10.10

https://codereview.appspot.com/191640043/

Revision history for this message
Martin Hilton (martin-hilton) wrote :
Revision history for this message
Francesco Banconi (frankban) wrote :

*** Submitted:

Fix failing test on MacOS.

Also update docs to include vivid.

Tests: `make check`.
No QA required.

R=bac, martin.hilton
CC=
https://codereview.appspot.com/191640043

https://codereview.appspot.com/191640043/

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'HACKING.rst'
--- HACKING.rst 2014-11-12 10:35:40 +0000
+++ HACKING.rst 2015-01-13 12:33:37 +0000
@@ -131,7 +131,7 @@
131~~~~~~~~~~~~~~131~~~~~~~~~~~~~~
132132
133The general steps for manual QA (until we get a continuous integration set up133The general steps for manual QA (until we get a continuous integration set up
134with functional tests) should be run on trusty and utopic.134with functional tests) should be run on trusty, utopic and vivid.
135135
136* Ensure juju-quickstart is installed from the juju-gui/quickstart-beta PPA.::136* Ensure juju-quickstart is installed from the juju-gui/quickstart-beta PPA.::
137137
@@ -309,6 +309,17 @@
309 merged without human intervention. A recent branch took about two hours309 merged without human intervention. A recent branch took about two hours
310 from the time the pull request was made.310 from the time the pull request was made.
311311
312Tagging a new release
313~~~~~~~~~~~~~~~~~~~~~
314
315When a new release is successfully done (meaning it passed the QA described
316above and has been correctly published on PyPI, the PPAs and Homebrew), it is
317time to tag it for future reference. To do that, just run the following
318commands on the trunk branch of Juju Quickstart::
319
320 $ bzr tag {version} # For instance bzr tag "1.6.0"
321 $ bzr push :parent
322
312Updating application and test dependencies323Updating application and test dependencies
313~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~324~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
314325
@@ -322,7 +333,7 @@
322333
323Also ensure, before updating the application dependencies, that those packages334Also ensure, before updating the application dependencies, that those packages
324are available in the main Ubuntu repositories for the series we support (from335are available in the main Ubuntu repositories for the series we support (from
325precise to utopic), or in the `Juju Quickstart Beta PPA336precise to vivid), or in the `Juju Quickstart Beta PPA
326<https://launchpad.net/~juju-gui/+archive/quickstart-beta/+packages>`_.337<https://launchpad.net/~juju-gui/+archive/quickstart-beta/+packages>`_.
327338
328Please also keep up to date the possible values for the environments.yaml339Please also keep up to date the possible values for the environments.yaml
329340
=== modified file 'README.rst'
--- README.rst 2014-11-10 11:27:04 +0000
+++ README.rst 2015-01-13 12:33:37 +0000
@@ -34,7 +34,7 @@
34------------------34------------------
3535
36Juju Quickstart is available on Ubuntu releases 12.04 LTS (precise), 14.04 LTS36Juju Quickstart is available on Ubuntu releases 12.04 LTS (precise), 14.04 LTS
37(trusty), 14.10 (utopic) and on OS X (10.7 and later).37(trusty), 14.10 (utopic), 15.04 (vivid) and on OS X (10.7 and later).
3838
39Starting from version 1.5.0, Juju Quickstart only supports Juju >= 1.18.1.39Starting from version 1.5.0, Juju Quickstart only supports Juju >= 1.18.1.
4040
4141
=== modified file 'quickstart/tests/models/test_jenv.py'
--- quickstart/tests/models/test_jenv.py 2015-01-12 12:10:38 +0000
+++ quickstart/tests/models/test_jenv.py 2015-01-13 12:33:37 +0000
@@ -292,10 +292,7 @@
292 dirname = os.path.dirname(path)292 dirname = os.path.dirname(path)
293 os.mkdir(os.path.join(dirname, 'ec2.jenv'))293 os.mkdir(os.path.join(dirname, 'ec2.jenv'))
294 error = jenv.remove('ec2')294 error = jenv.remove('ec2')
295 expected_error = (295 self.assertIn('cannot remove the ec2 environment: ', error)
296 'cannot remove the ec2 environment: '
297 '[Errno 21] Is a directory: ')
298 self.assertIn(expected_error, error)
299296
300 def test_error_not_found(self):297 def test_error_not_found(self):
301 # An error is returned if the environment cannot be found.298 # An error is returned if the environment cannot be found.

Subscribers

People subscribed via source and target branches