This commit is contained in:
@@ -10,7 +10,6 @@ namespace raven_integration
|
||||
|
||||
public class PickListAllTests
|
||||
{
|
||||
|
||||
//NOTE: in order not to interfere in each other will use Widget picklist to test with standard unmodified picklist template
|
||||
//and will use User PickList to test the template functionality
|
||||
|
||||
@@ -18,7 +17,7 @@ namespace raven_integration
|
||||
/// Test all Template editing related routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserPickListTemplates()
|
||||
public async void 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
|
||||
@@ -137,7 +136,7 @@ namespace raven_integration
|
||||
/// test get templates list
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserPickListTemplateList()
|
||||
public async void PickListTemplateList()
|
||||
{
|
||||
//RETRIEVE
|
||||
ApiResponse a = await Util.GetAsync("PickList/TemplateList", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -150,10 +149,10 @@ namespace raven_integration
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// test get picklist fields list
|
||||
/// test get picklist fields list for widget template
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void TemplateFieldList()
|
||||
public async void WidgetPickListTemplateFieldList()
|
||||
{
|
||||
//RETRIEVE WIDGET PICKLIST FIELDS
|
||||
ApiResponse a = await Util.GetAsync("PickList/Template/ListFields/2", await Util.GetTokenAsync("BizAdminFull"));
|
||||
@@ -165,124 +164,6 @@ namespace raven_integration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void InvalidListKeyShouldFail()
|
||||
// {
|
||||
// //CREATE
|
||||
// dynamic d = new JObject();
|
||||
// d.name = Util.Uniquify("Test DataListView");
|
||||
|
||||
// d["public"] = true;
|
||||
// d.listKey = "nonexistant";
|
||||
|
||||
// //"[{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 = "%-";
|
||||
// // 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("DataListView", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
|
||||
// dynamic dListView = new JArray();
|
||||
// // dynamic df = new JObject();
|
||||
// // df.fld = "widgetname";
|
||||
// // df.op = "%-";
|
||||
// // df.value = "Generic";//lots of seed widgets start with Generic
|
||||
// // dListView.Add(df);
|
||||
// // d.filter = dListView.ToString();//it expects it to be a json string, not actual json
|
||||
// dListView.Add(Util.BuildSimpleFilterDataListViewColumn("widgetname", Util.OpStartsWith, "Generic"));
|
||||
// d.listView=dListView.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
// ApiResponse a = await Util.PostAsync("DataListView", await Util.GetTokenAsync("BizAdminFull"), d.ToString(Newtonsoft.Json.Formatting.None));
|
||||
// Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
// Util.ShouldContainValidationError(a, "ListKey", "2203");
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public async void InvalidFieldNameShouldFail()
|
||||
// {
|
||||
// //CREATE
|
||||
// dynamic d = new JObject();
|
||||
// d.name = Util.Uniquify("Test DataListView");
|
||||
|
||||
// d["public"] = true;
|
||||
// d.listKey="TestWidgetDataList";
|
||||
|
||||
// //"[{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("DataListView", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
// dynamic dListView = new JArray();
|
||||
// // dynamic df = new JObject();
|
||||
// // df.fld = "widgetname";
|
||||
// // df.op = "%-";
|
||||
// // df.value = "Generic";//lots of seed widgets start with Generic
|
||||
// // dListView.Add(df);
|
||||
// // d.filter = dListView.ToString();//it expects it to be a json string, not actual json
|
||||
// dListView.Add(Util.BuildSimpleFilterDataListViewColumn("doesntexist", Util.OpStartsWith, "Generic"));
|
||||
// d.listView=dListView.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
// ApiResponse a = await Util.PostAsync("DataListView", await Util.GetTokenAsync("BizAdminFull"), d.ToString(Newtonsoft.Json.Formatting.None));
|
||||
// Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
// Util.ShouldContainValidationError(a, "ListView", "2203");
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// //REMOVED THIS VALIDATION TEST AS SWITCH TO DATALISTVIEW NO LONGER VALIDATES FILTER ANYWAY
|
||||
// //ONLY COLUMN NAMES AND LIST NAME
|
||||
// // /// <summary>
|
||||
// // ///
|
||||
// // /// </summary>
|
||||
// // [Fact]
|
||||
// // public async void InvalidOperatorShouldFail()
|
||||
// // {
|
||||
// // //CREATE
|
||||
// // dynamic d = new JObject();
|
||||
// // d.name = Util.Uniquify("Test DataListView");
|
||||
|
||||
// // d["public"] = true;
|
||||
// // d.listKey="TestWidgetDataList";
|
||||
|
||||
// // //"[{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("DataListView", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
// // Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
// // Util.ShouldContainValidationError(a, "Filter", "2203");
|
||||
|
||||
// // }
|
||||
|
||||
|
||||
|
||||
//==================================================
|
||||
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user