mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
8ee7bc946d
* Functional Test to verify git fetcher able to work in a directory where git is not initialized or does not contain the .git directory Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Fix: If git branch, tag or reference information is not given it should clone the repo and checkout the default HEAD Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Remove the logic to find default branch in case of branch, tag or ref is not provided as it's not required logically as we will be cloning the and checkout the default HEAD Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> * This is a temporary change to make verify test working on this PR. Revert once the work is done for the git fetcher fix Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> * Unit Test: Fix unit test Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> * Verifies the git url before creating cache_key, if given relative path does not exist make sure it deletes the cache directory created to copy the cloned repo. It raises error if any git command fails Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> * Reverted verify git repo url call from cache_key as cache_key and shifted that to resolve_ref which is already raising the error in case of git ls remote command fails Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> * Unit test to cover the changes done for resolve_ref when branch, tag or ref is not given and unit test for invalid git repo Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> --------- Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com> |
||
---|---|---|
.. | ||
bundles/inspec-supermarket | ||
dependencies | ||
dsl | ||
fetchers | ||
inputs | ||
matchers | ||
plugin | ||
profiles | ||
reporters | ||
resources | ||
schema | ||
source_readers | ||
utils | ||
backend_test.rb | ||
base_cli_test.rb | ||
cached_fetcher_test.rb | ||
config_test.rb | ||
dependency_loader_test.rb | ||
feature_test.rb | ||
file_provider_test.rb | ||
impact_test.rb | ||
json_profile_summary_test.rb | ||
resource_test.rb | ||
runner_test.rb | ||
shell_detector_test.rb | ||
ui_test.rb |