mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
Merge pull request #4147 from inspec/mj/authors
Remove authors tags from source files.
This commit is contained in:
commit
342cef2367
227 changed files with 0 additions and 405 deletions
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# install nginx
|
||||
include_recipe('prepare::nginx')
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# install repositories for nginx
|
||||
case node['platform']
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# use basic tests
|
||||
describe package('nginx') do
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# Copyright 2015 Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
Encoding.default_external = Encoding::UTF_8
|
||||
Encoding.default_internal = Encoding::UTF_8
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
libdir = File.dirname(__FILE__)
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'net/http'
|
||||
require 'addressable/uri'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
require 'inspec/base_cli'
|
||||
|
||||
module Supermarket
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'uri'
|
||||
require 'inspec/fetcher'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'openssl'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Fetchers
|
||||
class Mock < Inspec.fetcher(1)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'uri'
|
||||
require 'openssl'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
libdir = File.dirname(__FILE__)
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'rubygems/package'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'rubygems'
|
||||
require 'zip'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'train'
|
||||
require 'inspec/config'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'thor'
|
||||
require 'inspec/log'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# Copyright 2015 Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'logger'
|
||||
require 'thor'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/dsl'
|
||||
require 'inspec/dsl_shared'
|
||||
require 'rspec/core/dsl'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Steven Danna <steve@chef.io>
|
||||
require 'inspec/log'
|
||||
require 'inspec/errors'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
class DescribeBase
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/log'
|
||||
require 'inspec/plugin/v2'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
class Error < StandardError; end
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2016, Chef Software Inc.
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'rspec/expectations'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Steven Danna
|
||||
# author: Victoria Jeffrey
|
||||
require 'inspec/plugin/v1/plugin_types/resource'
|
||||
require 'inspec/dsl_shared'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'mixlib/log'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
module MethodSource
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/file_provider'
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
module ResourceBehaviors
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/plugin/v1/registry'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'forwardable'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
class PluginRegistry
|
||||
attr_reader :registry
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2016, Chef Software Inc.
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
class Struct
|
||||
unless instance_methods.include? :to_h
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# Copyright 2015 Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'forwardable'
|
||||
require 'openssl'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/log'
|
||||
require 'inspec/rule'
|
||||
require 'inspec/resource'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Adam Leff
|
||||
|
||||
require 'inspec/profile'
|
||||
require 'inspec/config'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
class RequireLoader
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
module Inspec
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
#
|
||||
# Copyright 2017, Christoph Hartmann
|
||||
#
|
||||
# author: Christoph Hartmann
|
||||
# author: Patrick Muench
|
||||
# author: Dominik Richter
|
||||
# author: Matt Kulka
|
||||
|
||||
module Inspec::Resources::DockerObject
|
||||
def exist?
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Nolan Davidson
|
||||
|
||||
require 'tomlrb'
|
||||
require 'inspec/resources/json'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'method_source'
|
||||
require 'inspec/describe'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'forwardable'
|
||||
require 'uri'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
class RunnerMock
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'rspec/core'
|
||||
require 'rspec/its'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# Copyright 2017 Chef Software
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Inspec
|
||||
class RuntimeProfile
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'pry'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/plugin/v1'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'shellwords'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module Converter
|
||||
# convert the value to an integer if we have numbers only
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
module DatabaseHelper
|
||||
class SQLColumn
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'parslet'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: ERAMOTO Masaya
|
||||
|
||||
module FileReader
|
||||
def read_file_content(path, allow_empty = false)
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Stephan Renatus
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module FilterTable
|
||||
# This is used as a sentinel value in custom property filtering
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# copyright: 2015, Chef Software, Inc.
|
||||
# author: Stephan Renatus
|
||||
|
||||
class FilterArray
|
||||
attr_accessor :rules
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
module FindFiles
|
||||
TYPES = {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
class ::Hash
|
||||
# Inspired by: http://stackoverflow.com/a/9381776
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
|
||||
require 'json'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
|
||||
require 'json'
|
||||
require 'net/http'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
module Modulator
|
||||
def modules
|
||||
@modules ||= {}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'parslet'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
module ObjectTraverser
|
||||
def extract_value(keys, value)
|
||||
return nil if value.nil?
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
module PasswdParser
|
||||
# Parse /etc/passwd files.
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Dominik Richter
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/utils/parser'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
class Spdx
|
||||
def self.licenses
|
||||
spdx_file = File.join(File.dirname(__FILE__), 'spdx.txt').freeze
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
RSpec::Matchers.define :be_readable do
|
||||
match do |file|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
class AwsEc2Instance < Inspec.resource(1)
|
||||
name 'aws_ec2_instance'
|
||||
desc 'Verifies settings for an EC2 instance'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Viktor Yakovlyev
|
||||
class AwsIamPasswordPolicy < Inspec.resource(1)
|
||||
name 'aws_iam_password_policy'
|
||||
desc 'Verifies iam password policy'
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
# author: Alex Bedley
|
||||
# author: Steffanie Freeman
|
||||
# author: Simon Varlow
|
||||
# author: Chris Redekop
|
||||
class AwsIamUser < Inspec.resource(1)
|
||||
name 'aws_iam_user'
|
||||
desc 'Verifies settings for AWS IAM user'
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
# author: Alex Bedley
|
||||
# author: Steffanie Freeman
|
||||
# author: Simon Varlow
|
||||
# author: Chris Redekop
|
||||
class AwsIamUsers < Inspec.resource(1)
|
||||
name 'aws_iam_users'
|
||||
desc 'Verifies settings for AWS IAM users'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Mohamed El-Sharkawi
|
||||
class AwsRdsInstance < Inspec.resource(1)
|
||||
name 'aws_rds_instance'
|
||||
desc 'Verifies settings for an rds instance'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Matthew Dromazos
|
||||
class AwsS3Bucket < Inspec.resource(1)
|
||||
name 'aws_s3_bucket'
|
||||
desc 'Verifies settings for a s3 bucket'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Matthew Dromazos
|
||||
class AwsS3BucketObject < Inspec.resource(1)
|
||||
name 'aws_s3_bucket_object'
|
||||
desc 'Verifies settings for a s3 bucket object'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Matthew Dromazos
|
||||
# author: Sam Cornwell
|
||||
class AwsS3Buckets < Inspec.resource(1)
|
||||
name 'aws_s3_buckets'
|
||||
desc 'Verifies settings for AWS S3 Buckets in bulk'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/fetcher'
|
||||
require 'inspec/metadata'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'inspec/fetcher'
|
||||
require 'inspec/metadata'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Stephan Renatus
|
||||
|
||||
include_recipe 'runit::default'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Stephan Renatus
|
||||
|
||||
directory '/etc/init' do
|
||||
action :create
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
|
||||
case node['platform_family']
|
||||
when 'rhel'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
# add nginx apt repository
|
||||
case node['platform']
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Stephan Renatus
|
||||
|
||||
case node['platform']
|
||||
when 'centos'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# prepare all operating systems with the required configuration
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
|
||||
if platform_family?('rhel', 'debian', 'fedora')
|
||||
docker_service 'default' do
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# prepares a sample file for verification
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Stephan Renatus
|
||||
|
||||
if platform_family?('rhel', 'debian', 'fedora')
|
||||
execute 'iptables -A INPUT -i eth0 -p tcp -m tcp '\
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# adds a yaml file
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# file mount tests
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Omar Irizarry
|
||||
#
|
||||
# change a few Windows registry keys for testing purposes
|
||||
if node['platform_family'] == 'windows'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# installs everything to do the package test
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Stephan Renatus
|
||||
#
|
||||
# installs everyting for the postgres tests
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Alex Pop
|
||||
# author: Christoph Hartmann
|
||||
#
|
||||
# change a few Windows registry keys for testing purposes
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
#
|
||||
# prepares services
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Christoph Hartmann
|
||||
#
|
||||
# installs ssh
|
||||
return if node['platform_family'] == 'windows'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
|
||||
require 'docker'
|
||||
require 'yaml'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
|
||||
require_relative 'docker_run'
|
||||
require_relative '../lib/inspec'
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
|
||||
require 'helper'
|
||||
require 'rbconfig'
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue