From d8a567eddaff500a5f41220696a3cbdc2e5a0f60 Mon Sep 17 00:00:00 2001 From: Philipp Thun Date: Mon, 6 Oct 2025 14:14:37 +0200 Subject: [PATCH] Ignore extra fields in BbsAppsClient test Add another hash_including for the 'data' field. --- .../diego/bbs_apps_client_spec.rb | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/spec/unit/lib/cloud_controller/diego/bbs_apps_client_spec.rb b/spec/unit/lib/cloud_controller/diego/bbs_apps_client_spec.rb index ee5f62f39ec..27e67adec7a 100644 --- a/spec/unit/lib/cloud_controller/diego/bbs_apps_client_spec.rb +++ b/spec/unit/lib/cloud_controller/diego/bbs_apps_client_spec.rb @@ -92,10 +92,10 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'desire.app.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/, 'process_guid' => lrp_process_guid - } + ) ) ) end @@ -171,10 +171,10 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'stop.app.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/, 'process_guid' => process_guid - } + ) ) ) end @@ -241,11 +241,11 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'stop.index.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/, 'process_guid' => process_guid, 'index' => index - } + ) ) ) end @@ -311,10 +311,10 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'get.app.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/, 'process_guid' => 'process-guid' - } + ) ) ) end @@ -404,10 +404,10 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'update.app.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/, 'process_guid' => process_guid - } + ) ) ) end @@ -464,9 +464,9 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'fetch.scheduling.infos.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/ - } + ) ) ) end @@ -522,9 +522,9 @@ module VCAP::CloudController::Diego ).to match( hash_including( 'message' => 'bump.freshness.response', - 'data' => { + 'data' => hash_including( 'error' => /error message/ - } + ) ) ) end