-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
netboxstatus: backlogAwaiting selection for workAwaiting selection for worktopic: GraphQLtopic: testingtype: housekeepingChanges to the application which do not directly impact the end userChanges to the application which do not directly impact the end user
Description
Proposed Changes
The GraphQL tests currently test all model fields, but are very light on testing any filtering of objects or sub-objects. We should add tests for checking different primary filters:
{
site_list(filters: {name: {i_contains:"DM"}}) {
id
name
}
}
and sub-object filtering:
{
site_list {
id
name
tags(filters: {name: {i_starts_with: "P"}}) {
name
}
}
}
Justification
The filtering logic for Strawberry is undergoing some major refactors and we could easily miss issues with filtering without tests in-place.
peteeckel, atownson and loulecrivain
Metadata
Metadata
Assignees
Labels
netboxstatus: backlogAwaiting selection for workAwaiting selection for worktopic: GraphQLtopic: testingtype: housekeepingChanges to the application which do not directly impact the end userChanges to the application which do not directly impact the end user