github.com/go-chef/chef@v0.30.1/test_chef_server/test/integration/default/inspec/authenticate.rb (about) 1 # Inspec tests for the authenticate_user chef api go module 2 # 3 4 describe command('/go/src/github.com/go-chef/chef/testapi/bin/authenticate') do 5 its('stderr') { should_not match(/error|no such file|cannot find|not used|undefined/) } 6 its('stdout') { should match(/^Authenticate with a valid password <nil>/) } 7 its('stdout') do 8 should match(%r{^Authenticate with an invalid password POST https://testhost/authenticate_user: 401}) 9 end 10 end