OLD | NEW |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 (function() { | 3 (function() { |
4 | 4 |
5 // Helpers | 5 // Helpers |
6 // Verify that an expected Error was found. | 6 // Verify that an expected Error was found. |
7 var ERROR = function(errString, done) { | 7 var ERROR = function(errString, done) { |
8 return function(result) { | 8 return function(result) { |
9 assert.equal(errString, result.error); | 9 assert.equal(errString, result.error); |
10 done(); | 10 done(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 charm: 'cs:precise/wordpress-10', | 95 charm: 'cs:precise/wordpress-10', |
96 config: undefined, | 96 config: undefined, |
97 constraints: {}, | 97 constraints: {}, |
98 destroyed: false, | 98 destroyed: false, |
99 displayName: 'wordpress', | 99 displayName: 'wordpress', |
100 exposed: false, | 100 exposed: false, |
101 id: 'wordpress', | 101 id: 'wordpress', |
102 initialized: true, | 102 initialized: true, |
103 name: 'wordpress', | 103 name: 'wordpress', |
104 pending: false, | 104 pending: false, |
| 105 life: 'alive', |
105 subordinate: false, | 106 subordinate: false, |
106 unit_count: undefined | 107 unit_count: undefined |
107 }); | 108 }); |
108 var units = fakebackend.db.units.get_units_for_service(service); | 109 var units = fakebackend.db.units.get_units_for_service(service); |
109 assert.lengthOf(units, 1); | 110 assert.lengthOf(units, 1); |
110 assert.lengthOf(result.units, 1); | 111 assert.lengthOf(result.units, 1); |
111 assert.strictEqual(units[0], result.units[0]); | 112 assert.strictEqual(units[0], result.units[0]); |
112 assert.equal(units[0].service, 'wordpress'); | 113 assert.equal(units[0].service, 'wordpress'); |
113 }); | 114 }); |
114 | 115 |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 endpoints: | 1016 endpoints: |
1016 [['puppet', {name: 'juju-info'}], | 1017 [['puppet', {name: 'juju-info'}], |
1017 ['wordpress', {name: 'juju-info'}]]}, | 1018 ['wordpress', {name: 'juju-info'}]]}, |
1018 done); | 1019 done); |
1019 }); | 1020 }); |
1020 | 1021 |
1021 }); | 1022 }); |
1022 | 1023 |
1023 | 1024 |
1024 })(); | 1025 })(); |
OLD | NEW |