Listing workflows by hardware without any workflows returns GRPC error #391
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
Expected Behaviour
When listing workflows by hardware, which do not have any workflows assigned, empty list of workflows should be returned.
Current Behaviour
Currently server logs the following error and returns error to the client, when given hardware ID does not have any associated workflows:
Steps to Reproduce (for bugs)
go mod init foo
main_test.go
with the following content:Test_Listing_workflows_for_existing_hardware_ID_does_return_empty_list
test are set correctly.go test -v
.Context
While working on https://github.com/tinkerbell/cluster-api-provider-tink, we want to find hardware IDs which do not have any workflows associated, to select them
as "available" workers.
Your Environment
Tinkerbell version 9c52cca.
The text was updated successfully, but these errors were encountered: