Exemplo n.º 1
0
        public async Task TestDeleteNotebook()
        {
            PipelineClient client = CreateClient();

            PipelineResource resource = await DisposablePipeline.CreateResource(client, this.Recording);

            PipelineDeletePipelineOperation operation = await client.StartDeletePipelineAsync(resource.Name);

            await operation.WaitAndAssertSuccessfulCompletion();
        }
Exemplo n.º 2
0
        public async Task TestDeletePipeline()
        {
            var operation = await PipelineClient.StartDeletePipelineAsync("MyPipeline");

            while (!operation.HasValue)
            {
                operation.UpdateStatus();
            }
            Assert.AreEqual(200, operation.Value.Status);
        }
        public async Task TestDeletePipeline()
        {
            string pipelineName = Recording.GenerateName("Pipeline");

            PipelineCreateOrUpdatePipelineOperation createOperation = await PipelineClient.StartCreateOrUpdatePipelineAsync(pipelineName, new PipelineResource());

            await createOperation.WaitForCompletionAsync();

            PipelineDeletePipelineOperation deleteOperation = await PipelineClient.StartDeletePipelineAsync(pipelineName);

            Response response = await deleteOperation.WaitForCompletionAsync();

            Assert.AreEqual(200, response.Status);
        }
Exemplo n.º 4
0
        public async Task TestRenameLinkedService()
        {
            PipelineClient client = CreateClient();

            PipelineResource resource = await DisposablePipeline.CreateResource(client, Recording);

            string newPipelineName = Recording.GenerateId("Pipeline2", 16);

            PipelineRenamePipelineOperation renameOperation = await client.StartRenamePipelineAsync(resource.Name, new ArtifactRenameRequest()
            {
                NewName = newPipelineName
            });

            await renameOperation.WaitForCompletionResponseAsync();

            PipelineResource pipeline = await client.GetPipelineAsync(newPipelineName);

            Assert.AreEqual(newPipelineName, pipeline.Name);

            PipelineDeletePipelineOperation operation = await client.StartDeletePipelineAsync(newPipelineName);

            await operation.WaitForCompletionResponseAsync();
        }
Exemplo n.º 5
0
        public async ValueTask DisposeAsync()
        {
            PipelineDeletePipelineOperation operation = await _client.StartDeletePipelineAsync(Name);

            await operation.WaitForCompletionResponseAsync();
        }