Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/gradle/main/org.apache.commons-co…
Browse files Browse the repository at this point in the history
…mmons-text-1.11.0
  • Loading branch information
Albertoimpl authored Mar 7, 2024
2 parents b4ca48c + af69f79 commit 9ff3a27
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;

class CreateInstanceWithServiceInstanceGuidSuffixTargetAcceptanceTest extends CloudFoundryAcceptanceTest {

Expand Down Expand Up @@ -90,7 +91,7 @@ void deployAppsWithServiceInstanceGuidSuffixOnCreateService() {
deleteServiceInstance(SI_NAME);

// and the backing service is deleted
assertThat(listServiceInstances()).doesNotContain(expectedServiceInstanceName);
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(expectedServiceInstanceName));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import static java.util.Collections.emptyMap;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;

class CreateInstanceWithServicesAcceptanceTest extends CloudFoundryAcceptanceTest {

Expand Down Expand Up @@ -91,8 +92,8 @@ void deployAppsAndCreateServicesOnCreateService() {
deleteServiceInstance(SI_NAME);

// and the backing services are deleted
assertThat(listServiceInstances()).doesNotContain(BACKING_SI_1_NAME);
assertThat(listServiceInstances()).doesNotContain(BACKING_SI_2_NAME);
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(BACKING_SI_1_NAME));
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(BACKING_SI_2_NAME));

// TODO: another story to only remove the instances with service definition specified (https://github.com/spring-cloud/spring-cloud-app-broker/issues/316)
// // service without specification has no applications bound to it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ void weUpdateTheServiceInstanceWithANewBackingService() {
deleteServiceInstance(SI_NAME);

// and the backing service is deleted
assertThat(listServiceInstances()).doesNotContain(NEW_BACKING_SI_NAME);
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(NEW_BACKING_SI_NAME));

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void weUpdateTheServiceInstanceWithANewBackingService() {
deleteServiceInstance(SI_NAME);

// and the backing service is deleted
assertThat(listServiceInstances()).doesNotContain(NEW_BACKING_SI_NAME);
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(NEW_BACKING_SI_NAME));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.springframework.beans.factory.annotation.Autowired;

import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;

class UpdateInstanceWithServicesAcceptanceTest extends CloudFoundryAcceptanceTest {

Expand Down Expand Up @@ -115,7 +116,7 @@ void shouldPushAppWithServicesBind() {
deleteServiceInstance(SI_NAME);

// and the backing service is deleted
assertThat(listServiceInstances()).doesNotContain(BACKING_SI_NAME);
await().untilAsserted(() -> assertThat(listServiceInstances()).doesNotContain(BACKING_SI_NAME));
}

}

0 comments on commit 9ff3a27

Please sign in to comment.