github.com/go-chef/chef@v0.30.1/test_chef_server/test/integration/default/inspec/search_pagination_spec.rb (about) 1 # Inspec tests for the search chef api go module 2 # 3 4 describe command('/go/src/github.com/go-chef/chef/testapi/bin/search_pagination') do 5 its('stderr') { should_not match(/error|no such file|cannot find|not used|undefined/) } 6 its('stdout') { should match(/^List nodes from Exec query Total:50 Rows:50/) } 7 its('stdout') { should match(/^List nodes detail from Exec query.*(?=.*name:node0)(?=.*name:node49)/) } 8 its('stdout') { should match(/^List nodes detail from Exec query.*(?=.*default:map)(?=.*normal:map)/) } 9 its('stdout') { should match(/^List nodes from Partial Exec Total:50 Rows:50/) } 10 its('stdout') do 11 should match(/^List nodes detail from Partial Exec.*(?=.*data:map\[name:node0\])(?=.*data:map\[name:node49\])/) 12 end 13 end