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
1=== modified file 'HACKING.rst'
2--- HACKING.rst 2014-11-12 10:35:40 +0000
3+++ HACKING.rst 2015-01-13 12:33:37 +0000
4@@ -131,7 +131,7 @@
5 ~~~~~~~~~~~~~~
6
7 The general steps for manual QA (until we get a continuous integration set up
8-with functional tests) should be run on trusty and utopic.
9+with functional tests) should be run on trusty, utopic and vivid.
10
11 * Ensure juju-quickstart is installed from the juju-gui/quickstart-beta PPA.::
12
13@@ -309,6 +309,17 @@
14 merged without human intervention. A recent branch took about two hours
15 from the time the pull request was made.
16
17+Tagging a new release
18+~~~~~~~~~~~~~~~~~~~~~
19+
20+When a new release is successfully done (meaning it passed the QA described
21+above and has been correctly published on PyPI, the PPAs and Homebrew), it is
22+time to tag it for future reference. To do that, just run the following
23+commands on the trunk branch of Juju Quickstart::
24+
25+ $ bzr tag {version} # For instance bzr tag "1.6.0"
26+ $ bzr push :parent
27+
28 Updating application and test dependencies
29 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
31@@ -322,7 +333,7 @@
32
33 Also ensure, before updating the application dependencies, that those packages
34 are available in the main Ubuntu repositories for the series we support (from
35-precise to utopic), or in the `Juju Quickstart Beta PPA
36+precise to vivid), or in the `Juju Quickstart Beta PPA
37 <https://launchpad.net/~juju-gui/+archive/quickstart-beta/+packages>`_.
38
39 Please also keep up to date the possible values for the environments.yaml
40
41=== modified file 'README.rst'
42--- README.rst 2014-11-10 11:27:04 +0000
43+++ README.rst 2015-01-13 12:33:37 +0000
44@@ -34,7 +34,7 @@
45 ------------------
46
47 Juju Quickstart is available on Ubuntu releases 12.04 LTS (precise), 14.04 LTS
48-(trusty), 14.10 (utopic) and on OS X (10.7 and later).
49+(trusty), 14.10 (utopic), 15.04 (vivid) and on OS X (10.7 and later).
50
51 Starting from version 1.5.0, Juju Quickstart only supports Juju >= 1.18.1.
52
53
54=== modified file 'quickstart/tests/models/test_jenv.py'
55--- quickstart/tests/models/test_jenv.py 2015-01-12 12:10:38 +0000
56+++ quickstart/tests/models/test_jenv.py 2015-01-13 12:33:37 +0000
57@@ -292,10 +292,7 @@
58 dirname = os.path.dirname(path)
59 os.mkdir(os.path.join(dirname, 'ec2.jenv'))
60 error = jenv.remove('ec2')
61- expected_error = (
62- 'cannot remove the ec2 environment: '
63- '[Errno 21] Is a directory: ')
64- self.assertIn(expected_error, error)
65+ self.assertIn('cannot remove the ec2 environment: ', error)
66
67 def test_error_not_found(self):
68 # An error is returned if the environment cannot be found.

Subscribers

People subscribed via source and target branches