@@ -664,9 +664,12 @@ public void debugTests(String folderName) throws IOException, InterruptedExcepti
664664
665665 @ Override
666666 public void close () {
667+ LOGGER .info ("[TestEnvironmentConfig] close() was called" );
667668 if (this .databaseContainers != null ) {
669+ LOGGER .info ("[TestEnvironmentConfig] this.databaseContainers was not null" );
668670 for (GenericContainer <?> container : this .databaseContainers ) {
669671 try {
672+ LOGGER .info ("[TestEnvironmentConfig] stopping container..." );
670673 container .stop ();
671674 } catch (Exception ex ) {
672675 // ignore
@@ -676,12 +679,15 @@ public void close() {
676679 }
677680
678681 if (this .testContainer != null ) {
682+ LOGGER .info ("[TestEnvironmentConfig] stopping test container..." );
679683 this .testContainer .stop ();
680684 this .testContainer = null ;
681685 }
682686
683687 if (this .proxyContainers != null ) {
688+ LOGGER .info ("[TestEnvironmentConfig] this.proxyContainers not null" );
684689 for (ToxiproxyContainer proxyContainer : this .proxyContainers ) {
690+ LOGGER .info ("[TestEnvironmentConfig] stopping proxy container..." );
685691 proxyContainer .stop ();
686692 }
687693 this .proxyContainers = null ;
@@ -695,6 +701,7 @@ public void close() {
695701 case RDS :
696702 throw new NotImplementedException (this .info .getRequest ().getDatabaseEngineDeployment ().toString ());
697703 default :
704+ LOGGER .info ("[TestEnvironmentConfig] default switch branch was hit inside close()" );
698705 // do nothing
699706 }
700707 }
@@ -709,14 +716,20 @@ public String getPrimaryInfo() {
709716 }
710717
711718 private void deleteDbCluster () {
719+ LOGGER .info ("[TestEnvironmentConfig] deleteDbCluster() was called" );
720+ LOGGER .info ("[TestEnvironmentConfig] reuseDbCluster value: " + this .reuseDbCluster );
712721 if (!this .reuseDbCluster && !StringUtils .isNullOrEmpty (this .runnerIP )) {
722+ LOGGER .info ("[TestEnvironmentConfig] deauthorizing IP..." );
713723 rdsUtil .ec2DeauthorizesIP (runnerIP );
714724 }
715725
716726 if (!this .reuseDbCluster ) {
727+ LOGGER .info ("[TestEnvironmentConfig] deleting cluster..." );
717728 LOGGER .finest ("Deleting cluster " + this .clusterName + ".cluster-" + this .clusterDomain );
718729 rdsUtil .deleteCluster (this .clusterName );
719730 LOGGER .finest ("Deleted cluster " + this .clusterName + ".cluster-" + this .clusterDomain );
731+ } else {
732+ LOGGER .info ("[TestEnvironmentConfig] The reuseDbCluster branch was hit in deleteDbCluster" );
720733 }
721734 }
722735}
0 commit comments