Commit e66a4eb3 by Edward Thomson

online tests: use gitlab for auth failures

GitHub recently changed their behavior from returning 401s for private
or nonexistent repositories on a clone to returning 404s.  For our tests
that require an auth failure (and 401), move to GitLab to request a
missing repository.  This lets us continue to test our auth failure
case, at least until they decide to mimic that decision.
parent e2d4f09d
...@@ -334,7 +334,7 @@ void test_online_clone__cred_callback_called_again_on_auth_failure(void) ...@@ -334,7 +334,7 @@ void test_online_clone__cred_callback_called_again_on_auth_failure(void)
git__free(_remote_url); git__free(_remote_url);
git__free(_remote_user); git__free(_remote_user);
_remote_url = git__strdup("https://github.com/libgit2/non-existent"); _remote_url = git__strdup("https://gitlab.com/libgit2/non-existent");
_remote_user = git__strdup("libgit2test"); _remote_user = git__strdup("libgit2test");
g_options.fetch_opts.callbacks.credentials = cred_count_calls_cb; g_options.fetch_opts.callbacks.credentials = cred_count_calls_cb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment