Empty-string edge case

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-06-18 13:13:05 -04:00
parent fab58b590e
commit 31bedf7b37
3 changed files with 24 additions and 1 deletions

View file

@ -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"

View file

@ -0,0 +1,7 @@
include_controls 'basic-local'
control 'relative-empty-01' do
describe 'always-pass' do
it { should cmp 'always-pass'}
end
end

View file

@ -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: ''