This commit is contained in:
2020-05-13 23:15:26 +00:00
parent 72a936ecad
commit d8ab0420c0
5 changed files with 7 additions and 7 deletions

View File

@@ -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 //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 //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); Util.ValidateDataReturnResponseOk(a);
a.ObjectResponse["data"]["searchCaseSensitiveOnly"].Should().NotBeNull(); a.ObjectResponse["data"]["searchCaseSensitiveOnly"].Should().NotBeNull();
var g = a.ObjectResponse["data"]; 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); Util.ValidateHTTPStatusCode(a, 204);
} }

View File

@@ -19,7 +19,7 @@ namespace raven_integration
[Fact] [Fact]
public async void MostRecentLogShouldFetch() 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); Util.ValidateHTTPStatusCode(t, 200);
string[] ExpectedLogItems = {"|INFO|","|ERROR|","|FATAL|", "|WARN|"};//assumes any log will have at least one of these items in it string[] ExpectedLogItems = {"|INFO|","|ERROR|","|FATAL|", "|WARN|"};//assumes any log will have at least one of these items in it
t.TextResponse.Should().ContainAny(ExpectedLogItems); t.TextResponse.Should().ContainAny(ExpectedLogItems);

View File

@@ -17,7 +17,7 @@ namespace raven_integration
[Fact] [Fact]
public async void TextMetricsShouldFetch() 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); Util.ValidateHTTPStatusCode(t, 200);
@@ -33,7 +33,7 @@ namespace raven_integration
[Fact] [Fact]
public async void JsonMetricsShouldFetch() 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); Util.ValidateDataReturnResponseOk(a);

View File

@@ -16,7 +16,7 @@ namespace raven_integration
// public async void LogShouldNotContainPrivateData() // public async void LogShouldNotContainPrivateData()
// { // {
// ApiResponse a = await Util.GetAsync("AyaType", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT")); // 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); // Util.ValidateHTTPStatusCode(t, 200);
// t.TextResponse.Should().NotContain("TEST_PRIVACY_USER_ACCOUNT"); // t.TextResponse.Should().NotContain("TEST_PRIVACY_USER_ACCOUNT");

View File

@@ -30,7 +30,7 @@ namespace raven_integration
String jobId = a.ObjectResponse["jobId"].Value<String>(); String jobId = a.ObjectResponse["jobId"].Value<String>();
//Get a list of operations //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.ValidateDataReturnResponseOk(a);
Util.ValidateHTTPStatusCode(a, 200); Util.ValidateHTTPStatusCode(a, 200);