mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Updating links to inspec docs in ruby scripts
Signed-off-by: IanMadd <imaddaus@chef.io>
This commit is contained in:
parent
6a592a6db2
commit
c1da4f64c4
9 changed files with 10 additions and 10 deletions
|
@ -74,7 +74,7 @@ module Inspec
|
|||
},
|
||||
}, [CONTROL_DESCRIPTION, Primitives::REFERENCE, Primitives::SOURCE_LOCATION, CONTROL_RESULT])
|
||||
|
||||
# Based loosely on https://www.inspec.io/docs/reference/profiles/ as of July 3, 2019
|
||||
# Based loosely on https://docs.chef.io/inspec/profiles/ as of July 3, 2019
|
||||
# However, concessions were made to the reality of current reporters, specifically
|
||||
# with how description is omitted and version/inspec_version aren't as advertised online
|
||||
PROFILE = Primitives::SchemaType.new("Exec JSON Profile", {
|
||||
|
|
|
@ -137,7 +137,7 @@ module Inspec
|
|||
end
|
||||
|
||||
info += "#{mark "Web Reference:"}\n\n"
|
||||
info += "https://www.inspec.io/docs/reference/resources/#{topic}\n\n"
|
||||
info += "https://docs.chef.io/inspec/resources/#{topic}\n\n"
|
||||
puts info
|
||||
else
|
||||
begin
|
||||
|
@ -208,7 +208,7 @@ module Inspec
|
|||
|
||||
its('content') { should_not match /^MyKey:\\s+some value/ }
|
||||
|
||||
For more examples, see: https://www.inspec.io/docs/reference/matchers/
|
||||
For more examples, see: https://docs.chef.io/inspec/matchers/
|
||||
|
||||
EOL
|
||||
end
|
||||
|
|
|
@ -61,7 +61,7 @@ module AwsResourceMixin
|
|||
rescue Aws::Errors::MissingCredentialsError
|
||||
# The AWS error here is unhelpful:
|
||||
# "unable to sign request without credentials set"
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
|
||||
fail_resource("No AWS credentials available")
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
fail_resource e.message
|
||||
|
|
|
@ -34,7 +34,7 @@ class AwsEbsVolume < Inspec.resource(1)
|
|||
rescue Aws::Errors::MissingCredentialsError
|
||||
# The AWS error here is unhelpful:
|
||||
# "unable to sign request without credentials set"
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
|
||||
fail_resource("No AWS credentials available")
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
fail_resource(e.message)
|
||||
|
|
|
@ -35,7 +35,7 @@ class AwsEc2Instance < Inspec.resource(1)
|
|||
rescue Aws::Errors::MissingCredentialsError
|
||||
# The AWS error here is unhelpful:
|
||||
# "unable to sign request without credentials set"
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
|
||||
fail_resource("No AWS credentials available")
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
fail_resource e.message
|
||||
|
|
|
@ -43,7 +43,7 @@ class AwsIamPasswordPolicy < Inspec.resource(1)
|
|||
rescue Aws::Errors::MissingCredentialsError
|
||||
# The AWS error here is unhelpful:
|
||||
# "unable to sign request without credentials set"
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
|
||||
fail_resource("No AWS credentials available")
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
fail_resource e.message
|
||||
|
|
|
@ -24,7 +24,7 @@ class AwsIamRootUser < Inspec.resource(1)
|
|||
rescue Aws::Errors::MissingCredentialsError
|
||||
# The AWS error here is unhelpful:
|
||||
# "unable to sign request without credentials set"
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
|
||||
Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
|
||||
fail_resource("No AWS credentials available")
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
fail_resource e.message
|
||||
|
|
|
@ -242,7 +242,7 @@ describe "inspec shell tests" do
|
|||
|
||||
it "provides matchers help" do
|
||||
out = do_shell("help matchers")
|
||||
_(out.stdout).must_include "For more examples, see: https://www.inspec.io/docs/reference/matchers/"
|
||||
_(out.stdout).must_include "For more examples, see: https://docs.chef.io/inspec/matchers/"
|
||||
end
|
||||
|
||||
it "provides empty example help" do
|
||||
|
|
|
@ -562,7 +562,7 @@ module ConfigTestHelper
|
|||
def fixture(fixture_name)
|
||||
case fixture_name.to_sym
|
||||
when :legacy
|
||||
# TODO - this is dubious, but based on https://www.inspec.io/docs/reference/reporters/#automate-reporter
|
||||
# TODO - this is dubious, but based on https://docs.chef.io/inspec/reporters/#automate-reporter
|
||||
# Things that have 'compliance' as a toplevel have also been seen
|
||||
<<~EOJ1
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue