Skip GRPC query test with recursive attributes input

This commit is contained in:
Prathamesh Musale 2024-01-11 10:26:49 +05:30
parent 6f6138f02a
commit e004584685

View File

@ -80,23 +80,35 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
false, false,
1, 1,
}, },
{ // Skip the following test as querying with recursive values not supported (PR https://git.vdb.to/cerc-io/laconicd/pulls/112)
"Filter with tag (extant) (https://git.vdb.to/cerc-io/laconicd/issues/129)", // See function RecordsFromAttributes (QueryValueToJSON call) in the registry keeper implementation (x/registry/keeper/keeper.go)
&registrytypes.QueryListRecordsRequest{ // {
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{ // "Filter with tag (extant) (https://git.vdb.to/cerc-io/laconicd/issues/129)",
{ // &registrytypes.QueryListRecordsRequest{
Key: "tags", // Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
Value: &registrytypes.QueryListRecordsRequest_ValueInput{ // {
Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"}, // Key: "tags",
}, // // Value: &registrytypes.QueryListRecordsRequest_ValueInput{
}, // // Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"},
}, // // },
All: true, // Value: &registrytypes.QueryListRecordsRequest_ValueInput{
}, // Value: &registrytypes.QueryListRecordsRequest_ValueInput_Array{Array: &registrytypes.QueryListRecordsRequest_ArrayInput{
true, // Values: []*registrytypes.QueryListRecordsRequest_ValueInput{
false, // {
1, // Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"},
}, // },
// },
// }},
// },
// // Throws: "Recursive query values are not supported"
// },
// },
// All: true,
// },
// true,
// false,
// 1,
// },
{ {
"Filter with tag (non-existent) (https://git.vdb.to/cerc-io/laconicd/issues/129)", "Filter with tag (non-existent) (https://git.vdb.to/cerc-io/laconicd/issues/129)",
&registrytypes.QueryListRecordsRequest{ &registrytypes.QueryListRecordsRequest{