| 101 | }; |
| 102 | |
| 103 | const deleteDiskSnapshot = async (projectId, snapshotName) => { |
| 104 | const [response] = await snapshotsClient.delete({ |
| 105 | project: projectId, |
| 106 | snapshot: snapshotName, |
| 107 | }); |
| 108 | let operation = response.latestResponse; |
| 109 | const operationsClient = new compute.GlobalOperationsClient(); |
| 110 | |
| 111 | while (operation.status !== 'DONE') { |
| 112 | [operation] = await operationsClient.wait({ |
| 113 | operation: operation.name, |
| 114 | project: projectId, |
| 115 | }); |
| 116 | } |
| 117 | }; |
| 118 | |
| 119 | describe('disks tests', () => { |
| 120 | const instanceName = generateTestId(); |