This commit rearranges update tests so that those that check that updates are made can be run against a git server using SSH as well as HTTP. The local clone, used to provoke automated updates and to check results, still uses HTTP. Those operations are not under test. libgit2 wants to be asked for authentication when using SSH, and will balk if it's not requested by the server. To avoid that, auth must be switched on for the git test server. This also switches auth on for HTTP, so it's necessary to use a git URL that includes credentials for setting things up with a local clone. I have also used that URL for the git-over-HTTP tests -- it's arguable whether it's necessary to test that works, here. Signed-off-by: Michael Bridgen <michael@weave.works> |
||
|---|---|---|
| .. | ||
| testdata | ||
| imageupdateautomation_controller.go | ||
| suite_test.go | ||
| update_test.go | ||