summaryrefslogtreecommitdiff
path: root/tests/libgit2/online
Commit message (Collapse)AuthorAgeFilesLines
* clone: skip timeout tests on WinHTTPethomson/timeoutsEdward Thomson2023-05-131-0/+16
|
* streams: sockets are non-blocking and can timeoutEdward Thomson2023-05-131-0/+60
| | | | | | | | | | | | | | | Make socket I/O non-blocking and add optional timeouts. Users may now set `GIT_OPT_SET_SERVER_CONNECT_TIMEOUT` to set a shorter connection timeout. (The connect timeout cannot be longer than the operating system default.) Users may also now configure the socket read and write timeouts with `GIT_OPT_SET_SERVER_TIMEOUT`. By default, connects still timeout based on the operating system defaults (typically 75 seconds) and socket read and writes block. Add a test against our custom testing git server that ensures that we can timeout reads against a slow server.
* fetch: remove `unshallow` optionEdward Thomson2023-05-091-1/+1
| | | | | The `depth` field is suitable to specify unshallowing; provide an enum to aide in specifying the `unshallow` value.
* oid: use an oid array instead of shallowarrayEdward Thomson2023-05-091-16/+19
| | | | | | Users should provide us an array of object ids; we don't need a separate type. And especially, we should not be mutating user-providing values. Instead, use `git_oid *` in the shallow code.
* shallow: move tests to onlineEdward Thomson2023-04-241-0/+163
|
* http: introduce schannel streams for windowsEdward Thomson2023-03-211-1/+12
| | | | | | | | | | Provide a stream interface for Schannel - the native crypto APIs - on Windows. This allows Windows to use the same HTTP transport that all the other platforms use, with its own native crypto. Ultimately this allows us to deprecate WinHTTP and we need not add support for our socket changes in two places (our HTTP stack and the WinHTTP stack).
* Revert "tests: validate host and port for ssh tests when non-standard"Edward Thomson2023-02-271-11/+1
| | | | This reverts commit 43e84e246cc716ac51a276945b5b112b21d802d1.
* tests: validate host and port for ssh tests when non-standardEdward Thomson2023-02-241-1/+11
|
* Merge pull request #6456 from libgit2/ethomson/sha256_experimentalEdward Thomson2023-02-141-0/+19
|\ | | | | SHA256: more SHA256 support
| * clone: support sha256Edward Thomson2023-02-121-0/+19
| |
* | tests: known_hosts manipulating ssh clone testsEdward Thomson2023-02-091-22/+141
|/ | | | | | | Teach the clone tests how to clone from github.com, when given a keypair with a passphrase and known_hosts data. This allows us to better exercise our known_hosts checking and ensure that the lifecycle of the certificate callback matches our expectations.
* Merge pull request #6362 from sven-of-cord/mainEdward Thomson2023-01-201-5/+20
|\ | | | | push: revparse refspec source, so you can push things that are not refs
| * push: revparse refspec source, so you can push things that are not refsSven Over2022-07-201-5/+20
| | | | | | | | I want to push a commit by OID to a remote branch. Currently, push parses the refspecs such that the source must be the name of a ref (it uses git_reference_name_to_id to resolve it). This commit changes it so push uses git_revparse_single to resolve the source of the refspec. This allows for OIDs or other revs (e.g. `HEAD~2`) to be pushed.
* | Merge pull request #6369 from torvalds/mainEdward Thomson2022-09-191-0/+42
|\ \ | | | | | | Don't fail the whole clone if you can't find a default branch
| * | clone: test for cloning a repo with namespace scopeEdward Thomson2022-09-191-0/+23
| | | | | | | | | | | | | | | | | | Test that we can successfully clone a repository that is namespace scoped on the remote and does not advertise a HEAD. To do this, we must specify the branch to checkout.
| * | clone: test bare clone namespaced repo with no HEADEdward Thomson2022-09-191-0/+19
| |/ | | | | | | | | | | | | Test that we can successfully clone a repository that is namespace scoped to a bare repository locally. We need not specify a checkout branch in this case (obviously, since we do not check anything out in a bare clone).
* | clone: test long custom headerKevin Saul2022-07-221-0/+10
|/
* Merge pull request #6353 from libgit2/ethomson/flaky_googlesourceEdward Thomson2022-07-131-0/+4
|\ | | | | tests: skip flaky-ass googlesource tests
| * tests: skip flaky-ass googlesource testsEdward Thomson2022-07-131-0/+4
| |
* | sha256: indirection for experimental functionsEdward Thomson2022-07-133-17/+17
| | | | | | | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* | oid: give oids a typeEdward Thomson2022-06-203-17/+17
| | | | | | | | | | `git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
* | oid: define GIT_OID_SHA1_ZEROEdward Thomson2022-06-142-3/+1
|/ | | | | Callers should not assume the layout of the oid structure; provide them a macro that defines the null / zero sha1 object id.
* fetch: support OID refspec without dstEdward Thomson2022-03-231-0/+29
| | | | | Support the ability to create a refspec that is a single object ID without a destination.
* clone: update bitbucket testsEdward Thomson2022-03-221-8/+8
|
* refactor: `tests` is now `tests/libgit2`Edward Thomson2022-02-229-0/+2918
Like we want to separate libgit2 and utility source code, we want to separate libgit2 and utility tests. Start by moving all the tests into libgit2.