public async Task DeleteDataFlow() { DataFlowClient client = CreateClient(); DataFlowResource resource = await DisposableDataFlow.CreateResource(client, this.Recording); DataFlowDeleteDataFlowOperation operation = await client.StartDeleteDataFlowAsync(resource.Name); await operation.WaitAndAssertSuccessfulCompletion(); }
public async Task TestDeleteDataFlow() { var operation = await DataFlowClient.StartDeleteDataFlowAsync("MyDataFlow"); while (!operation.HasValue) { operation.UpdateStatus(); } Assert.AreEqual(200, operation.Value.Status); }
public async Task TestDeleteDataFlow() { string dataFlowName = Recording.GenerateName("DataFlow"); DataFlowCreateOrUpdateDataFlowOperation createOperation = await DataFlowClient.StartCreateOrUpdateDataFlowAsync(dataFlowName, new DataFlowResource(new DataFlow())); await createOperation.WaitForCompletionAsync(); DataFlowDeleteDataFlowOperation deleteOperation = await DataFlowClient.StartDeleteDataFlowAsync(dataFlowName); Response response = await deleteOperation.WaitForCompletionAsync(); Assert.AreEqual(200, response.Status); }
public async Task DeleteDataFlow() { DataFlowClient client = CreateClient(); DataFlowResource resource = await DisposableDataFlow.CreateResource(client, this.Recording); DataFlowDeleteDataFlowOperation operation = await client.StartDeleteDataFlowAsync(resource.Name); Response response = await operation.WaitForCompletionAsync(); switch (response.Status) { case 200: case 204: break; default: Assert.Fail($"Unexpected status ${response.Status} returned"); break; } }
public async Task RenameDataFlow() { DataFlowClient client = CreateClient(); DataFlowResource resource = await DisposableDataFlow.CreateResource(client, this.Recording); string newFlowName = Recording.GenerateAssetName("DataFlow2"); DataFlowRenameDataFlowOperation renameOperation = await client.StartRenameDataFlowAsync(resource.Name, new ArtifactRenameRequest() { NewName = newFlowName }); await renameOperation.WaitForCompletionResponseAsync(); DataFlowResource dataFlow = await client.GetDataFlowAsync(newFlowName); Assert.AreEqual(newFlowName, dataFlow.Name); DataFlowDeleteDataFlowOperation operation = await client.StartDeleteDataFlowAsync(newFlowName); await operation.WaitForCompletionResponseAsync(); }
public async ValueTask DisposeAsync() { DataFlowDeleteDataFlowOperation operation = await _client.StartDeleteDataFlowAsync(Name); await operation.WaitForCompletionResponseAsync(); }