@@ -527,6 +527,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
527
527
.setNodeCount (1 )
528
528
.build ())
529
529
.get ();
530
+ System .out .println ("Creating database ..." );
530
531
try {
531
532
String out =
532
533
SampleRunner .runSample (
@@ -538,6 +539,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
538
539
String .format (
539
540
"Created database [%s]" , DatabaseName .of (projectId , instanceId , databaseId )));
540
541
542
+ System .out .println ("Creating backup with encryption key ..." );
541
543
out =
542
544
SampleRunner .runSampleWithRetry (
543
545
() ->
@@ -556,6 +558,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
556
558
+ "was created at (.*) using encryption key %s" ,
557
559
projectId , instanceId , encryptedBackupId , key ));
558
560
561
+ System .out .println ("Restoring backup with encryption key ..." );
559
562
out =
560
563
SampleRunner .runSampleWithRetry (
561
564
() ->
@@ -587,6 +590,7 @@ public void testEncryptedDatabaseAndBackupSamples() throws Exception {
587
590
} finally {
588
591
// Delete the backups from the test instance first, as the instance can only be deleted once
589
592
// all backups have been deleted.
593
+ System .out .println ("Deleting backups ..." );
590
594
deleteAllBackups (instanceId );
591
595
instanceAdminClient .deleteInstance (instanceId );
592
596
}
@@ -633,6 +637,7 @@ private static void deleteAllBackups(String instanceId) throws InterruptedExcept
633
637
InstanceName instanceName = InstanceName .of (projectId , instanceId );
634
638
for (Backup backup : databaseAdminClient .listBackups (instanceName .toString ()).iterateAll ()) {
635
639
int attempts = 0 ;
640
+ System .out .printf ("Deleting backup ... %s%n" , backup .getName ());
636
641
while (attempts < 30 ) {
637
642
try {
638
643
attempts ++;
0 commit comments