When using kitchen-ci with chef-zero you can search for nodes by creating a fake inventory.
Drop a file in test/integration/nodes
and kitchen will be able to query the json files using the search API.
This becomes really handy if you need to query attributes like ipaddress
or FQDN
[{"name":"postgres-primary","chef_environment":"_default","json_class":"Chef::Node","automatic":{"ipaddress":"10.0.0.15"},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":["role[postgres-primary]"]},{"name":"postgres-metrics-ubuntu-1204","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":[]}]