Remove hard-coded record types #132

Merged
ashwin merged 17 commits from deep-stack/laconicd-deprecated:ng-rm-record-types into main 2024-01-15 04:20:39 +00:00
Showing only changes of commit e004584685 - Show all commits

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{