public async Task TestDeleteSparkJob() { SqlScriptClient client = CreateClient(); SqlScriptResource resource = await DisposableSqlScript.CreateResource(client, Recording); SqlScriptDeleteSqlScriptOperation deleteOperation = await client.StartDeleteSqlScriptAsync(resource.Name); await deleteOperation.WaitAndAssertSuccessfulCompletion(); }
public async Task TestRenameSparkJob() { SqlScriptClient client = CreateClient(); SqlScriptResource resource = await DisposableSqlScript.CreateResource(client, Recording); string newScriptName = Recording.GenerateId("SqlScript", 16); SqlScriptRenameSqlScriptOperation renameOperation = await client.StartRenameSqlScriptAsync(resource.Name, new ArtifactRenameRequest() { NewName = newScriptName }); await renameOperation.WaitForCompletionResponseAsync(); SqlScriptResource sparkJob = await client.GetSqlScriptAsync(newScriptName); Assert.AreEqual(newScriptName, sparkJob.Name); SqlScriptDeleteSqlScriptOperation deleteOperation = await client.StartDeleteSqlScriptAsync(newScriptName); await deleteOperation.WaitForCompletionResponseAsync(); }