From b5a111b1450a479d50e8f728b26849d88fea64d3 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Tue, 1 Oct 2019 17:00:16 +0200 Subject: [PATCH] Fix tests for record organizier --- tests/compose/record_exec_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/compose/record_exec_test.go b/tests/compose/record_exec_test.go index c277303af..77898e3ed 100644 --- a/tests/compose/record_exec_test.go +++ b/tests/compose/record_exec_test.go @@ -114,8 +114,8 @@ func TestRecordExec(t *testing.T) { h.apiSendRecordExec(module.NamespaceID, module.ID, "organize", request.ProcedureArgs{ {"recordID", rr["a"]}, - {"sortingField", "position"}, - {"sortingValue", "5"}}). + {"positionField", "position"}, + {"position", "5"}}). Status(http.StatusOK). Assert(helpers.AssertNoErrors). End() @@ -124,8 +124,8 @@ func TestRecordExec(t *testing.T) { h.apiSendRecordExec(module.NamespaceID, module.ID, "organize", request.ProcedureArgs{ {"recordID", rr["i"]}, - {"sortingField", "position"}, - {"sortingValue", "0"}}). + {"positionField", "position"}, + {"position", "0"}}). Status(http.StatusOK). Assert(helpers.AssertNoErrors). End() @@ -134,9 +134,9 @@ func TestRecordExec(t *testing.T) { h.apiSendRecordExec(module.NamespaceID, module.ID, "organize", request.ProcedureArgs{ {"recordID", rr["b"]}, - {"sortingFilter", "category = 'CAT1'"}, - {"sortingField", "position"}, - {"sortingValue", "5"}}). + {"filter", "category = 'CAT1'"}, + {"positionField", "position"}, + {"position", "5"}}). Status(http.StatusOK). Assert(helpers.AssertNoErrors). End() @@ -145,9 +145,9 @@ func TestRecordExec(t *testing.T) { h.apiSendRecordExec(module.NamespaceID, module.ID, "organize", request.ProcedureArgs{ {"recordID", rr["b"]}, - {"valueField", "category"}, - {"value", "CAT2"}, - {"sortingValue", "5"}}). + {"groupField", "category"}, + {"group", "CAT2"}, + {"position", "5"}}). Status(http.StatusOK). Assert(helpers.AssertNoErrors). End()