From 21fd1f154f92bec9292a1f41536523386e4d8a8c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 8 May 2020 16:48:33 +0000 Subject: [PATCH] --- ImportV7/ImportV7.cs | 57 -------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 ImportV7/ImportV7.cs diff --git a/ImportV7/ImportV7.cs b/ImportV7/ImportV7.cs deleted file mode 100644 index ee18674..0000000 --- a/ImportV7/ImportV7.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using Xunit; -using Newtonsoft.Json.Linq; -using FluentAssertions; -using System.Collections.Generic; -using System.Collections.Concurrent; -using System.Net.Http; -using System.Net.Http.Headers; -using System.IO; - - -namespace raven_integration -{ - - public class ImportV7 - { - //================================================== - /// - /// Test Importv7 stuff - /// - [Fact] - public async void ImportV7FileRoutesShouldWork() - { - - string UploadFileName = "ayanova.data.dump.xxx.zip"; - - ////////////////////////////////////////// - //// Upload the files - MultipartFormDataContent formDataContent = new MultipartFormDataContent(); - - StreamContent file1 = new StreamContent(File.OpenRead($"{Util.TEST_DATA_FOLDER}\\{UploadFileName}")); - file1.Headers.ContentType = new MediaTypeHeaderValue("application/zip"); - file1.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data"); - file1.Headers.ContentDisposition.FileName = UploadFileName; - formDataContent.Add(file1); - - ApiResponse a = await Util.PostFormDataAsync("ImportAyaNova7", formDataContent, await Util.GetTokenAsync("OpsAdminFull")); - Util.ValidateDataReturnResponseOk(a); - - string importFileName = a.ObjectResponse["data"][0].Value(); - importFileName.Should().Be(UploadFileName); - - - ////////////////////////////////////////// - //// DELETE: Delete the file - ApiResponse d = await Util.DeleteAsync($"ImportAyaNova7/{UploadFileName}", await Util.GetTokenAsync("OpsAdminFull")); - Util.ValidateHTTPStatusCode(d, 204); - - - - } - - - //================================================== - - }//eoc -}//eons