This commit is contained in:
@@ -92,65 +92,33 @@ namespace raven_integration
|
||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(25);
|
||||
}
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void InvalidFieldNameShouldFail()
|
||||
// {
|
||||
// //CREATE
|
||||
// dynamic d = new JObject();
|
||||
// d.name = Util.Uniquify("Test DataFilter");
|
||||
// // d.ownerId = 1L;
|
||||
// d["public"] = true;
|
||||
// d.listKey = "widget";
|
||||
|
||||
// //"[{fld:"name",op:"!=",value:"Notequaltothis"},{fld:"tags",op:"Eq",value:"[23,456,54]"}]
|
||||
// dynamic dfilter = new JArray();
|
||||
// dynamic df = new JObject();
|
||||
// df.fld = "doesntexist";
|
||||
// df.op = "%-";
|
||||
// df.value = "Generic";//lots of seed widgets start with Generic
|
||||
// dfilter.Add(df);
|
||||
|
||||
// d.filter = dfilter.ToString();//it expects it to be a json string, not actual json
|
||||
|
||||
// ApiResponse a = await Util.PostAsync("DataFilter", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
// Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
// Util.ShouldContainValidationError(a, "Filter", "InvalidValue");
|
||||
|
||||
// }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void AvailableCustomizableFormKeysWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("FormCustom/AvailableCustomizableFormKeys", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void InvalidOperatorShouldFail()
|
||||
// {
|
||||
// //CREATE
|
||||
// dynamic d = new JObject();
|
||||
// d.name = Util.Uniquify("Test DataFilter");
|
||||
// // d.ownerId = 1L;
|
||||
// d["public"] = true;
|
||||
// d.listKey = "widget";
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void AvailableCustomTypesWorks()
|
||||
{
|
||||
ApiResponse a = await Util.GetAsync("FormCustom/AvailableCustomTypes", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(4);
|
||||
}
|
||||
|
||||
// //"[{fld:"name",op:"!=",value:"Notequaltothis"},{fld:"tags",op:"Eq",value:"[23,456,54]"}]
|
||||
// dynamic dfilter = new JArray();
|
||||
// dynamic df = new JObject();
|
||||
// df.fld = "name";
|
||||
// df.op = "wtf";
|
||||
// df.value = "Generic";//lots of seed widgets start with Generic
|
||||
// dfilter.Add(df);
|
||||
|
||||
// d.filter = dfilter.ToString();//it expects it to be a json string, not actual json
|
||||
|
||||
// ApiResponse a = await Util.PostAsync("DataFilter", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
// Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
// Util.ShouldContainValidationError(a, "Filter", "InvalidValue");
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user