@@ -860,6 +860,7 @@ public void updateService() {
860860 requestListSpaceServicePlans (this .cloudFoundryClient , "test-service-id" , "test-plan" , "test-plan-id" );
861861 requestUpdateServiceInstance (this .cloudFoundryClient , Collections .singletonMap ("test-parameter-key" , "test-parameter-value" ), "test-service-instance-id" , "test-plan-id" ,
862862 Collections .singletonList ("test-tag" ));
863+ requestGetServiceInstance (this .cloudFoundryClient , "test-id" , "successful" );
863864
864865 this .services
865866 .updateInstance (UpdateServiceInstanceRequest .builder ()
@@ -899,6 +900,7 @@ public void updateServiceNoParameters() {
899900 requestGetService (this .cloudFoundryClient , "test-service-id" , "test-service" );
900901 requestListSpaceServicePlans (this .cloudFoundryClient , "test-service-id" , "test-plan" , "test-service-plan-id" );
901902 requestUpdateServiceInstance (this .cloudFoundryClient , null , "test-service-instance-id" , "test-service-plan-id" , Collections .singletonList ("test-tag" ));
903+ requestGetServiceInstance (this .cloudFoundryClient , "test-id" , "successful" );
902904
903905 this .services
904906 .updateInstance (UpdateServiceInstanceRequest .builder ()
@@ -916,6 +918,7 @@ public void updateServiceNoPlan() {
916918 requestListSpaceServiceInstances (this .cloudFoundryClient , "test-service" , TEST_SPACE_ID );
917919 requestUpdateServiceInstance (this .cloudFoundryClient , Collections .singletonMap ("test-parameter-key" , "test-parameter-value" ), "test-service-instance-id" , null ,
918920 Collections .singletonList ("test-tag" ));
921+ requestGetServiceInstance (this .cloudFoundryClient , "test-id" , "successful" );
919922
920923 this .services
921924 .updateInstance (UpdateServiceInstanceRequest .builder ()
@@ -951,6 +954,7 @@ public void updateServiceNoTags() {
951954 requestGetService (this .cloudFoundryClient , "test-service-id" , "test-service" );
952955 requestListSpaceServicePlans (this .cloudFoundryClient , "test-service-id" , "test-plan" , "test-plan-id" );
953956 requestUpdateServiceInstance (this .cloudFoundryClient , Collections .singletonMap ("test-parameter-key" , "test-parameter-value" ), "test-service-instance-id" , "test-plan-id" , null );
957+ requestGetServiceInstance (this .cloudFoundryClient , "test-id" , "successful" );
954958
955959 this .services
956960 .updateInstance (UpdateServiceInstanceRequest .builder ()
@@ -972,6 +976,7 @@ public void updateServiceNotPublic() {
972976 requestListSpaceServicePlanVisibilities (this .cloudFoundryClient , "test-organization-id" , "test-plan-id" );
973977 requestUpdateServiceInstance (this .cloudFoundryClient , Collections .singletonMap ("test-parameter-key" , "test-parameter-value" ), "test-service-instance-id" , "test-plan-id" ,
974978 Collections .singletonList ("test-tag" ));
979+ requestGetServiceInstance (this .cloudFoundryClient , "test-id" , "successful" );
975980
976981 this .services
977982 .updateInstance (UpdateServiceInstanceRequest .builder ()
@@ -1027,7 +1032,7 @@ public void updateServicePlanNotUpdateable() {
10271032 public void updateUserProvidedService () {
10281033 requestListSpaceServiceInstancesUserProvided (this .cloudFoundryClient , "test-service" , TEST_SPACE_ID );
10291034 requestUpdateUserProvidedServiceInstance (this .cloudFoundryClient , Collections .singletonMap ("test-credential-key" , "test-credential-value" ),
1030- "syslog-url" , Collections .singletonList ("tag1" ),"test-service-instance-id" );
1035+ "syslog-url" , Collections .singletonList ("tag1" ), "test-service-instance-id" );
10311036
10321037 this .services
10331038 .updateUserProvidedInstance (UpdateUserProvidedServiceInstanceRequest .builder ()
@@ -1959,7 +1964,8 @@ private static void requestUpdateServiceInstance(CloudFoundryClient cloudFoundry
19591964 .build ()));
19601965 }
19611966
1962- private static void requestUpdateUserProvidedServiceInstance (CloudFoundryClient cloudFoundryClient , Map <String , Object > credentials , String syslogDrainUrl , List <String > tags , String userProvidedServiceInstanceId ) {
1967+ private static void requestUpdateUserProvidedServiceInstance (CloudFoundryClient cloudFoundryClient , Map <String , Object > credentials , String syslogDrainUrl , List <String > tags ,
1968+ String userProvidedServiceInstanceId ) {
19631969 when (cloudFoundryClient .userProvidedServiceInstances ()
19641970 .update (org .cloudfoundry .client .v2 .userprovidedserviceinstances .UpdateUserProvidedServiceInstanceRequest .builder ()
19651971 .credentials (credentials )
0 commit comments