Sha256: 016bb6480239848b8328b075ed35468e4215a87df87df5c72137f93fba00680f

Contents?: true

Size: 843 Bytes

Versions: 6

Compression:

Stored size: 843 Bytes

Contents

# encoding: utf-8
# copyright: 2015, Chef Software, Inc.

title '/tmp profile'

# you add controls here
control "tmp-1.0" do                        # A unique ID for this control
  impact 0.7                                # The criticality, if this control fails.
  title "Create /tmp directory"             # A human-readable title
  desc "An optional description..."         # Describe why this is needed
  tag data: "temp data"                     # A tag allows you to associate key information
  tag "security"                            # to the test
  ref "Document A-12", url: 'http://...'    # Additional references

  describe file('/tmp') do                  # The actual test
    it { should be_directory }
  end
end

# you can also use plain tests
describe file('/tmp') do
  it { should be_directory }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inspec-2.1.81 examples/profile/controls/example.rb
inspec-2.1.21 examples/profile/controls/example.rb
inspec-2.1.10 examples/profile/controls/example.rb
inspec-2.0.32 examples/profile/controls/example.rb
inspec-2.0.17 examples/profile/controls/example.rb
inspec-1.51.15 examples/profile/controls/example.rb