summaryrefslogtreecommitdiff
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* test(unit): expand tests for pipeline schedulesNejc Habjan2022-12-112-4/+54
|
* refactor: Moving RETRYABLE_TRANSIENT_ERROR_CODES to constLiora Milbaum2022-12-061-1/+1
|
* feat: add resource iteration events (see ↵Oliver Blasius2022-12-041-0/+55
| | | | https://docs.gitlab.com/ee/api/resource_iteration_events.html)
* feat: allow passing kwargs to Gitlab class when instantiating with ↵Liora Milbaum2022-12-041-0/+23
| | | | `from_config` (#2392)
* feat: add support for SAML group links (#2367)Abhishek Singh2022-11-221-1/+113
|
* feat(groups): add LDAP link manager and deprecate old API endpointsNejc Habjan2022-11-171-4/+4
|
* refactor: explicitly use ProjectSecureFileNejc Habjan2022-11-171-2/+2
|
* feat(groups): add support for listing ldap_group_links (#2371)Ray2022-11-161-0/+27
|
* feat: implement secure files APIBen Brown2022-11-101-0/+101
|
* feat(api): add support for getting a project's pull mirror detailsJohn L. Villalovos2022-11-041-0/+27
| | | | | | | Add the ability to get a project's pull mirror details. This was added in GitLab 15.5 and is a PREMIUM feature. https://docs.gitlab.com/ee/api/projects.html#get-a-projects-pull-mirror-details
* feat(api): add support for remote project import from AWS S3 (#2357)Abhishek Singh2022-11-021-1/+42
|
* feat(api): add support for remote project import (#2348)Abhishek Singh2022-11-011-0/+31
|
* feat(api): add application statisticsShreya2022-11-011-0/+49
|
* test: use false instead of /usr/bin/falseAndrey Skvortsov2022-10-171-2/+2
| | | | | | | | On Debian systems false is located at /bin/false (coreutils package). This fixes unit test failure on Debian system: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/false' /usr/lib/python3.10/subprocess.py:1845: FileNotFoundError
* feat(api): add support for topics merge APINejc Habjan2022-10-141-0/+18
|
* feat: add support for deployment approval endpointJohn L. Villalovos2022-08-251-2/+132
| | | | | | | Add support for the deployment approval endpoint[1] [1] https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment Closes: #2253
* chore: consolidate license and authorsNejc Habjan2022-08-047-122/+0
|
* feat(client): warn user on misconfigured URL in `auth()`Nejc Habjan2022-08-041-1/+23
|
* test(unit): reproduce duplicate encoded query paramsNejc Habjan2022-08-041-0/+18
|
* fix: optionally keep user-provided base URL for pagination (#2149)Omar Mochtar2022-08-031-0/+55
|
* Merge pull request #2157 from python-gitlab/jlvillal/mypy_step_by_stepNejc Habjan2022-07-292-2/+3
|\ | | | | chore: enable mypy check `warn_return_any`
| * chore: enable mypy check `warn_return_any`John L. Villalovos2022-07-282-2/+3
| | | | | | | | Update code so that the `warn_return_any` check passes.
* | Merge pull request #2201 from python-gitlab/jlvillal/encoding_warningNejc Habjan2022-07-292-2/+3
|\ \ | | | | | | chore: make code PEP597 compliant
| * | chore: make code PEP597 compliantJohn L. Villalovos2022-07-282-2/+3
| |/ | | | | | | | | | | Use `encoding="utf-8"` in `open()` and open-like functions. https://peps.python.org/pep-0597/
* | Merge pull request #2194 from python-gitlab/jlvillal/update-gitlabNejc Habjan2022-07-291-1/+4
|\ \ | |/ |/| test(functional): bump GitLab docker image to 15.2.0-ee.0
| * chore(topics): 'title' is required when creating a topicJohn L. Villalovos2022-07-281-1/+4
| | | | | | | | In GitLab >= 15.0 `title` is required when creating a topic.
* | fix: use the [] after key names for array variables in `params`John L. Villalovos2022-07-273-12/+72
|/ | | | | | | | | | | | | | | | | | 1. If a value is of type ArrayAttribute then append '[]' to the name of the value for query parameters (`params`). This is step 3 in a series of steps of our goal to add full support for the GitLab API data types[1]: * array * hash * array of hashes Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b Step two was: commit a57334f1930752c70ea15847a39324fa94042460 Fixes: #1698 [1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
* feat: add support for iterations APINejc Habjan2022-07-271-0/+47
|
* feat(groups): add support for shared projects APINejc Habjan2022-07-261-0/+38
|
* test: always ensure clean config environmentNejc Habjan2022-07-262-14/+10
|
* feat(issues): add support for issue reorder APINejc Habjan2022-07-241-0/+20
|
* test: fix broken test if user had config filesJohn L. Villalovos2022-07-231-1/+6
| | | | | | | Use `monkeypatch` to ensure that no config files are reported for the test. Closes: #2172
* feat: add support for group and project invitations APINejc Habjan2022-07-231-0/+159
|
* feat(projects): add support for project restore APINejc Habjan2022-07-231-0/+17
|
* refactor: migrate services to integrationsNejc Habjan2022-07-231-25/+31
|
* fix(runners): fix listing for /runners/allNejc Habjan2022-07-231-1/+12
|
* fix(config): raise error when gitlab id provided but no config section foundNejc Habjan2022-07-221-1/+6
|
* fix(config): raise error when gitlab id provided but no config file foundNejc Habjan2022-07-221-0/+6
|
* fix: add `get_all` param (and `--get-all`) to allow passing `all` to APINejc Habjan2022-07-213-5/+5
|
* Merge pull request #1872 from python-gitlab/jlvillal/as_dictNejc Habjan2022-07-201-0/+97
|\ | | | | feat: add `asdict()` and `to_json()` methods to Gitlab Objects
| * feat: add `asdict()` and `to_json()` methods to Gitlab ObjectsJohn L. Villalovos2022-07-201-8/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an `asdict()` method that returns a dictionary representation copy of the Gitlab Object. This is a copy and changes made to it will have no impact on the Gitlab Object. The `asdict()` method name was chosen as both the `dataclasses` and `attrs` libraries have an `asdict()` function which has the similar purpose of creating a dictionary represenation of an object. Also add a `to_json()` method that returns a JSON string representation of the object. Closes: #1116
| * fix: results returned by `attributes` property to show updatesJohn L. Villalovos2022-07-201-0/+26
| | | | | | | | | | | | | | | | | | Previously the `attributes` method would show the original values in a Gitlab Object even if they had been updated. Correct this so that the updated value will be returned. Also use copy.deepcopy() to ensure that modifying the dictionary returned can not also modify the object.
* | chore: add a `lazy` boolean attribute to `RESTObject`John L. Villalovos2022-07-201-0/+43
|/ | | | | | | | This can be used to tell if a `RESTObject` was created using `lazy=True`. Add a message to the `AttributeError` if attribute access fails for an instance created with `lazy=True`.
* test: add more tests for container registriesNejc Habjan2022-07-201-4/+50
|
* feat(groups): add support for group-level registry repositoriesNejc Habjan2022-07-201-0/+47
|
* feat: support validating CI lint resultsNejc Habjan2022-07-091-8/+36
|
* feat(cli): add support for global CI lintNejc Habjan2022-07-051-11/+33
|
* refactor(objects): move ci lint to separate fileNejc Habjan2022-07-052-46/+49
|
* feat(objects): add Project CI Lint supportJohn L. Villalovos2022-07-041-0/+46
| | | | | | Add support for validating a project's CI configuration [1] [1] https://docs.gitlab.com/ee/api/lint.html
* feat: add support for group push rulesO'Keefe, Gerard (Gerry)2022-07-041-0/+103
| | | | | | Add the GroupPushRules and GroupPushRulesManager classes. Closes: #1259