From d8ab0420c0f2a43c8f14d89c15c3d7fbbddb80af Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 13 May 2020 23:15:26 +0000 Subject: [PATCH] --- Global/GlobalAll.cs | 4 ++-- LogFiles/LogFiles.cs | 2 +- Metrics/Metrics.cs | 4 ++-- Privacy/Privacy.cs | 2 +- ServerJob/JobOperations.cs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Global/GlobalAll.cs b/Global/GlobalAll.cs index b1d20b6..a47921c 100644 --- a/Global/GlobalAll.cs +++ b/Global/GlobalAll.cs @@ -14,12 +14,12 @@ namespace raven_integration //excercise the fetch and update routes but no actual changes because making a change of any kind to global will likely break other tests //and we just need to see the routes are active really - ApiResponse a = await Util.GetAsync("GlobalBizSettings", await Util.GetTokenAsync("BizAdminFull")); + ApiResponse a = await Util.GetAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull")); Util.ValidateDataReturnResponseOk(a); a.ObjectResponse["data"]["searchCaseSensitiveOnly"].Should().NotBeNull(); var g = a.ObjectResponse["data"]; - a = await Util.PostAsync("GlobalBizSettings", await Util.GetTokenAsync("BizAdminFull"), g.ToString(Newtonsoft.Json.Formatting.None)); + a = await Util.PostAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull"), g.ToString(Newtonsoft.Json.Formatting.None)); Util.ValidateHTTPStatusCode(a, 204); } diff --git a/LogFiles/LogFiles.cs b/LogFiles/LogFiles.cs index 8e0c9f4..10188db 100644 --- a/LogFiles/LogFiles.cs +++ b/LogFiles/LogFiles.cs @@ -19,7 +19,7 @@ namespace raven_integration [Fact] public async void MostRecentLogShouldFetch() { - ApiTextResponse t = await Util.GetTextResultAsync("LogFiles/log-ayanova.txt", await Util.GetTokenAsync("OpsAdminFull")); + ApiTextResponse t = await Util.GetTextResultAsync("log-file/log-ayanova.txt", await Util.GetTokenAsync("OpsAdminFull")); Util.ValidateHTTPStatusCode(t, 200); string[] ExpectedLogItems = {"|INFO|","|ERROR|","|FATAL|", "|WARN|"};//assumes any log will have at least one of these items in it t.TextResponse.Should().ContainAny(ExpectedLogItems); diff --git a/Metrics/Metrics.cs b/Metrics/Metrics.cs index 712f2ba..184f716 100644 --- a/Metrics/Metrics.cs +++ b/Metrics/Metrics.cs @@ -17,7 +17,7 @@ namespace raven_integration [Fact] public async void TextMetricsShouldFetch() { - ApiTextResponse t = await Util.GetTextResultAsync("Metrics/TextSnapShot", await Util.GetTokenAsync("OpsAdminFull")); + ApiTextResponse t = await Util.GetTextResultAsync("metric/textsnapshot", await Util.GetTokenAsync("OpsAdminFull")); Util.ValidateHTTPStatusCode(t, 200); @@ -33,7 +33,7 @@ namespace raven_integration [Fact] public async void JsonMetricsShouldFetch() { - ApiResponse a = await Util.GetAsync("Metrics/JsonSnapShot", await Util.GetTokenAsync("OpsAdminFull")); + ApiResponse a = await Util.GetAsync("metric/jsonsnapshot", await Util.GetTokenAsync("OpsAdminFull")); Util.ValidateDataReturnResponseOk(a); diff --git a/Privacy/Privacy.cs b/Privacy/Privacy.cs index 065f9c2..93adfe5 100644 --- a/Privacy/Privacy.cs +++ b/Privacy/Privacy.cs @@ -16,7 +16,7 @@ namespace raven_integration // public async void LogShouldNotContainPrivateData() // { // ApiResponse a = await Util.GetAsync("AyaType", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT")); - // ApiTextResponse t = await Util.GetTextResultAsync("LogFiles/log-ayanova.txt", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT")); + // ApiTextResponse t = await Util.GetTextResultAsync("log-file/log-ayanova.txt", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT")); // Util.ValidateHTTPStatusCode(t, 200); // t.TextResponse.Should().NotContain("TEST_PRIVACY_USER_ACCOUNT"); diff --git a/ServerJob/JobOperations.cs b/ServerJob/JobOperations.cs index a50508e..e629719 100644 --- a/ServerJob/JobOperations.cs +++ b/ServerJob/JobOperations.cs @@ -30,7 +30,7 @@ namespace raven_integration String jobId = a.ObjectResponse["jobId"].Value(); //Get a list of operations - a = await Util.GetAsync("JobOperations", await Util.GetTokenAsync("OpsAdminFull")); + a = await Util.GetAsync("job-operations", await Util.GetTokenAsync("OpsAdminFull")); Util.ValidateDataReturnResponseOk(a); Util.ValidateHTTPStatusCode(a, 200);