Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
fe78c6c7
Commit
fe78c6c7
authored
Mar 22, 2022
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone: update bitbucket tests
parent
182d0d1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/online/clone.c
+8
-8
No files found.
tests/online/clone.c
View file @
fe78c6c7
...
...
@@ -8,9 +8,9 @@
#define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository"
#define LIVE_EMPTYREPO_URL "http://github.com/libgit2/TestEmptyRepository"
#define BB_REPO_URL "https://libgit
3@bitbucket.org/libgit2
/testgitrepository.git"
#define BB_REPO_URL_WITH_PASS "https://libgit
3:libgit3@bitbucket.org/libgit2
/testgitrepository.git"
#define BB_REPO_URL_WITH_WRONG_PASS "https://libgit
3:wrong@bitbucket.org/libgit2
/testgitrepository.git"
#define BB_REPO_URL "https://libgit
2-test@bitbucket.org/libgit2-test
/testgitrepository.git"
#define BB_REPO_URL_WITH_PASS "https://libgit
2-test:YT77Ppm2nq8w4TYjGS8U@bitbucket.org/libgit2-test
/testgitrepository.git"
#define BB_REPO_URL_WITH_WRONG_PASS "https://libgit
2-test:wrong@bitbucket.org/libgit2-test
/testgitrepository.git"
#define GOOGLESOURCE_REPO_URL "https://chromium.googlesource.com/external/github.com/sergi/go-diff"
#define SSH_REPO_URL "ssh://github.com/libgit2/TestGitRepository"
...
...
@@ -413,7 +413,7 @@ void test_online_clone__credentials(void)
void
test_online_clone__credentials_via_custom_headers
(
void
)
{
const
char
*
creds
=
"libgit
3:libgit3
"
;
const
char
*
creds
=
"libgit
2-test:YT77Ppm2nq8w4TYjGS8U
"
;
git_str
auth
=
GIT_STR_INIT
;
cl_git_pass
(
git_str_puts
(
&
auth
,
"Authorization: Basic "
));
...
...
@@ -421,7 +421,7 @@ void test_online_clone__credentials_via_custom_headers(void)
g_options
.
fetch_opts
.
custom_headers
.
count
=
1
;
g_options
.
fetch_opts
.
custom_headers
.
strings
=
&
auth
.
ptr
;
cl_git_pass
(
git_clone
(
&
g_repo
,
"https://bitbucket.org/libgit2/testgitrepository.git"
,
"./foo"
,
&
g_options
));
cl_git_pass
(
git_clone
(
&
g_repo
,
"https://bitbucket.org/libgit2
-test
/testgitrepository.git"
,
"./foo"
,
&
g_options
));
git_str_dispose
(
&
auth
);
}
...
...
@@ -429,7 +429,7 @@ void test_online_clone__credentials_via_custom_headers(void)
void
test_online_clone__bitbucket_style
(
void
)
{
git_credential_userpass_payload
user_pass
=
{
"libgit
3"
,
"libgit3
"
"libgit
2-test"
,
"YT77Ppm2nq8w4TYjGS8U
"
};
g_options
.
fetch_opts
.
callbacks
.
credentials
=
git_credential_userpass
;
...
...
@@ -443,7 +443,7 @@ void test_online_clone__bitbucket_style(void)
void
test_online_clone__bitbucket_uses_creds_in_url
(
void
)
{
git_credential_userpass_payload
user_pass
=
{
"libgit2"
,
"wrong"
"libgit2
-test
"
,
"wrong"
};
g_options
.
fetch_opts
.
callbacks
.
credentials
=
git_credential_userpass
;
...
...
@@ -461,7 +461,7 @@ void test_online_clone__bitbucket_uses_creds_in_url(void)
void
test_online_clone__bitbucket_falls_back_to_specified_creds
(
void
)
{
git_credential_userpass_payload
user_pass
=
{
"libgit2"
,
"libgit2"
"libgit2
-test
"
,
"libgit2"
};
g_options
.
fetch_opts
.
callbacks
.
credentials
=
git_credential_userpass
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment