mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Remove all leading newlines.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
97df4c33fd
commit
2a1b1d8e88
332 changed files with 2 additions and 337 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
---
|
||||
title: About the aws_billing_report Resource
|
||||
platform: aws
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
describe gordon do
|
||||
its('crime_rate') { should be < 5 }
|
||||
it { should have_a_fabulous_mustache }
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
it { should be_installed }
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
|
||||
# install nginx
|
||||
include_recipe('prepare::nginx')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# install repositories for nginx
|
||||
case node['platform']
|
||||
when 'ubuntu'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
it { should be_installed }
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
it { should be_installed }
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# This file is known as the "entry point."
|
||||
# This is the file InSpec will try to load if it
|
||||
# thinks your plugin is installed.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/resource'
|
||||
|
||||
module InspecPlugins::ResourceLister
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Plugin Definition file
|
||||
# The purpose of this file is to declare to InSpec what plugin_types (capabilities)
|
||||
# are included in this plugin, and provide hooks that will load them as needed.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# This file simply makes it easier for CI engines to update
|
||||
# the version stamp, and provide a clean way for the gemspec
|
||||
# to learn the current version.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
describe 'bob' do
|
||||
it { should eq 'billy' }
|
||||
end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
describe 'bob' do
|
||||
it { should eq 'bob' }
|
||||
end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
libdir = File.dirname(__FILE__)
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'uri'
|
||||
require 'inspec/fetcher'
|
||||
require 'fetchers/url'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'openssl'
|
||||
|
||||
module Fetchers
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Fetchers
|
||||
class Mock < Inspec.fetcher(1)
|
||||
name 'mock'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'uri'
|
||||
require 'openssl'
|
||||
require 'tempfile'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'rubygems/package'
|
||||
|
||||
module Inspec::Archive
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'rubygems'
|
||||
require 'zip'
|
||||
require 'pathname'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'thor'
|
||||
require 'inspec/log'
|
||||
require 'inspec/profile_vendor'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class DescribeBase
|
||||
def initialize(action)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Error < StandardError; end
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Impact scores based off CVSS 3.0
|
||||
module Inspec::Impact
|
||||
IMPACT_SCORES = {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'mixlib/log'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
module MethodSource
|
||||
def self.code_at(location, source_reader)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
autoload :Input, 'inspec/objects/input'
|
||||
autoload :Tag, 'inspec/objects/tag'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Control
|
||||
attr_accessor :id, :title, :descriptions, :impact, :tests, :tags, :refs, :only_if
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Describe
|
||||
# Internal helper to structure test objects.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class EachLoop < List
|
||||
attr_reader :variables
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/deprecation'
|
||||
|
||||
# For backwards compatibility during the rename (see #3802),
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class List < Value
|
||||
def map
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class OrTest
|
||||
attr_reader :tests
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
module RubyHelper
|
||||
def ruby_qualifier(q)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Tag
|
||||
attr_accessor :key, :value
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Test
|
||||
attr_accessor :qualifier, :matcher, :expectation, :skip, :negated, :variables, :only_if
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class Value
|
||||
include ::Inspec::RubyHelper
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
module ResourceBehaviors
|
||||
def to_s
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'forwardable'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
class PluginRegistry
|
||||
attr_reader :registry
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/profile'
|
||||
require 'inspec/config'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
require 'net/http'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec::Reporters
|
||||
class CLI < Base
|
||||
case RUBY_PLATFORM
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
|
||||
module Inspec::Reporters
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
|
||||
module Inspec::Reporters
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
|
||||
module Inspec::Reporters
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec::Reporters
|
||||
class Junit < Base
|
||||
def render
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'yaml'
|
||||
|
||||
module Inspec::Reporters
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class RequireLoader
|
||||
Item = Struct.new(:content, :ref, :line, :loaded)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'forwardable'
|
||||
require 'inspec/utils/filter_array'
|
||||
require 'inspec/utils/filter'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/command_wrapper'
|
||||
require 'inspec/resources/command'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'openssl'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/resources/file'
|
||||
|
||||
module Inspec::Resources
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/filter'
|
||||
require 'hashie/mash'
|
||||
require 'inspec/resources/package'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/parser'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/parser'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/simpleconfig'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/object_traversal'
|
||||
require 'inspec/utils/enumerable_delegation'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'openssl'
|
||||
require 'hashie/mash'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/command_wrapper'
|
||||
require 'inspec/resources/command'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'inspec/utils/simpleconfig'
|
||||
|
||||
module Inspec::Resources
|
||||
class Mount < Inspec.resource(1)
|
||||
name 'mount'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'pathname'
|
||||
require 'hashie/mash'
|
||||
require 'inspec/resources/command'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/nginx_parser'
|
||||
require 'inspec/utils/find_files'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec::Resources
|
||||
class PlatformResource < Inspec.resource(1)
|
||||
name 'platform'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/parser'
|
||||
require 'inspec/utils/filter'
|
||||
require 'ipaddr'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/resources/postgres'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/utils/file_reader'
|
||||
require 'inspec/resources/postgres'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'tomlrb'
|
||||
require 'inspec/resources/json'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'hashie/mash'
|
||||
|
||||
module Inspec::Resources
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'openssl'
|
||||
require 'hashie/mash'
|
||||
require 'inspec/utils/file_reader'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'yaml'
|
||||
require 'inspec/resources/json'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Inspec
|
||||
class RunnerMock
|
||||
attr_reader :tests, :profiles
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'rspec/core'
|
||||
require 'rspec/its'
|
||||
require 'inspec/formatters'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'yaml'
|
||||
|
||||
module Secrets
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'pry'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'shellwords'
|
||||
|
||||
class CommandWrapper
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module Converter
|
||||
# convert the value to an integer if we have numbers only
|
||||
# otherwise we return the string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module DatabaseHelper
|
||||
class SQLColumn
|
||||
def initialize(row, name)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module EnumerableDelegation
|
||||
include Enumerable
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'parslet'
|
||||
|
||||
class ErlangParser < Parslet::Parser
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module FilterTable
|
||||
# This is used as a sentinel value in custom property filtering
|
||||
module NoCriteriaProvided; end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
class ::Hash
|
||||
# Inspired by: http://stackoverflow.com/a/9381776
|
||||
def deep_merge(second)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
|
||||
# a simple streaming json logger
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'json'
|
||||
require 'net/http'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'parslet'
|
||||
|
||||
class NginxParser < Parslet::Parser
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/resources/command'
|
||||
|
||||
module PasswdParser
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require_relative '../../../shared/core_plugin_test_helper.rb'
|
||||
require 'fileutils'
|
||||
require 'securerandom'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/globals'
|
||||
|
||||
module InspecPlugins
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'net/http'
|
||||
require 'net/http/post/multipart'
|
||||
require 'uri'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module InspecPlugins
|
||||
module Compliance
|
||||
# is a helper that provides information which version of compliance supports
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'uri'
|
||||
require 'inspec/fetcher'
|
||||
require 'inspec/errors'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require_relative '../../../shared/core_plugin_test_helper.rb'
|
||||
|
||||
class ComplianceCli < Minitest::Test
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# options
|
||||
inspec_bin = 'BUNDLE_GEMFILE=/inspec/Gemfile bundle exec inspec'
|
||||
api_url = 'https://0.0.0.0'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require 'inspec/profile_vendor'
|
||||
require 'mixlib/shellout'
|
||||
require 'tomlrb'
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue