* 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>
We have 72 `skip_windows` that need addressing. This PR removes
confirmed instances where the tests now work on windows. It also marks
tests with a comment where they are confirmed to still break. Unmarked
instances still need review.
It also updates the `skip_windows` expiration date.
72 `skip_windows` needing resolution OR alternative documentation upon investigation
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
Folded the json & other payloads into plain ivars on the test.
Found and removed some unused code while I was there.
Fixes#4533.
Signed-off-by: Ryan Davis <zenspider@chef.io>