summaryrefslogtreecommitdiff
path: root/tests/unit/objects
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2157 from python-gitlab/jlvillal/mypy_step_by_stepNejc Habjan2022-07-291-1/+1
|\ | | | | chore: enable mypy check `warn_return_any`
| * chore: enable mypy check `warn_return_any`John L. Villalovos2022-07-281-1/+1
| | | | | | | | Update code so that the `warn_return_any` check passes.
* | Merge pull request #2201 from python-gitlab/jlvillal/encoding_warningNejc Habjan2022-07-291-1/+1
|\ \ | | | | | | chore: make code PEP597 compliant
| * | chore: make code PEP597 compliantJohn L. Villalovos2022-07-281-1/+1
| |/ | | | | | | | | | | Use `encoding="utf-8"` in `open()` and open-like functions. https://peps.python.org/pep-0597/
* | 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.
* feat: add support for iterations APINejc Habjan2022-07-271-0/+47
|
* feat(groups): add support for shared projects APINejc Habjan2022-07-261-0/+38
|
* feat(issues): add support for issue reorder APINejc Habjan2022-07-241-0/+20
|
* 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
|
* 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
* Merge pull request #2069 from antoineauger/test/unit-tests-projectsNejc Habjan2022-06-292-107/+533
|\ | | | | test(projects): add unit tests for projects
| * refactor(test-projects): apply suggestions and use fixturesAntoine Auger2022-06-291-27/+26
| |
| * refactor(test-projects): remove test_restore_projectAntoine Auger2022-06-161-5/+0
| |
| * test(projects): add unit tests for projectsAntoine Auger2022-06-162-100/+532
| |
* | feat(api): add support for `get` for a MR approval ruleJohn L. Villalovos2022-06-271-0/+18
| | | | | | | | | | | | | | | | | | In GitLab 14.10 they added support to get a single merge request approval rule [1] Add support for it to ProjectMergeRequestApprovalRuleManager [1] https://docs.gitlab.com/ee/api/merge_request_approvals.html#get-a-single-merge-request-level-rule
* | test: add tests and clean up usage for new enumsNejc Habjan2022-06-271-0/+19
| |
* | feat(users): add approve and reject methods to UserBen Gamari2022-06-251-0/+34
| | | | | | | | | | | | As requested in #1604. Co-authored-by: John Villalovos <john@sodarock.com>
* | feat: Add support for Protected Environmentscalve2022-06-221-1/+26
| | | | | | | | | | | | | | | | - https://docs.gitlab.com/ee/api/protected_environments.html - https://github.com/python-gitlab/python-gitlab/issues/1130 no write operation are implemented yet as I have no use case right now and am not sure how it should be done
* | Merge pull request #2066 from python-gitlab/jlvillal/approval_rule_idNejc Habjan2022-06-201-0/+1
|\ \ | |/ |/| fix(cli): project-merge-request-approval-rule
| * fix(cli): project-merge-request-approval-ruleJohn L. Villalovos2022-06-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Add a unit test which shows the `repr` function now works. Before it did not. This is an EE feature so we can't functional test it. Closes: #2065
* | feat(users): add ban and unban methodsAntoine Auger2022-06-131-0/+34
|/
* feat(objects): support get project storage endpointNejc Habjan2022-05-271-0/+20
|
* test(projects): add tests for list project methodsRobin Berger2022-05-101-20/+116
|
* feat(api): re-add topic delete endpointNejc Habjan2022-04-011-0/+18
| | | | This reverts commit e3035a799a484f8d6c460f57e57d4b59217cd6de.
* feat(object): add pipeline test report summary supportkinbald2022-03-071-1/+54
|
* feat(merge_request_approvals): add support for deleting MR approval rulesNejc Habjan2022-02-131-0/+18
|
* test(unit): clean up MR approvals fixturesNejc Habjan2022-02-131-123/+14
|
* feat(artifacts): add support for project artifacts delete APINejc Habjan2022-02-101-0/+18
|
* test(runners): add test for deleting runners by auth tokenNejc Habjan2022-02-101-1/+17
|
* test(objects): add tests for project artifactsNejc Habjan2022-02-011-2/+13
|
* style: use f-strings where applicableNejc Habjan2022-01-231-5/+1
|
* chore: consistently use open() encoding and file descriptorNejc Habjan2022-01-231-2/+2
|
* test(groups): enable group transfer testsNejc Habjan2022-01-131-3/+2
|
* feat(api): add `project.transfer()` and deprecate `transfer_project()`Nejc Habjan2022-01-132-5/+48
|
* feat: add support for Group Access Token APIFabio Huser2022-01-091-0/+113
| | | | See https://docs.gitlab.com/ee/api/group_access_tokens.html
* docs: update project access token API reference linkFabio Huser2022-01-091-1/+1
|
* fix: stop encoding '.' to '%2E'jlvillal/leave_dotJohn L. Villalovos2021-12-203-14/+8
| | | | | | | | | | | | | | | | | | | | Forcing the encoding of '.' to '%2E' causes issues. It also goes against the RFC: https://datatracker.ietf.org/doc/html/rfc3986.html#section-2.3 From the RFC: For consistency, percent-encoded octets in the ranges of ALPHA (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers... Closes #1006 Related #1356 Related #1561 BREAKING CHANGE: stop encoding '.' to '%2E'. This could potentially be a breaking change for users who have incorrectly configured GitLab servers which don't handle period '.' characters correctly.
* chore(api): temporarily remove topic delete endpointNejc Habjan2021-12-111-18/+0
| | | | It is not yet available upstream.
* feat(api): add support for Topics APINejc Habjan2021-12-111-0/+119
|
* feat: add delete on package_file objectSimon Hébert-Deschamps2021-12-091-1/+34
|
* test(cli): improve basic CLI coveragetest/cli-coverageNejc Habjan2021-11-271-5/+7
|