mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
Empty-string edge case
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
fab58b590e
commit
31bedf7b37
3 changed files with 24 additions and 1 deletions
|
@ -98,7 +98,12 @@ describe "running profiles with git-based dependencies" do
|
|||
end
|
||||
|
||||
#------------ Edge Cases for Relative Path Support -------------------#
|
||||
# describe "running a profile with an '' relative path dependency"
|
||||
describe "running a profile with an '' relative path dependency" do
|
||||
it "should find the top-level profile in the git-referenced child profile and execute that" do
|
||||
assert_relative_fetch_works("relative-empty", ["relative-empty", "basic-local"], ["relative-empty-01", "basic-local-01"])
|
||||
end
|
||||
end
|
||||
|
||||
# describe "running a profile with an ./ relative path dependency"
|
||||
# describe "running a profile with a relative path dependency that does not exist"
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
include_controls 'basic-local'
|
||||
|
||||
control 'relative-empty-01' do
|
||||
describe 'always-pass' do
|
||||
it { should cmp 'always-pass'}
|
||||
end
|
||||
end
|
|
@ -0,0 +1,11 @@
|
|||
name: relative-empty
|
||||
title: relative-empty
|
||||
license: Apache-2.0
|
||||
summary: A profile that depends on profiles using an empty-string path
|
||||
version: 0.1.0
|
||||
supports:
|
||||
platform: os
|
||||
depends:
|
||||
- name: basic-local
|
||||
git: test/unit/mock/profiles/git-fetcher/basic-local
|
||||
relative_path: ''
|
Loading…
Reference in a new issue