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(); }
public async ValueTask DisposeAsync() { SqlScriptDeleteSqlScriptOperation deleteOperation = await _client.StartDeleteSqlScriptAsync(Name); await deleteOperation.WaitForCompletionResponseAsync(); }