Skip to content

Commit a1020a7

Browse files
committed
clone: update bitbucket tests
1 parent 0e53006 commit a1020a7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/libgit2/online/clone.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
#define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository"
1010
#define LIVE_EMPTYREPO_URL "http://github.com/libgit2/TestEmptyRepository"
11-
#define BB_REPO_URL "https://libgit3@bitbucket.org/libgit2/testgitrepository.git"
12-
#define BB_REPO_URL_WITH_PASS "https://libgit3:libgit3@bitbucket.org/libgit2/testgitrepository.git"
13-
#define BB_REPO_URL_WITH_WRONG_PASS "https://libgit3:wrong@bitbucket.org/libgit2/testgitrepository.git"
11+
#define BB_REPO_URL "https://libgit2-test@bitbucket.org/libgit2-test/testgitrepository.git"
12+
#define BB_REPO_URL_WITH_PASS "https://libgit2-test:YT77Ppm2nq8w4TYjGS8U@bitbucket.org/libgit2-test/testgitrepository.git"
13+
#define BB_REPO_URL_WITH_WRONG_PASS "https://libgit2-test:wrong@bitbucket.org/libgit2-test/testgitrepository.git"
1414
#define GOOGLESOURCE_REPO_URL "https://chromium.googlesource.com/external/github.com/sergi/go-diff"
1515

1616
#define SSH_REPO_URL "ssh://github.com/libgit2/TestGitRepository"
@@ -413,23 +413,23 @@ void test_online_clone__credentials(void)
413413

414414
void test_online_clone__credentials_via_custom_headers(void)
415415
{
416-
const char *creds = "libgit3:libgit3";
416+
const char *creds = "libgit2-test:YT77Ppm2nq8w4TYjGS8U";
417417
git_str auth = GIT_STR_INIT;
418418

419419
cl_git_pass(git_str_puts(&auth, "Authorization: Basic "));
420420
cl_git_pass(git_str_encode_base64(&auth, creds, strlen(creds)));
421421
g_options.fetch_opts.custom_headers.count = 1;
422422
g_options.fetch_opts.custom_headers.strings = &auth.ptr;
423423

424-
cl_git_pass(git_clone(&g_repo, "https://bitbucket.org/libgit2/testgitrepository.git", "./foo", &g_options));
424+
cl_git_pass(git_clone(&g_repo, "https://bitbucket.org/libgit2-test/testgitrepository.git", "./foo", &g_options));
425425

426426
git_str_dispose(&auth);
427427
}
428428

429429
void test_online_clone__bitbucket_style(void)
430430
{
431431
git_credential_userpass_payload user_pass = {
432-
"libgit3", "libgit3"
432+
"libgit2-test", "YT77Ppm2nq8w4TYjGS8U"
433433
};
434434

435435
g_options.fetch_opts.callbacks.credentials = git_credential_userpass;
@@ -443,7 +443,7 @@ void test_online_clone__bitbucket_style(void)
443443
void test_online_clone__bitbucket_uses_creds_in_url(void)
444444
{
445445
git_credential_userpass_payload user_pass = {
446-
"libgit2", "wrong"
446+
"libgit2-test", "wrong"
447447
};
448448

449449
g_options.fetch_opts.callbacks.credentials = git_credential_userpass;
@@ -461,7 +461,7 @@ void test_online_clone__bitbucket_uses_creds_in_url(void)
461461
void test_online_clone__bitbucket_falls_back_to_specified_creds(void)
462462
{
463463
git_credential_userpass_payload user_pass = {
464-
"libgit2", "libgit2"
464+
"libgit2-test", "libgit2"
465465
};
466466

467467
g_options.fetch_opts.callbacks.credentials = git_credential_userpass;

0 commit comments

Comments
 (0)