diff --git a/Tools/src/DependencyTester/Helper.cs b/Tools/src/DependencyTester/Helper.cs index ff5ad48..9c56d0d 100644 --- a/Tools/src/DependencyTester/Helper.cs +++ b/Tools/src/DependencyTester/Helper.cs @@ -108,10 +108,16 @@ internal static void CheckRestService(string restUrl, string restVerb, string re httpClient.DefaultRequestHeaders.Accept .Add(new MediaTypeWithQualityHeaderValue("application/json")); //ACCEPT header + if (restVerb.Equals("GET")) + { + result = httpClient.GetAsync(restUrl).Result; + } + if (result != null && result.StatusCode.Equals(HttpStatusCode.OK)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"REST Service: {restUrl} OK"); + Console.WriteLine($"REST Response: {result.Content.ReadAsStringAsync().Result}"); } else { @@ -119,11 +125,7 @@ internal static void CheckRestService(string restUrl, string restVerb, string re Console.WriteLine($"REST Service: {restUrl} Failed with Status Code {result.StatusCode} ({result.ReasonPhrase})"); } - if (restVerb.Equals("GET")) - { - result = httpClient.GetAsync(restUrl).Result; - Console.WriteLine($"REST Response: {result.Content.ReadAsStringAsync().Result}"); - } + } public static void SendTestEmail(string smtpHost, int smtpPort, string emailRecipient) diff --git a/Tools/src/JiraReporting/Properties/launchSettings.json b/Tools/src/JiraReporting/Properties/launchSettings.json index 9e6f2d5..14c6a99 100644 --- a/Tools/src/JiraReporting/Properties/launchSettings.json +++ b/Tools/src/JiraReporting/Properties/launchSettings.json @@ -1,7 +1,8 @@ { "profiles": { "JiraReporting": { - "commandName": "Project" + "commandName": "Project", + "commandLineArgs": "--JiraEndpoint \"https://allianzpartnersaustralia.atlassian.net\" --JiraProject \"AST\" --JiraUsername \"lemonaco@allianz-assistance.com.au\" --JiraAuthenticationToken \"iqAwykgOvn6Pm3cKpX8c81D6\" --PowerBiDatasetEndpoint \"https://api.powerbi.com/beta/d043a8fb-361f-45e7-a6e7-28ebf566c84a/datasets/7f94ce8b-ab82-4143-936f-1f6e32ed69de/rows?key=yAZGEdX29dbfdFaNDwsYzbA6aE3rwyODe7VXJ49Wdb4GeY8gLqX1hALRm4prTzKFmve677OM%2BSWoNz0UhhA7bA%3D%3D\"" } } } \ No newline at end of file