Skip to content

Commit 91669ab

Browse files
Cleaned resources
1 parent 8f5fd16 commit 91669ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compute/cloud-client/src/test/java/compute/snapshotschedule/SnapshotScheduleIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public static void setUp()
6060
throws IOException, ExecutionException, InterruptedException, TimeoutException {
6161
requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS");
6262
requireEnvVar("GOOGLE_CLOUD_PROJECT");
63+
6364
}
6465

6566
@Test
@@ -95,12 +96,15 @@ public void testEditSnapshotSchedule()
9596

9697
@Test
9798
@Order(2)
98-
public void testListSnapshotSchedules() throws IOException {
99+
public void testListSnapshotSchedules() throws IOException, ExecutionException, InterruptedException, TimeoutException {
99100
List<ResourcePolicy> list = ListSnapshotSchedules.listSnapshotSchedules(
100101
PROJECT_ID, REGION);
101102

102103
assertThat(list.size()).isEqualTo(1);
103104
assertThat(list.get(0).getName()).isEqualTo(SCHEDULE_NAME);
105+
for ( ResourcePolicy item: list) {
106+
DeleteSnapshotSchedule.deleteSnapshotSchedule(PROJECT_ID, REGION, item.getName());
107+
}
104108
}
105109

106110
@Test

0 commit comments

Comments
 (0)