@@ -527,6 +527,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
527527 .setNodeCount (1 )
528528 .build ())
529529 .get ();
530+ System .out .println ("Creating database ..." );
530531 try {
531532 String out =
532533 SampleRunner .runSample (
@@ -538,6 +539,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
538539 String .format (
539540 "Created database [%s]" , DatabaseName .of (projectId , instanceId , databaseId )));
540541
542+ System .out .println ("Creating backup with encryption key ..." );
541543 out =
542544 SampleRunner .runSampleWithRetry (
543545 () ->
@@ -556,6 +558,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
556558 + "was created at (.*) using encryption key %s" ,
557559 projectId , instanceId , encryptedBackupId , key ));
558560
561+ System .out .println ("Restoring backup with encryption key ..." );
559562 out =
560563 SampleRunner .runSampleWithRetry (
561564 () ->
@@ -587,6 +590,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
587590 } finally {
588591 // Delete the backups from the test instance first, as the instance can only be deleted once
589592 // all backups have been deleted.
593+ System .out .println ("Deleting backups ..." );
590594 deleteAllBackups (instanceId );
591595 instanceAdminClient .deleteInstance (instanceId );
592596 }
@@ -633,6 +637,7 @@ private static void deleteAllBackups(String instanceId) throws InterruptedExcept
633637 InstanceName instanceName = InstanceName .of (projectId , instanceId );
634638 for (Backup backup : databaseAdminClient .listBackups (instanceName .toString ()).iterateAll ()) {
635639 int attempts = 0 ;
640+ System .out .printf ("Deleting backup ... %s%n" , backup .getName ());
636641 while (attempts < 30 ) {
637642 try {
638643 attempts ++;
0 commit comments