github.com/go-chef/chef@v0.30.1/test_chef_server/test/integration/default/inspec/container_spec.rb (about) 1 # Inspec tests for the container chef api go module 2 # 3 4 describe command('/go/src/github.com/go-chef/chef/testapi/bin/container') do 5 its('stderr') { should_not match(/error|no such file|cannot find|not used|undefined/) } 6 its('stdout') { should match(/^List initial containers (?=.*clients)(?=.*cookbook_artifacts)/) } 7 its('stdout') { should match(%r{^Added container1 &\{https://testhost/organizations/test/containers/container1\}}) } 8 its('stdout') do 9 should match(/^List containers after adding container1 (?=.*clients)(?=.*cookbook_artifacts)(?=.*container1)/) 10 end 11 its('stdout') { should match(/^Get container1 \{ContainerName:container1 ContainerPath:container1\}/) } 12 its('stdout') { should match(/^Get environment \{ContainerName:environments ContainerPath:environments\}/) } 13 its('stdout') { should match(/^Delete container1 <nil>/) } 14 end