4648
This commit is contained in:
@@ -17,7 +17,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerApiRootPageShouldFetch()
|
||||
public async Task ServerApiRootPageShouldFetch()
|
||||
{
|
||||
ApiTextResponse t = await Util.GetNonApiPageAsync("/api/v8/");
|
||||
Util.ValidateHTTPStatusCode(t, 200);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace raven_integration
|
||||
/// test attach CRUD
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void AttachmentUploadDownloadDeleteShouldWork()
|
||||
public async Task AttachmentUploadDownloadDeleteShouldWork()
|
||||
{
|
||||
|
||||
//Make a user just for this test so can deal with dl token properly
|
||||
@@ -114,7 +114,7 @@ namespace raven_integration
|
||||
/// test no rights
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void NoRightsTest()
|
||||
public async Task NoRightsTest()
|
||||
{
|
||||
|
||||
MultipartFormDataContent formDataContent = new MultipartFormDataContent();
|
||||
@@ -144,7 +144,7 @@ namespace raven_integration
|
||||
/// test not attachable
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UnattachableTest()
|
||||
public async Task UnattachableTest()
|
||||
{
|
||||
MultipartFormDataContent formDataContent = new MultipartFormDataContent();
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace raven_integration
|
||||
/// test bad object values
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BadObject()
|
||||
public async Task BadObject()
|
||||
{
|
||||
MultipartFormDataContent formDataContent = new MultipartFormDataContent();
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@ using FluentAssertions;
|
||||
namespace raven_integration
|
||||
{
|
||||
|
||||
public class auth
|
||||
public class Auth
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BadLoginShouldNotWork()
|
||||
public async Task BadLoginShouldNotWork()
|
||||
{
|
||||
//Expect status code 401 and result:
|
||||
// {{
|
||||
@@ -38,7 +38,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTExpiredTokenShouldFail()
|
||||
public async Task JWTExpiredTokenShouldFail()
|
||||
{
|
||||
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
@@ -54,7 +54,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTWrongIssuerShouldFail()
|
||||
public async Task JWTWrongIssuerShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
@@ -69,7 +69,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTNoAlgorithmShouldFail()
|
||||
public async Task JWTNoAlgorithmShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
@@ -84,7 +84,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTBadSecretShouldFail()
|
||||
public async Task JWTBadSecretShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
@@ -100,7 +100,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTTruncatedSignatureShouldFail()
|
||||
public async Task JWTTruncatedSignatureShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
@@ -116,7 +116,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void JWTTransposedSignatureShouldFail()
|
||||
public async Task JWTTransposedSignatureShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
var BuildMode = a.ObjectResponse["data"]["buildMode"].Value<string>();
|
||||
|
||||
@@ -86,7 +86,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpEqualityFilterWorks()
|
||||
public async Task DateOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpEqualityFilterWorks";
|
||||
@@ -176,7 +176,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpGreaterThanFilterWorks()
|
||||
public async Task DateOpGreaterThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpGreaterThanFilterWorks";
|
||||
@@ -263,7 +263,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpGreaterThanOrEqualToFilterWorks()
|
||||
public async Task DateOpGreaterThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpGreaterThanOrEqualToFilterWorks";
|
||||
@@ -351,7 +351,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpLessThanFilterWorks()
|
||||
public async Task DateOpLessThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpLessThanFilterWorks";
|
||||
@@ -435,7 +435,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpLessThanOrEqualToFilterWorks()
|
||||
public async Task DateOpLessThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpLessThanOrEqualToFilterWorks";
|
||||
@@ -517,7 +517,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpNotEqualToFilterWorks()
|
||||
public async Task DateOpNotEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpNotEqualToFilterWorks";
|
||||
@@ -599,7 +599,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateOpBetweenFilterWorks()
|
||||
public async Task DateOpBetweenFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateOpBetweenFilterWorks";
|
||||
@@ -758,7 +758,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DateTokenYesterdayFilterWorks()
|
||||
public async Task DateTokenYesterdayFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DateTokenYesterdayFilterWorks";
|
||||
@@ -872,7 +872,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpEqualityFilterWorks()
|
||||
public async Task TextOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpEqualityFilterWorks";
|
||||
@@ -979,7 +979,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
/// Specifically test a string with an apostrophe in it (for inclusive)
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextApostropheOpEqualityFilterWorks()
|
||||
public async Task TextApostropheOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextApostropheOpEqualityFilterWorks";
|
||||
@@ -1081,7 +1081,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
/// specifically test a string with an ampersand character in it for inclusive (finding it)
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextAmpersandOpEqualityFilterWorks()
|
||||
public async Task TextAmpersandOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextAmpersandOpEqualityFilterWorks";
|
||||
@@ -1185,7 +1185,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
/// specifically test a non english unicode string
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextUnicodeOpEqualityFilterWorks()
|
||||
public async Task TextUnicodeOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextUnicodeOpEqualityFilterWorks";
|
||||
@@ -1289,7 +1289,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpGreaterThanFilterWorks()
|
||||
public async Task TextOpGreaterThanFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpGreaterThanFilterWorks";
|
||||
@@ -1393,7 +1393,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpGreaterThanOrEqualToFilterWorks()
|
||||
public async Task TextOpGreaterThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpGreaterThanOrEqualToFilterWorks";
|
||||
@@ -1496,7 +1496,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpLessThanFilterWorks()
|
||||
public async Task TextOpLessThanFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpLessThanFilterWorks";
|
||||
@@ -1599,7 +1599,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpLessThanOrEqualToFilterWorks()
|
||||
public async Task TextOpLessThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpLessThanOrEqualToFilterWorks";
|
||||
@@ -1702,7 +1702,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpNotEqualFilterWorks()
|
||||
public async Task TextOpNotEqualFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TextOpNotEqualFilterWorks";
|
||||
@@ -1805,7 +1805,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpNotContainsFilterWorks()
|
||||
public async Task TextOpNotContainsFilterWorks()
|
||||
{
|
||||
var TestName = "TextOpNotContainsFilterWorks";
|
||||
var WidgetNameStart = Util.Uniquify(TestName);
|
||||
@@ -1907,7 +1907,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpContainsFilterWorks()
|
||||
public async Task TextOpContainsFilterWorks()
|
||||
{
|
||||
var TestName = "TextOpContainsFilterWorks";
|
||||
var WidgetNameStart = Util.Uniquify(TestName);
|
||||
@@ -2008,7 +2008,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpStartsWithFilterWorks()
|
||||
public async Task TextOpStartsWithFilterWorks()
|
||||
{
|
||||
var TestName = "TextOpStartsWithFilterWorks";
|
||||
var WidgetNameStart = Util.Uniquify(TestName);
|
||||
@@ -2112,7 +2112,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TextOpEndsWithFilterWorks()
|
||||
public async Task TextOpEndsWithFilterWorks()
|
||||
{
|
||||
var TestName = "TextOpEndsWithFilterWorks";
|
||||
var WidgetNameStart = Util.Uniquify(TestName);
|
||||
@@ -2229,7 +2229,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerOpEqualityFilterWorks()
|
||||
public async Task IntegerOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerDataFilterTest";
|
||||
@@ -2311,7 +2311,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerOpGreaterThanFilterWorks()
|
||||
public async Task IntegerOpGreaterThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerOpGreaterThanFilterWorks";
|
||||
@@ -2391,7 +2391,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerOpGreaterThanOrEqualToFilterWorks()
|
||||
public async Task IntegerOpGreaterThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerOpGreaterThanOrEqualToFilterWorks";
|
||||
@@ -2473,7 +2473,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerOpLessThanFilterWorks()
|
||||
public async Task IntegerOpLessThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerOpLessThanFilterWorks";
|
||||
@@ -2554,7 +2554,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerOpLessThanOrEqualToFilterWorks()
|
||||
public async Task IntegerOpLessThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerOpLessThanOrEqualToFilterWorks";
|
||||
@@ -2635,7 +2635,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IntegerNotEqualToFilterWorks()
|
||||
public async Task IntegerNotEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "IntegerNotEqualToFilterWorks";
|
||||
@@ -2723,7 +2723,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BoolOpEqualityFilterWorks()
|
||||
public async Task BoolOpEqualityFilterWorks()
|
||||
{
|
||||
//OPS: equal to, not equal to
|
||||
//values: true, false
|
||||
@@ -2834,7 +2834,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BoolOpNotEqualFilterWorks()
|
||||
public async Task BoolOpNotEqualFilterWorks()
|
||||
{
|
||||
|
||||
//OPS: equal to, not equal to
|
||||
@@ -2953,7 +2953,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalOpEqualityFilterWorks()
|
||||
public async Task DecimalOpEqualityFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalOpEqualityFilterWorks";
|
||||
@@ -3033,7 +3033,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalOpGreaterThanFilterWorks()
|
||||
public async Task DecimalOpGreaterThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalOpGreaterThanFilterWorks";
|
||||
@@ -3114,7 +3114,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalOpGreaterThanOrEqualToFilterWorks()
|
||||
public async Task DecimalOpGreaterThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalOpGreaterThanOrEqualToFilterWorks";
|
||||
@@ -3197,7 +3197,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalOpLessThanFilterWorks()
|
||||
public async Task DecimalOpLessThanFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalOpLessThanFilterWorks";
|
||||
@@ -3279,7 +3279,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalOpLessThanOrEqualToFilterWorks()
|
||||
public async Task DecimalOpLessThanOrEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalOpLessThanOrEqualToFilterWorks";
|
||||
@@ -3362,7 +3362,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DecimalNotEqualToFilterWorks()
|
||||
public async Task DecimalNotEqualToFilterWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = "DecimalNotEqualToFilterWorks";
|
||||
@@ -3449,7 +3449,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TagFilterWorks()
|
||||
public async Task TagFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "TagFilterWorks";
|
||||
@@ -3582,7 +3582,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UnicodeTagFilterWorks()
|
||||
public async Task UnicodeTagFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "UnicodeTagFilterWorks";
|
||||
@@ -3712,7 +3712,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void IdFilterWorks()
|
||||
public async Task IdFilterWorks()
|
||||
{
|
||||
|
||||
var TestName = "IdFilterWorks";
|
||||
@@ -3772,7 +3772,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void NullEqualityFilterWorks()
|
||||
public async Task NullEqualityFilterWorks()
|
||||
{
|
||||
//OPS: equal to, not equal to
|
||||
//values: null
|
||||
@@ -3881,7 +3881,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void NullNotEqualFilterWorks()
|
||||
public async Task NullNotEqualFilterWorks()
|
||||
{
|
||||
//OPS: equal to, not equal to
|
||||
//values: null
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace raven_integration
|
||||
/// Return format test
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DataListReturnFormatShouldWorkAsExpected()
|
||||
public async Task DataListReturnFormatShouldWorkAsExpected()
|
||||
{
|
||||
|
||||
ApiResponse a = await Util.PostAsync($"data-list", await Util.GetTokenAsync("superuser", "l3tm3in"), Util.BuildDataListRequestEx(null, 3, 2));
|
||||
@@ -37,7 +37,7 @@ namespace raven_integration
|
||||
/// Return un - filtered/sorted fields and custom fields test
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DataListShouldReturnAllFieldsSpecifiedEvenIfUnsortedOrFilteredAndCustomToo()
|
||||
public async Task DataListShouldReturnAllFieldsSpecifiedEvenIfUnsortedOrFilteredAndCustomToo()
|
||||
{
|
||||
|
||||
dynamic dListView = new JArray();
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void InsufficentRightsShouldNotRetrieve()
|
||||
public async Task InsufficentRightsShouldNotRetrieve()
|
||||
{
|
||||
//Get without rights
|
||||
/*
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DefaultSortByIdWorks()
|
||||
public async Task DefaultSortByIdWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = Util.Uniquify("DefaultSortByIdWorks");
|
||||
@@ -94,7 +94,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void SortByFieldAscendingWorks()
|
||||
public async Task SortByFieldAscendingWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = Util.Uniquify("SortByFieldAscendingWorks");
|
||||
@@ -188,7 +188,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void SortByFieldDescendingWorks()
|
||||
public async Task SortByFieldDescendingWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = Util.Uniquify("SortByFieldDescendingWorks");
|
||||
@@ -279,7 +279,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void SortByMultipleFieldsWorks()
|
||||
public async Task SortByMultipleFieldsWorks()
|
||||
{
|
||||
/*
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace raven_integration
|
||||
/// Test all CRUD routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void CRUD()
|
||||
public async Task CRUD()
|
||||
{
|
||||
//CREATE
|
||||
dynamic d = new JObject();
|
||||
@@ -83,7 +83,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void InvalidListKeyShouldFail()
|
||||
public async Task InvalidListKeyShouldFail()
|
||||
{
|
||||
//CREATE
|
||||
dynamic d = new JObject();
|
||||
@@ -125,7 +125,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void InvalidFieldNameShouldFail()
|
||||
public async Task InvalidFieldNameShouldFail()
|
||||
{
|
||||
//CREATE
|
||||
dynamic d = new JObject();
|
||||
@@ -169,7 +169,7 @@ namespace raven_integration
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void InvalidOperatorShouldFail()
|
||||
// public async Task InvalidOperatorShouldFail()
|
||||
// {
|
||||
// //CREATE
|
||||
// dynamic d = new JObject();
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserManualShouldFetch()
|
||||
public async Task UserManualShouldFetch()
|
||||
{
|
||||
ApiTextResponse t = await Util.GetNonApiPageAsync("docs/");
|
||||
Util.ValidateHTTPStatusCode(t, 200);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetListOfEnumListsAndGetAllEnumListsWorks()
|
||||
public async Task GetListOfEnumListsAndGetAllEnumListsWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("enum-list/listkeys", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ObjectLogWorks()
|
||||
public async Task ObjectLogWorks()
|
||||
{
|
||||
//CRUD a widget and confirm it logs properly
|
||||
//http://localhost:7575/api/v8.0/event-log/userlog?AyType=3&AyId=1
|
||||
@@ -120,7 +120,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserLogWorks()
|
||||
public async Task UserLogWorks()
|
||||
{
|
||||
//get admin log, sb lots of shit
|
||||
ApiResponse a = await Util.GetAsync($"event-log/userlog?UserId=1&Offset=0&Limit=999", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -134,7 +134,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void EventLogLimitOffSetWorks()
|
||||
public async Task EventLogLimitOffSetWorks()
|
||||
{
|
||||
|
||||
var UniqueName = Util.Uniquify("EventLogLimitOffSetWorks");
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace raven_integration
|
||||
/// Test create or update
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FormCustomUpdate()
|
||||
public async Task FormCustomUpdate()
|
||||
{
|
||||
|
||||
//This is a special case, you can PUT a formcustom, but you can't delete one and you can't create one
|
||||
@@ -96,7 +96,7 @@ namespace raven_integration
|
||||
/// Ensure validation works in FormCustombiz
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ValidatesProperly()
|
||||
public async Task ValidatesProperly()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -187,7 +187,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void InvalidObjectFieldsFormKeyShouldFail()
|
||||
public async Task InvalidObjectFieldsFormKeyShouldFail()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("form-field-definition/nonexistent", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateErrorCodeResponse(a, 2010, 404);
|
||||
@@ -198,7 +198,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ObjectFieldsWorks()
|
||||
public async Task ObjectFieldsWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("form-field-definition/Widget", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -210,7 +210,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void AvailableCustomizableFormKeysWorks()
|
||||
public async Task AvailableCustomizableFormKeysWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("form-custom/availablecustomizableformkeys", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -223,7 +223,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void AvailableCustomTypesWorks()
|
||||
public async Task AvailableCustomTypesWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("form-custom/availablecustomtypes", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace raven_integration
|
||||
/// Test Global routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GlobalOps()
|
||||
public async Task GlobalOps()
|
||||
{
|
||||
//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
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void MostRecentLogShouldFetch()
|
||||
public async Task MostRecentLogShouldFetch()
|
||||
{
|
||||
ApiTextResponse t = await Util.GetTextResultAsync("log-file/log-ayanova.txt", await Util.GetTokenAsync("OpsAdminFull"));
|
||||
Util.ValidateHTTPStatusCode(t, 200);
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void MetricsShouldFetch()
|
||||
public async Task MetricsShouldFetch()
|
||||
{
|
||||
// DateTime tsEnd = DateTime.Now.ToOffsetAdjustedUniversalTime();//{2020-05-29 3:30:21 PM}
|
||||
// DateTime tsStart = DateTime.Now.AddHours(-6).ToOffsetAdjustedUniversalTime();//{2020-05-29 9:30:21 AM}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace raven_integration
|
||||
/// Test all Template editing related routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserPickListTemplatesOps()
|
||||
public async Task UserPickListTemplatesOps()
|
||||
{
|
||||
//NOTE: Due to there being only one possible template per type, this test will need to test ALL potential tests in one function
|
||||
//and only for the User picklist in order to not step over other potential tests running in parallel
|
||||
@@ -208,7 +208,7 @@ namespace raven_integration
|
||||
/// test get templates list
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void PickListTemplateList()
|
||||
public async Task PickListTemplateList()
|
||||
{
|
||||
//RETRIEVE
|
||||
ApiResponse a = await Util.GetAsync("pick-list/template/list", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -224,7 +224,7 @@ namespace raven_integration
|
||||
/// test get picklist fields list for widget template
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void WidgetPickListTemplateFieldList()
|
||||
public async Task WidgetPickListTemplateFieldList()
|
||||
{
|
||||
//RETRIEVE WIDGET PICKLIST FIELDS
|
||||
ApiResponse a = await Util.GetAsync("pick-list/template/ListFields/2", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -240,7 +240,7 @@ namespace raven_integration
|
||||
/// test get picklist for widget without query
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FetchWidgetPickListNoQuery()
|
||||
public async Task FetchWidgetPickListNoQuery()
|
||||
{
|
||||
//RETRIEVE WIDGET PICKLIST no filter
|
||||
ApiResponse a = await Util.GetAsync("pick-list/list?ayaType=2", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -255,7 +255,7 @@ namespace raven_integration
|
||||
/// test get picklist for single predefined value only
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FetchWidgetPickListPreDefined()
|
||||
public async Task FetchWidgetPickListPreDefined()
|
||||
{
|
||||
//fetch the SuperUser account which always exists
|
||||
ApiResponse a = await Util.GetAsync("pick-list/list?ayaType=3&preId=1", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -272,7 +272,7 @@ namespace raven_integration
|
||||
/// test get picklist for widget with basic autocomplete query only
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FetchWidgetPickListAutoComplete()
|
||||
public async Task FetchWidgetPickListAutoComplete()
|
||||
{
|
||||
|
||||
//make key widget
|
||||
@@ -312,7 +312,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FetchWidgetPickListTags()
|
||||
public async Task FetchWidgetPickListTags()
|
||||
{
|
||||
|
||||
//make key widget
|
||||
@@ -356,7 +356,7 @@ namespace raven_integration
|
||||
/// test get picklist for widget with basic autocomplete query only
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void FetchWidgetPickListInactiveActive()
|
||||
public async Task FetchWidgetPickListInactiveActive()
|
||||
{
|
||||
|
||||
//make key widget
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void LogShouldNotContainPrivateData()
|
||||
// public async Task LogShouldNotContainPrivateData()
|
||||
// {
|
||||
// ApiResponse a = await Util.GetAsync("AyaType", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT"));
|
||||
// ApiTextResponse t = await Util.GetTextResultAsync("log-file/log-ayanova.txt", await Util.GetTokenAsync("TEST_PRIVACY_USER_ACCOUNT"));
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
|
||||
//NOTE: this test failed one time for no apparent reason but then was ok afterwards
|
||||
[Fact]
|
||||
public async void PhraseOnlySearchShouldReturnCorrectResultsInOrder()
|
||||
public async Task PhraseOnlySearchShouldReturnCorrectResultsInOrder()
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "simple dogs";
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void WildCardStartsWithSearchShouldWork()
|
||||
public async Task WildCardStartsWithSearchShouldWork()
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "hap* goose";
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void WildCardEndsWithSearchShouldWork()
|
||||
public async Task WildCardEndsWithSearchShouldWork()
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "goose *act";
|
||||
|
||||
@@ -277,7 +277,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void SearchAndExtractShouldWork()
|
||||
public async Task SearchAndExtractShouldWork()
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "cast goose";
|
||||
|
||||
@@ -349,7 +349,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void TagSearchShouldWork()
|
||||
public async Task TagSearchShouldWork()
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "element* aardvark";
|
||||
|
||||
@@ -450,7 +450,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void ConstrainedBigDataSearchShouldHonourMaxResultsAndBeRelativelyFast()
|
||||
public async Task ConstrainedBigDataSearchShouldHonourMaxResultsAndBeRelativelyFast()
|
||||
{
|
||||
//THIS test is a bit different in that it relies partly on the big dataset for testing
|
||||
//so it has different paths depending upon if it's testing against the big data or not
|
||||
@@ -492,7 +492,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void UnboundBigDataSearchShouldBeRelativelyFast()
|
||||
public async Task UnboundBigDataSearchShouldBeRelativelyFast()
|
||||
{
|
||||
//THIS test is a bit different in that it relies partly on the big dataset for testing
|
||||
//so it has different paths depending upon if it's testing against the big data or not
|
||||
@@ -528,7 +528,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void SearchForSerialFieldShouldWork()
|
||||
public async Task SearchForSerialFieldShouldWork()
|
||||
{
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
@@ -580,7 +580,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void CustomFieldSearchShouldWork()
|
||||
public async Task CustomFieldSearchShouldWork()
|
||||
{
|
||||
/*
|
||||
Failing on huge data test after many hours:
|
||||
@@ -660,7 +660,7 @@ Likely fix is to force order to most recent or simply to delete after test so th
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void DeletedObjectShouldRemoveKeywords()
|
||||
public async Task DeletedObjectShouldRemoveKeywords()
|
||||
{
|
||||
string TEST_SEARCH_PHRASE = Util.Uniquify("qqwweerrttyy");
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TestJobShouldSubmit()
|
||||
public async Task TestJobShouldSubmit()
|
||||
{
|
||||
ApiResponse a = await Util.PostAsync("job-operations/test-job", await Util.GetTokenAsync("OpsAdminFull"));
|
||||
//Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace raven_integration
|
||||
/// Test get state
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerStateShouldReturnOk()
|
||||
public async Task ServerStateShouldReturnOk()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("server-state");
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TagListsWork()
|
||||
public async Task TagListsWork()
|
||||
{
|
||||
|
||||
var TestName = "TagListsWork";
|
||||
@@ -121,7 +121,7 @@ namespace raven_integration
|
||||
/// Test bulk tag bad params
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BulkBadParamsShouldFail()
|
||||
public async Task BulkBadParamsShouldFail()
|
||||
{
|
||||
|
||||
dynamic d = new JArray();
|
||||
@@ -140,7 +140,7 @@ namespace raven_integration
|
||||
// /// Test bulk tag
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void BulkTagDriver()
|
||||
// public async Task BulkTagDriver()
|
||||
// {
|
||||
|
||||
// dynamic d = new JArray();
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void RequestedLocaleKeysWorks()
|
||||
public async Task RequestedLocaleKeysWorks()
|
||||
{
|
||||
//First determine if there is a requested key route because it's debug build dependent
|
||||
//And doesn't exists if server was not debug built
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace raven_integration
|
||||
*/
|
||||
|
||||
[Fact]
|
||||
public async void TranslationListWorks()
|
||||
public async Task TranslationListWorks()
|
||||
{
|
||||
//Get all
|
||||
ApiResponse a = await Util.GetAsync("translation/list", await Util.GetTokenAsync("CustomerLimited"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
@@ -32,7 +32,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void GetFullTranslationWorks()
|
||||
public async Task GetFullTranslationWorks()
|
||||
{
|
||||
//Get all
|
||||
ApiResponse a = await Util.GetAsync("translation/1", await Util.GetTokenAsync("CustomerLimited"));//lowest level test user because there are no limits on this route except to be authenticated
|
||||
@@ -44,7 +44,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void GetSubsetWorks()
|
||||
public async Task GetSubsetWorks()
|
||||
{
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void DuplicateUpdateAndDeleteWorks()
|
||||
public async Task DuplicateUpdateAndDeleteWorks()
|
||||
{
|
||||
|
||||
//DUPLICATE
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
/// Test all CRUD routes for a User
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void CRUD()
|
||||
public async Task CRUD()
|
||||
{
|
||||
|
||||
//CREATE
|
||||
@@ -88,7 +88,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserWithActivityShouldNotBeDeleteable()
|
||||
public async Task UserWithActivityShouldNotBeDeleteable()
|
||||
{
|
||||
ApiResponse a = await Util.DeleteAsync("User/1", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
@@ -100,7 +100,7 @@ namespace raven_integration
|
||||
/// Test not found
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetNonExistentItemShouldError()
|
||||
public async Task GetNonExistentItemShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 404, api error code 2010
|
||||
@@ -112,7 +112,7 @@ namespace raven_integration
|
||||
/// Test bad modelstate
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetBadModelStateShouldError()
|
||||
public async Task GetBadModelStateShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 400, api error code 2200 and a first target in details of "id"
|
||||
@@ -125,7 +125,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void PutConcurrencyViolationShouldFail()
|
||||
public async Task PutConcurrencyViolationShouldFail()
|
||||
{
|
||||
//CREATE
|
||||
dynamic D = new JObject();
|
||||
@@ -161,7 +161,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void PutPasswordShouldWork()
|
||||
public async Task PutPasswordShouldWork()
|
||||
{
|
||||
//CREATE
|
||||
dynamic d = new JObject();
|
||||
@@ -215,7 +215,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void NonUniqueLoginShouldFail()
|
||||
public async Task NonUniqueLoginShouldFail()
|
||||
{
|
||||
var UniqueLogin = Util.Uniquify("NonUniqueLoginShouldFail");
|
||||
//CREATE FIRST USER
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace raven_integration
|
||||
/// Inactive user should not be able to login
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void InactiveUserCantLogin()
|
||||
public async Task InactiveUserCantLogin()
|
||||
{
|
||||
dynamic DCreds = new JObject();
|
||||
DCreds.password = DCreds.login = "TEST_INACTIVE";
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
/// Test all CRUD routes for a UserOptions object
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void CRUD()
|
||||
public async Task CRUD()
|
||||
{
|
||||
|
||||
//CREATE a user
|
||||
@@ -87,7 +87,7 @@ namespace raven_integration
|
||||
/// Test not found
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetNonExistentItemShouldError()
|
||||
public async Task GetNonExistentItemShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 404, api error code 2010
|
||||
@@ -99,7 +99,7 @@ namespace raven_integration
|
||||
/// Test bad modelstate
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetBadModelStateShouldError()
|
||||
public async Task GetBadModelStateShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 400, api error code 2200 and a first target in details of "id"
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace raven_integration
|
||||
/// Test all CRUD routes for a widget
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void CRUD()
|
||||
public async Task CRUD()
|
||||
{
|
||||
/*
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace raven_integration
|
||||
/// Test not found
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetNonExistentItemShouldError()
|
||||
public async Task GetNonExistentItemShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 404, api error code 2010
|
||||
@@ -119,7 +119,7 @@ namespace raven_integration
|
||||
/// Test bad modelstate
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetBadModelStateShouldError()
|
||||
public async Task GetBadModelStateShouldError()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 400, api error code 2200 and a first target in details of "id"
|
||||
@@ -132,7 +132,7 @@ namespace raven_integration
|
||||
/// Test server exception
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerExceptionShouldErrorPropertly()
|
||||
public async Task ServerExceptionShouldErrorPropertly()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 400, api error code 2200 and a first target in details of "id"
|
||||
@@ -146,7 +146,7 @@ namespace raven_integration
|
||||
/// Test server alt exception
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerAltExceptionShouldErrorPropertly()
|
||||
public async Task ServerAltExceptionShouldErrorPropertly()
|
||||
{
|
||||
//Get non existant
|
||||
//Should return status code 400, api error code 2200 and a first target in details of "id"
|
||||
@@ -161,7 +161,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void PutConcurrencyViolationShouldFail()
|
||||
public async Task PutConcurrencyViolationShouldFail()
|
||||
{
|
||||
|
||||
//CREATE
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace raven_integration
|
||||
/// Test not authorized error return
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerShouldNotAllowUnauthenticatedAccess()
|
||||
public async Task ServerShouldNotAllowUnauthenticatedAccess()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("widget/list");
|
||||
Util.ValidateHTTPStatusCode(a, 401);
|
||||
@@ -26,7 +26,7 @@ namespace raven_integration
|
||||
/// Test insufficient read rights error return
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerShouldNotAllowReadUnauthorizedAccess()
|
||||
public async Task ServerShouldNotAllowReadUnauthorizedAccess()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("widget/listwidgets", await Util.GetTokenAsync( "OpsAdminFull"));
|
||||
//2004 unauthorized
|
||||
@@ -39,7 +39,7 @@ namespace raven_integration
|
||||
/// Test insufficient create rights error return
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void ServerShouldNotAllowCreateUnauthorizedAccess()
|
||||
public async Task ServerShouldNotAllowCreateUnauthorizedAccess()
|
||||
{
|
||||
//CREATE
|
||||
dynamic d = new JObject();
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace raven_integration
|
||||
// /// Test business rule should be active on new
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void BusinessRuleNewShouldBeActiveShouldWork()
|
||||
// public async Task BusinessRuleNewShouldBeActiveShouldWork()
|
||||
// {
|
||||
// //CREATE attempt with broken rules
|
||||
// dynamic d = new JObject();
|
||||
@@ -40,7 +40,7 @@ namespace raven_integration
|
||||
/// Test business rule name should be unique
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleNameMustBeUnique()
|
||||
public async Task BusinessRuleNameMustBeUnique()
|
||||
{
|
||||
//CREATE attempt with broken rules
|
||||
dynamic d = new JObject();
|
||||
@@ -71,7 +71,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleNameRequired()
|
||||
public async Task BusinessRuleNameRequired()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -97,7 +97,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleNameLengthExceeded()
|
||||
public async Task BusinessRuleNameLengthExceeded()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -124,7 +124,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleStartDateWithoutEndDateShouldError()
|
||||
public async Task BusinessRuleStartDateWithoutEndDateShouldError()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -152,7 +152,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleEndDateWithoutStartDateShouldError()
|
||||
public async Task BusinessRuleEndDateWithoutStartDateShouldError()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -179,7 +179,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleEndDateBeforeStartDateShouldError()
|
||||
public async Task BusinessRuleEndDateBeforeStartDateShouldError()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
@@ -208,7 +208,7 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void BusinessRuleEnumInvalidShouldError()
|
||||
public async Task BusinessRuleEnumInvalidShouldError()
|
||||
{
|
||||
|
||||
dynamic d = new JObject();
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace raven_integration
|
||||
/// Build up graph, update graph, remove graph bit by bit
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void CRUD()
|
||||
public async Task CRUD()
|
||||
{
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// CREATE
|
||||
@@ -418,7 +418,7 @@ namespace raven_integration
|
||||
|
||||
|
||||
[Fact]
|
||||
public async void ConfirmDeleteTransactionWorksAtServer()
|
||||
public async Task ConfirmDeleteTransactionWorksAtServer()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("build-mode", await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -527,7 +527,7 @@ namespace raven_integration
|
||||
/// Build up graph, update graph, remove graph bit by bit
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void DuplicateWorks()
|
||||
public async Task DuplicateWorks()
|
||||
{
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// CREATE
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<IsPackable>false</IsPackable>
|
||||
<GenerateFullPaths>true</GenerateFullPaths>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FluentAssertions" Version="5.10.3" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="FluentAssertions" Version="5.10.3" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user