summaryrefslogtreecommitdiff
path: root/tests/functional/cli
Commit message (Collapse)AuthorAgeFilesLines
* fix(cli): warn user when no fields are displayedNejc Habjan2023-04-111-0/+10
|
* fix(cli): add ability to escape at-prefixed parameter (#2513)PyHedgehog2023-03-111-0/+20
| | | | | | | * fix(cli): Add ability to escape at-prefixed parameter (#2511) --------- Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
* test(functional): clarify MR fixture factory nameNejc Habjan2023-02-061-4/+7
|
* fix(cli): display items when iterator is returnedNejc Habjan2023-02-061-0/+15
|
* fix(cli): handle list response for json/yaml outputJohn L. Villalovos2022-10-061-0/+44
| | | | | | | | | Handle the case with the CLI where a list response is returned from GitLab and json/yaml output is requested. Add a functional CLI test to validate it works. Closes: #2287
* fix: intermittent failure in test_merge_request_reset_approvalsJohn L. Villalovos2022-10-051-1/+2
| | | | | | | | | | Have been seeing intermittent failures in the test: tests/functional/api/test_merge_requests.py::test_merge_request_reset_approvals Also saw a failure in: tests/functional/cli/test_cli_v4.py::test_accept_request_merge[subprocess] Add a call to `wait_for_sidekiq()` to hopefully resolve the issues.
* feat(client): warn user on misconfigured URL in `auth()`Nejc Habjan2022-08-041-0/+1
|
* test(cli): add tests for token scopesNejc Habjan2022-07-282-0/+46
|
* feat(cli): add a custom help formatterWaldek Maleska2022-07-281-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: always ensure clean config environmentNejc Habjan2022-07-261-5/+1
|
* fix: add `get_all` param (and `--get-all`) to allow passing `all` to APINejc Habjan2022-07-212-53/+73
|
* feat: support validating CI lint resultsNejc Habjan2022-07-091-0/+53
|
* test(cli): improve coverage for custom actionsNejc Habjan2022-06-012-4/+38
|
* fix(cli): fix project export download for CLINejc Habjan2022-06-011-0/+34
| | | | | Since ac1c619cae6481833f5df91862624bf0380fef67 we delete parent arg keys from the args dict so this has been trying to access the wrong attribute.
* test(gitlab): increase unit test coverageNejc Habjan2022-05-291-0/+6
|
* test(objects): add tests for project artifactsNejc Habjan2022-02-011-5/+101
|
* fix(cli): allow custom methods in managersNejc Habjan2022-01-222-0/+36
|
* fix(objects): make resource access tokens and repos available in CLINejc Habjan2022-01-221-0/+16
|
* fix(members): use new *All objects for *AllManager managersJohn L. Villalovos2022-01-131-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change it so that: GroupMemberAllManager uses GroupMemberAll object ProjectMemberAllManager uses ProjectMemberAll object Create GroupMemberAll and ProjectMemberAll objects that do not support any Mixin type methods. Previously we were using GroupMember and ProjectMember which support the `save()` and `delete()` methods but those methods will not work with objects retrieved using the `/members/all/` API calls. `list()` API calls: [1] GET /groups/:id/members/all GET /projects/:id/members/all `get()` API calls: [2] GET /groups/:id/members/all/:user_id GET /projects/:id/members/all/:user_id Closes: #1825 Closes: #848 [1] https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project-including-inherited-and-invited-members [2] https://docs.gitlab.com/ee/api/members.html#get-a-member-of-a-group-or-project-including-inherited-and-invited-members
* fix(cli): url-encode path components of the URLJohn L. Villalovos2022-01-083-11/+49
| | | | | | | | | | | | | In the CLI we need to make sure the components put into the path portion of the URL are url-encoded. Otherwise they will be interpreted as part of the path. For example can specify the project ID as a path, but in the URL it must be url-encoded or it doesn't work. Also stop adding the components of the path as query parameters in the URL. Closes: #783 Closes: #1498
* chore: fix functional test failure if config presentJohn L. Villalovos2022-01-081-5/+4
| | | | | Previously c8256a5933d745f70c7eea0a7d6230b51bac0fbc was done to fix this but it missed two other failures.
* feat(cli): allow options from args and environment variablesNejc Habjan2022-01-021-10/+69
| | | | | | | | BREAKING-CHANGE: The gitlab CLI will now accept CLI arguments and environment variables for its global options in addition to configuration file options. This may change behavior for some workflows such as running inside GitLab CI and with certain environment variables configured.
* chore: fix functional test failure if config presentjlvillal/cli_testJohn L. Villalovos2022-01-011-4/+8
| | | | | | | Fix functional test failure if config present and configured with token. Closes: #1791
* feat(cli): do not require config file to run CLIfeat/cli-without-config-fileNejc Habjan2021-12-131-0/+39
| | | | | | | | | | | BREAKING CHANGE: A config file is no longer needed to run the CLI. python-gitlab will default to https://gitlab.com with no authentication if there is no config file provided. python-gitlab will now also only look for configuration in the provided PYTHON_GITLAB_CFG path, instead of merging it with user- and system-wide config files. If the environment variable is defined and the file cannot be opened, python-gitlab will now explicitly fail.
* test(cli): improve basic CLI coveragetest/cli-coverageNejc Habjan2021-11-271-0/+49
|
* chore: rename `master` branch to `main`chore/master-to-mainNejc Habjan2021-10-112-5/+5
| | | | | BREAKING CHANGE: As of python-gitlab 3.0.0, the default branch for development has changed from `master` to `main`.
* chore: fix mypy pre-commit hookNejc Habjan2021-08-221-0/+0
|
* test(cli): replace assignment expressionBen Brown2021-06-011-5/+3
| | | | | This is a feature added in 3.8, removing it allows for the test to run with lower python versions.
* feat(objects): add support for generic packages APINejc Habjan2021-05-311-0/+48
|
* chore: rename 'tools/functional/' to 'tests/functional/'John L. Villalovos2021-05-265-0/+818
Rename the 'tools/functional/' directory to 'tests/functional/' This makes more sense as these are functional tests and not tools. This was dicussed in: https://github.com/python-gitlab/python-gitlab/discussions/1468