summaryrefslogtreecommitdiff
path: root/tests/functional/cli/test_cli.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(cli): warn user when no fields are displayedNejc Habjan2023-04-111-0/+10
|
* feat(client): warn user on misconfigured URL in `auth()`Nejc Habjan2022-08-041-0/+1
|
* 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(cli): improve coverage for custom actionsNejc Habjan2022-06-011-3/+29
|
* test(gitlab): increase unit test coverageNejc Habjan2022-05-291-0/+6
|
* fix(cli): url-encode path components of the URLJohn L. Villalovos2022-01-081-11/+0
| | | | | | | | | | | | | 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