1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237 | ----------------------------------------------------------------------
FAIL: relations_test.go:376: relationsSuite.TestHookRelationDeparted
request 0, Life
request 1, JoinedRelations
request 2, RelationById
request 3, Relation
request 4, Relation
request 5, Watch
request 6, Next
relations_test.go:94:
request 7, EnterScope
relations_test.go:381:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:94:
... expected string = "Uniter"
relations_test.go:95:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "Uniter"
... expected string = "NotifyWatcher"
c.Check(version, gc.Equals, call.version)
relations_test.go:381:
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:95:
c.Check(request, gc.Equals, call.request)
c.Check(version, gc.Equals, call.version)
... obtained string = "Next"
... obtained int = 2
... expected string = "EnterScope"
... expected int = 0
relations_test.go:381:
relations_test.go:98:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:96:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
request 8, Next
request 9, Stop
relations_test.go:94:
c.Check(id, gc.Equals, call.id)
... obtained string = ""
... expected string = "1"
relations_test.go:381:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:97:
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Check(request, gc.Equals, call.request)
... obtained string = "EnterScope"
... expected string = "Stop"
relations_test.go:381:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:98:
c.Check(request, gc.Equals, call.request)
... obtained string = "Stop"
... expected string = "GetPrincipal"
relations_test.go:98:
c.Check(arg, jc.DeepEquals, call.args)
... obtained params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... expected = nil
... mismatch at top level: nil vs non-nil mismatch; obtained params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}; expected <nil>
relations_test.go:381:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.Entities = params.Entities{Entities:[]params.Entity{params.Entity{Tag:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.Entities{Entities:[]params.Entity{params.Entity{Tag:"unit-wordpress-0"}}}
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:281:
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"", cause:(*params.Error)(0xc82041b3a0), previous:(*errors.Err)(0xc820410960), file:"github.com/juju/juju/worker/uniter/relation/relations.go", line:69} ("watcher")
... error stack:
watcher
github.com/juju/juju/worker/uniter/relation/relations.go:401:
github.com/juju/juju/worker/uniter/relation/relations.go:180:
github.com/juju/juju/worker/uniter/relation/relations.go:69:
----------------------------------------------------------------------
FAIL: relations_test.go:293: relationsSuite.TestHookRelationJoined
request 0, Life
request 1, JoinedRelations
request 2, RelationById
request 3, Relation
request 4, Relation
request 5, Watch
request 6, Next
relations_test.go:94:
request 6, EnterScope
request 8, Stop
relations_test.go:97:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
c.Check(request, gc.Equals, call.request)
... obtained string = "Stop"
... expected string = "Next"
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
c.Check(request, gc.Equals, call.request)
... obtained string = "Next"
... expected string = "EnterScope"
relations_test.go:98:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
request 9, Next
relations_test.go:94:
request 10, GetPrincipal
relations_test.go:295:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
s.assertHookRelationJoined(c, &numCalls, relationJoinedApiCalls()...)
relations_test.go:91:
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Assert(index < len(apiCalls), jc.IsTrue)
... obtained bool = false
----------------------------------------------------------------------
FAIL: relations_test.go:447: relationsSuite.TestImplicitRelationNoHooks
request 0, Life
request 1, JoinedRelations
request 2, RelationById
request 3, Relation
request 4, Relation
request 5, Watch
request 6, EnterScope
request 7, Stop
request 7, Next
relations_test.go:97:
c.Check(request, gc.Equals, call.request)
... obtained string = "Next"
... expected string = "Stop"
request 9, GetPrincipal
----------------------------------------------------------------------
FAIL: relations_test.go:148: relationsSuite.TestNewRelationsWithExistingRelations
request 0, Life
request 1, JoinedRelations
request 2, Relation
request 3, Relation
request 4, Watch
request 5, EnterScope
request 5, Next
relations_test.go:94:
request 6, Stop
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
c.Check(request, gc.Equals, call.request)
... obtained string = "Next"
... expected string = "EnterScope"
relations_test.go:98:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
request 7, Next
--- FAIL: TestPackage (8.66s)
FAIL
exit status 1
FAIL github.com/juju/juju/worker/uniter/relation 8.843s
|