Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri committed Nov 21, 2022
1 parent c87e950 commit ff109be
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions compute/test/creatingManagingWindows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,45 +29,10 @@ const globalOperationsClient = new compute.GlobalOperationsClient();

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const deleteFirewallRule = async (projectId, firewallRule) => {
const [response] = await firewallsClient.delete({
project: projectId,
firewall: firewallRule,
});
let operation = response.latestResponse;

// Wait for the delete operation to complete.
while (operation.status !== 'DONE') {
[operation] = await globalOperationsClient.wait({
operation: operation.name,
project: projectId,
});
}
};

const deleteRoute = async (projectId, routeName) => {
const [response] = await routesClient.delete({
project: projectId,
route: routeName,
});
let operation = response.latestResponse;
const operationsClient = new compute.GlobalOperationsClient();

// Wait for the delete operation to complete.
while (operation.status !== 'DONE') {
[operation] = await operationsClient.wait({
operation: operation.name,
project: projectId,
});
}
};

describe('creating managing windows instances tests', () => {
const instanceName = generateTestId();
const firewallRuleName = generateTestId();
const networkName = 'global/networks/default-compute';
const subnetworkName = 'regions/europe-central2/subnetworks/default-compute';
const routeName = generateTestId();
const zone = 'europe-central2-b';
const machineType = 'n1-standard-1';
const sourceImageFamily = 'windows-2012-r2';
Expand Down

0 comments on commit ff109be

Please sign in to comment.