Skip to content

Commit 7544d5e

Browse files
authored
Ignore extra fields in BbsAppsClient test (#4594)
Add another hash_including for the 'data' field.
1 parent cf40b64 commit 7544d5e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

spec/unit/lib/cloud_controller/diego/bbs_apps_client_spec.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ module VCAP::CloudController::Diego
9292
).to match(
9393
hash_including(
9494
'message' => 'desire.app.response',
95-
'data' => {
95+
'data' => hash_including(
9696
'error' => /error message/,
9797
'process_guid' => lrp_process_guid
98-
}
98+
)
9999
)
100100
)
101101
end
@@ -171,10 +171,10 @@ module VCAP::CloudController::Diego
171171
).to match(
172172
hash_including(
173173
'message' => 'stop.app.response',
174-
'data' => {
174+
'data' => hash_including(
175175
'error' => /error message/,
176176
'process_guid' => process_guid
177-
}
177+
)
178178
)
179179
)
180180
end
@@ -241,11 +241,11 @@ module VCAP::CloudController::Diego
241241
).to match(
242242
hash_including(
243243
'message' => 'stop.index.response',
244-
'data' => {
244+
'data' => hash_including(
245245
'error' => /error message/,
246246
'process_guid' => process_guid,
247247
'index' => index
248-
}
248+
)
249249
)
250250
)
251251
end
@@ -311,10 +311,10 @@ module VCAP::CloudController::Diego
311311
).to match(
312312
hash_including(
313313
'message' => 'get.app.response',
314-
'data' => {
314+
'data' => hash_including(
315315
'error' => /error message/,
316316
'process_guid' => 'process-guid'
317-
}
317+
)
318318
)
319319
)
320320
end
@@ -404,10 +404,10 @@ module VCAP::CloudController::Diego
404404
).to match(
405405
hash_including(
406406
'message' => 'update.app.response',
407-
'data' => {
407+
'data' => hash_including(
408408
'error' => /error message/,
409409
'process_guid' => process_guid
410-
}
410+
)
411411
)
412412
)
413413
end
@@ -464,9 +464,9 @@ module VCAP::CloudController::Diego
464464
).to match(
465465
hash_including(
466466
'message' => 'fetch.scheduling.infos.response',
467-
'data' => {
467+
'data' => hash_including(
468468
'error' => /error message/
469-
}
469+
)
470470
)
471471
)
472472
end
@@ -522,9 +522,9 @@ module VCAP::CloudController::Diego
522522
).to match(
523523
hash_including(
524524
'message' => 'bump.freshness.response',
525-
'data' => {
525+
'data' => hash_including(
526526
'error' => /error message/
527-
}
527+
)
528528
)
529529
)
530530
end

0 commit comments

Comments
 (0)