From c06f518836107e4988a3fb4634ea67eb1d6010c3 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 16 Apr 2022 03:55:37 +0100 Subject: [PATCH] fixing url's --- src/isn/commands/PushCommand.cs | 2 +- test/isn.tests/PushTest.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/isn/commands/PushCommand.cs b/src/isn/commands/PushCommand.cs index ed3c23e..e858347 100644 --- a/src/isn/commands/PushCommand.cs +++ b/src/isn/commands/PushCommand.cs @@ -33,7 +33,7 @@ namespace isn try { - Console.WriteLine("Connecting to "+pubRes.Id); + Console.WriteLine("Connecting to "+ pubRes.Id); return UploadFilesToServerUsingHttpClient.UploadFilesToServer(new Uri(pubRes.Id), fi, apikey); } catch (WebException ex) diff --git a/test/isn.tests/PushTest.cs b/test/isn.tests/PushTest.cs index 3226c22..e174c98 100644 --- a/test/isn.tests/PushTest.cs +++ b/test/isn.tests/PushTest.cs @@ -46,7 +46,7 @@ dataTable.Rows.Add(dataRow); [Fact] public async Task TestHttpClient() { - string url = "http://localhost:88/index.json"; + string url = "http://isn.pschneider.fr/index.json"; HttpClient client = new HttpClient(); // var json = await client.GetStringAsync(new System.Uri(url)); var response = await client.GetAsync(url); @@ -66,7 +66,7 @@ dataTable.Rows.Add(dataRow); [Fact] public async Task GetServerResourcesUsingWebRequestAsyncTest() { - var model = await SourceHelpers.GetServerResourcesUsingWebRequestAsync("Http://localhost:88/index.json"); + var model = await SourceHelpers.GetServerResourcesUsingWebRequestAsync("Http://isn.pschneider.fr/index.json"); Console.WriteLine(JsonConvert.SerializeObject(model)); Assert.NotNull(model.Resources); var pub = model.Resources.FirstOrDefault((r) => r.Type == "PackagePublish/2.0.0");