github.com/go-chef/chef@v0.30.1/test_chef_server/test/integration/default/inspec/policy_spec.rb (about)

     1  # Inspec tests for the policy chef api go module
     2  #
     3  
     4  describe command('/go/src/github.com/go-chef/chef/testapi/bin/policy') do
     5    its('stderr') { should_not match(/error|no such file|cannot find|not used|undefined/) }
     6    its('stderr') { should match(/Issue getting nothere.*404/) }
     7    its('stdout') { should match(/List policies map\[testsamp.*:\{Uri/) }
     8    its('stdout') { should match(/Get testsamp.* map\[revisions:map/) }
     9    its('stdout') { should match(/Get testsamp.* revision \{RevisionID/) }
    10    its('stdout') { should match(/Delete revision .*from testsamp.*\{RevisionID/) }
    11  end