Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | chore(topics): 'title' is required when creating a topic | John L. Villalovos | 2022-07-28 | 3 | -3/+32 | |
| | | | | | | | | In GitLab >= 15.0 `title` is required when creating a topic. | |||||
| * | test(functional): bump GitLab docker image to 15.2.0-ee.0 | John L. Villalovos | 2022-07-27 | 1 | -1/+1 | |
| | | | | | | | | Use the GitLab docker image 15.2.0-ee.0 in the functional testing. | |||||
* | | test(cli): add tests for token scopes | Nejc Habjan | 2022-07-28 | 2 | -0/+46 | |
| | | ||||||
* | | feat(cli): add a custom help formatter | Waldek Maleska | 2022-07-28 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | | | | Add a custom argparse help formatter that overrides the output format to list items vertically. The formatter is derived from argparse.HelpFormatter with minimal changes. Co-authored-by: John Villalovos <john@sodarock.com> Co-authored-by: Nejc Habjan <nejc.habjan@siemens.com> | |||||
* | | test: add test to show issue fixed | John L. Villalovos | 2022-07-27 | 1 | -0/+13 | |
| | | | | | | | | | | https://github.com/python-gitlab/python-gitlab/issues/1698 has been fixed. Add test to show that. | |||||
* | | fix: use the [] after key names for array variables in `params` | John L. Villalovos | 2022-07-27 | 4 | -12/+77 | |
|/ | | | | | | | | | | | | | | | | | | 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 API | Nejc Habjan | 2022-07-27 | 1 | -0/+47 | |
| | ||||||
* | feat(groups): add support for shared projects API | Nejc Habjan | 2022-07-26 | 1 | -0/+38 | |
| | ||||||
* | test: always ensure clean config environment | Nejc Habjan | 2022-07-26 | 4 | -19/+29 | |
| | ||||||
* | chore: revert "test(functional): simplify token creation" | Nejc Habjan | 2022-07-26 | 2 | -4/+26 | |
| | | | | This reverts commit 67ab24fe5ae10a9f8cc9122b1a08848e8927635d. | |||||
* | test(ee): add an EE specific test | John L. Villalovos | 2022-07-25 | 2 | -5/+11 | |
| | ||||||
* | chore: enable using GitLab EE in functional tests | John L. Villalovos | 2022-07-25 | 4 | -3/+79 | |
| | | | | | | Enable using GitLab Enterprise Edition (EE) in the functional tests. This will allow us to add functional tests for EE only features in the functional tests. | |||||
* | test(functional): simplify token creation | Nejc Habjan | 2022-07-25 | 2 | -25/+8 | |
| | ||||||
* | feat(issues): add support for issue reorder API | Nejc Habjan | 2022-07-24 | 1 | -0/+20 | |
| | ||||||
* | feat(namespaces): add support for namespace existence API | Nejc Habjan | 2022-07-24 | 1 | -3/+11 | |
| | ||||||
* | test: fix broken test if user had config files | John L. Villalovos | 2022-07-23 | 1 | -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 API | Nejc Habjan | 2022-07-23 | 1 | -0/+159 | |
| | ||||||
* | feat(projects): add support for project restore API | Nejc Habjan | 2022-07-23 | 1 | -0/+17 | |
| | ||||||
* | refactor: migrate services to integrations | Nejc Habjan | 2022-07-23 | 1 | -25/+31 | |
| | ||||||
* | fix(runners): fix listing for /runners/all | Nejc Habjan | 2022-07-23 | 1 | -1/+12 | |
| | ||||||
* | fix(config): raise error when gitlab id provided but no config section found | Nejc Habjan | 2022-07-22 | 1 | -1/+6 | |
| | ||||||
* | fix(config): raise error when gitlab id provided but no config file found | Nejc Habjan | 2022-07-22 | 1 | -0/+6 | |
| | ||||||
* | chore: make reset_gitlab() better | John L. Villalovos | 2022-07-22 | 1 | -48/+17 | |
| | | | | | | | | | | | | | Saw issues in the CI where reset_gitlab() would fail. It would fail to delete the group that is created when GitLab starts up. Extending the timeout didn't fix the issue. Changed the code to use the new `helpers.safe_delete()` function. Which will delete the resource and then make sure it is deleted before returning. Also added some logging functionality that can be seen if logging is turned on in pytest. | |||||
* | Merge pull request #1784 from python-gitlab/jlvillal/sidekiq | Nejc Habjan | 2022-07-22 | 2 | -29/+50 | |
|\ | | | | | chore: fixtures: after delete() wait to verify deleted | |||||
| * | chore: fixtures: after delete() wait to verify deleted | John L. Villalovos | 2022-07-21 | 2 | -29/+50 | |
| | | | | | | | | | | | | | | | | | | | | | | | | In our fixtures that create: - groups - project merge requests - projects - users They delete the created objects after use. Now wait to ensure the objects are deleted before continuing as having unexpected objects existing can impact some of our tests. | |||||
* | | test(api_func_v4): catch deprecation warning for `gl.lint()` | John L. Villalovos | 2022-07-21 | 1 | -1/+2 | |
|/ | | | | | Catch the deprecation warning for the call to `gl.lint()`, so it won't show up in the log. | |||||
* | test(functional): use both get_all and all in list() tests | Nejc Habjan | 2022-07-21 | 1 | -11/+22 | |
| | ||||||
* | fix: add `get_all` param (and `--get-all`) to allow passing `all` to API | Nejc Habjan | 2022-07-21 | 9 | -71/+111 | |
| | ||||||
* | Merge pull request #1872 from python-gitlab/jlvillal/as_dict | Nejc Habjan | 2022-07-20 | 1 | -0/+97 | |
|\ | | | | | feat: add `asdict()` and `to_json()` methods to Gitlab Objects | |||||
| * | feat: add `asdict()` and `to_json()` methods to Gitlab Objects | John L. Villalovos | 2022-07-20 | 1 | -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 updates | John L. Villalovos | 2022-07-20 | 1 | -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. Villalovos | 2022-07-20 | 1 | -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 registries | Nejc Habjan | 2022-07-20 | 1 | -4/+50 | |
| | ||||||
* | feat(groups): add support for group-level registry repositories | Nejc Habjan | 2022-07-20 | 1 | -0/+47 | |
| | ||||||
* | chore: enable mypy check `strict_equality` | John L. Villalovos | 2022-07-19 | 1 | -2/+14 | |
| | | | | Enable the `mypy` `strict_equality` check. | |||||
* | feat: support validating CI lint results | Nejc Habjan | 2022-07-09 | 3 | -8/+102 | |
| | ||||||
* | feat(cli): add support for global CI lint | Nejc Habjan | 2022-07-05 | 1 | -11/+33 | |
| | ||||||
* | refactor(objects): move ci lint to separate file | Nejc Habjan | 2022-07-05 | 2 | -46/+49 | |
| | ||||||
* | feat(objects): add Project CI Lint support | John L. Villalovos | 2022-07-04 | 1 | -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 rules | O'Keefe, Gerard (Gerry) | 2022-07-04 | 1 | -0/+103 | |
| | | | | | | Add the GroupPushRules and GroupPushRulesManager classes. Closes: #1259 | |||||
* | test(functional): replace len() calls with list membership checks | Nejc Habjan | 2022-07-03 | 14 | -172/+163 | |
| | ||||||
* | fix: ensure path elements are escaped | John L. Villalovos | 2022-07-03 | 1 | -1/+1 | |
| | | | | | | | Ensure the path elements that are passed to the server are escaped. For example a "/" will be changed to "%2F" Closes: #2116 | |||||
* | Merge pull request #2069 from antoineauger/test/unit-tests-projects | Nejc Habjan | 2022-06-29 | 3 | -107/+538 | |
|\ | | | | | test(projects): add unit tests for projects | |||||
| * | refactor(test-projects): apply suggestions and use fixtures | Antoine Auger | 2022-06-29 | 1 | -27/+26 | |
| | | ||||||
| * | refactor(test-projects): remove test_restore_project | Antoine Auger | 2022-06-16 | 1 | -5/+0 | |
| | | ||||||
| * | test(projects): add unit tests for projects | Antoine Auger | 2022-06-16 | 3 | -100/+537 | |
| | | ||||||
* | | Merge pull request #2110 from python-gitlab/jlvillal/mr_approval_rules | Nejc Habjan | 2022-06-28 | 1 | -0/+18 | |
|\ \ | | | | | | | feat(api): add support for `get` for a MR approval rule | |||||
| * | | feat(api): add support for `get` for a MR approval rule | John L. Villalovos | 2022-06-27 | 1 | -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 | |||||
* | | | chore: fix misspelling | John L. Villalovos | 2022-06-27 | 1 | -1/+1 | |
|/ / | ||||||
* | | test: add tests and clean up usage for new enums | Nejc Habjan | 2022-06-27 | 5 | -24/+63 | |
| | |