Merge lp:~hatch/juju-gui/better-bundle-error into lp:juju-gui/experimental
Proposed by
Jeff Pihach
Status: | Merged |
---|---|
Merged at revision: | 1171 |
Proposed branch: | lp:~hatch/juju-gui/better-bundle-error |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
101 lines (+18/-9) 5 files modified
app/store/env/fakebackend.js (+7/-2) app/store/env/sandbox.js (+4/-3) test/test_fakebackend.js (+4/-2) test/test_sandbox_go.js (+1/-1) test/test_sandbox_python.js (+2/-1) |
To merge this branch: | bzr merge lp:~hatch/juju-gui/better-bundle-error |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+193455@code.launchpad.net |
Description of the change
Improve the error reporting of bundle imports
To post a comment you must log in.
Reviewers: mp+193455_ code.launchpad. net,
Message:
Please take a look.
Description:
Improve the error reporting of bundle imports
https:/ /code.launchpad .net/~hatch/ juju-gui/ better- bundle- error/+ merge/193455
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/17540044/
Affected files (+20, -9 lines): env/fakebackend .js env/sandbox. js fakebackend. js sandbox_ go.js sandbox_ python. js
A [revision details]
M app/store/
M app/store/
M test/test_
M test/test_
M test/test_
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: test/test_ fakebackend. js fakebackend. js' fakebackend. js 2013-10-30 21:58:08 +0000 fakebackend. js 2013-10-31 16:35:27 +0000
fakebackend. deploy(
'cs: precise/ haproxy- 18', callback, {name: 'wordpress'}); equal(result. error, 'A service with this name already equal(result. error,
fakebackend. deploy( 'cs:precise/ wordpress- 15', callback); equal(result. error, 'A service with this name already equal(result. error,
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -204,11 +204,13 @@
// The service name is provided explicitly.
- assert.
exists.');
+ assert.
+ 'A service with this name already exists. (wordpress)');
// The service name is derived from charm.
result = undefined;
- assert.
exists.');
+ assert.
+ 'A service with this name already exists. (wordpress)');
});
it('reuses already-loaded charms with the same explicit id.',
function() {
Index: test/test_ sandbox_ go.js sandbox_ go.js' sandbox_ go.js 2013-10-11 13:47:43 +0000 sandbox_ go.js 2013-10-31 16:35:27 +0000
state. deploy( 'cs:precise/ wordpress- 15', function() {});
assert. equal(
env.deploy( 'cs:precise/ wordpress- 15', undefined, undefined,
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -333,7 +333,7 @@
var callback = function(result) {
- result.err, 'A service with this name already exists.');
+ result.err, 'A service with this name already exists.
(wordpress)');
done();
};
undefined,
Index: test/test_ sandbox_ python. js sandbox_ python. js' sandbox_ python. js 2013-09-26 22:03:11 +0000 sandbox_ python. js 2013-10-31 16:35:27 +0000
env.after( 'defaultSeriesC hange', function() {
assert. equal(
env. deploy(
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -409,7 +409,8 @@
var callback = function(result) {
- result.err, 'A service with this name already exists.');
+ result.err,
+ 'A service with this name already exists. (wordpress)');
done();
};
Index: app/store/ env/fakebackend .js env/fakebackend .js' env/fakebackend .js 2013-10-30 21:58:08 +0000 env/fakebackend .js 2013-10-31 16:35:27 +0000
=== modified file 'app/store/
--- app/store/
+++ app/store/
...