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

     1  # Inspec tests for the universe chef api go module
     2  #
     3  
     4  describe command('/go/src/github.com/go-chef/chef/testapi/bin/universe') do
     5    its('stderr') { should_not match(/error|no such file|cannot find|not used|undefined/) }
     6    its('stdout') do
     7      should match(%r{^List universe: \{Books:map\[sampbook:\{Versions:map\[(?=.*0.2.0:\{LocationPath:https://testhost/organizations/test/cookbooks/sampbook/0.2.0 LocationType:chef_server Dependencies:map\[\]\})(?=.*0.1.0:\{LocationPath:https://testhost/organizations/test/cookbooks/sampbook/0.1.0 LocationType:chef_server Dependencies:map\[\]\}).*\]\}\]\}})
     8    end
     9  end