Closed vinisimoes closed 1 year ago
@vinisimoes
If you have access to the server, check to see that your VECTR version is up to date. The tags filter was added recently and you could get an error like you're receiving if attempting to run that query against an older version.
The following query is confirmed working with the added tag 'test' to sample data on a recent VECTR instance:
{
testcases(
db: "DEMO_PURPLE_CE"
filter: { tags: { name: {contains: "test"}}}
first: 2
orderBy: { direction: ASC, field: NAME }
) {
nodes {
id
name
method
description
templateId
mitreId
activityLogged
alertSeverity
outcomes
outcome {id, name, path}
outcomeNotes
status
}
pageInfo {
endCursor
hasNextPage
}
}
}
`
Describe the bug When trying to query test cases based on tags using the gql library in Python, I get the following error:
To Reproduce The code I am trying to run is the following function:
Expected behavior I am folowing the schema description on this link, in which there is a
TestCaseFilter
with atags
option.I expect the above code to return the test cases that have an association with a given tag name.