Add test for absolute path to bootstrap script

This commit is contained in:
Kevin Paulisse 2016-12-19 20:25:03 -06:00
Родитель 670e1b38f0
Коммит d624dcc01a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 66DA91D838188671
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -145,6 +145,22 @@ describe OctocatalogDiff::CatalogUtil::Bootstrap do
expect(File.file?(File.join(@dir, 'bootstrap_result.yaml'))).to eq(true)
expect(File.file?(File.join(@dir2, 'bootstrap_result.yaml'))).to eq(true)
end
it 'should run a bootstrap script specified as an absolute path' do
logger, _logger_str = OctocatalogDiff::Spec.setup_logger
opts = {
bootstrapped_to_dir: @dir,
bootstrapped_from_dir: @dir2,
to_env: 'test-branch',
from_env: 'master',
basedir: File.join(@repo_dir, 'git-repo'),
parallel: false,
bootstrap_script: File.join(@repo_dir, 'git-repo', 'script', 'bootstrap.sh')
}
OctocatalogDiff::CatalogUtil::Bootstrap.bootstrap_directory_parallelizer(opts, logger)
expect(File.file?(File.join(@dir, 'bootstrap_result.yaml'))).to eq(true)
expect(File.file?(File.join(@dir2, 'bootstrap_result.yaml'))).to eq(true)
end
end
end
end