summaryrefslogtreecommitdiff
path: root/gitlab/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(cli): exit on config parse error, instead of crashingMax Wittig2018-11-041-3/+17
| | | | * Exit and hint user about possible errors * test: adjust test cases to config missing error
* Revert "make as_list work for all queries"Gauvain Pocentek2018-06-171-60/+7
| | | | | | This reverts commit 8e787612fa77dc945a4c1327e9faa6eee10c48f2. This change broke the basic generator usage (Fixes #534)
* make as_list work for all queriesCyril Jouve2018-06-071-7/+60
|
* silence logs/warnings in unittestsCyril Jouve2018-06-072-6/+27
|
* Add missing project attributesGauvain Pocentek2018-05-291-0/+7
|
* Implement user_agent_detail for snippetsGauvain Pocentek2018-05-271-0/+7
| | | | Add a new UserAgentDetail mixin to avoid code duplication.
* add per_page config optionCyril Jouve2018-05-221-1/+15
|
* Drop GetFromListMixinGauvain Pocentek2018-05-192-23/+3
|
* Drop API v3 supportGauvain Pocentek2018-05-194-1454/+13
| | | | Drop the code, the tests, and update the documentation.
* Implement attribute types to handle special casesGauvain Pocentek2018-03-171-0/+66
| | | | | | | | Some attributes need to be parsed/modified to work with the API (for instance lists). This patch provides two attribute types that will simplify parts of the code, and fix some CLI bugs. Fixes #443
* Add basic unit tests for v4 CLIGauvain Pocentek2018-03-111-0/+37
|
* [cli] Allow to read args from filesGauvain Pocentek2018-03-051-0/+25
| | | | | | | With the @/file/path syntax (similar to curl) user can provide values from attributes in files. Fixes #448
* introduce RefreshMixinPierre Tardy2018-03-041-0/+19
| | | | | RefreshMixin allows to update a REST object so that you can poll on it. This is mostly useful for pipelines and jobs, but could be set on most of other objects, with unknown usecases.
* Default to API v4Gauvain Pocentek2018-02-053-26/+27
|
* Remove now-invalid testGauvain Pocentek2017-12-161-3/+0
|
* Revert "Add unit tests for mixin exceptions"Gauvain Pocentek2017-11-161-86/+0
| | | | This reverts commit 4ee139ad5c58006da1f9af93fdd4e70592e6daa0.
* Add unit tests for mixin exceptionsGauvain Pocentek2017-11-111-0/+86
|
* Add a SetMixinGauvain Pocentek2017-11-111-0/+25
| | | | | Use it for UserCustomAttribute, will be useful for {Project,Group}CustomAttribute (#367)
* Add missing mocking on unit testGauvain Pocentek2017-11-101-1/+11
|
* Add support for oauth and anonymous auth in config/CLIGauvain Pocentek2017-11-101-5/+22
|
* Rework authentication args handlingGauvain Pocentek2017-11-101-0/+49
| | | | | | | | * Raise exceptions when conflicting arguments are used * Build the auth headers when instanciating Gitlab, not on each request * Enable anonymous Gitlab objects (#364) Add docs and unit tests
* Module's base objects serialization (#359)Lyudmil Nenov2017-11-033-0/+29
| | | | | | | | Make gitlab objects serializable With current implementation of API v3 and v4 support, some instances have properties of type module and are not serializable. Handle these properties manually with setstate and getstate methods.
* Pagination generators: expose more informationGauvain Pocentek2017-11-011-0/+6
| | | | | | | Expose the X-* pagination attributes returned by the Gitlab server when requesting lists. Closes #304
* Support SSL verification via internal CA bundleMaura Hausman2017-08-041-0/+15
| | | | | - Also updates documentation - See issues #204 and #270
* Update tests for list() changesGauvain Pocentek2017-08-042-5/+10
|
* Restore correct exceptionsGauvain Pocentek2017-07-151-1/+1
| | | | | | Match the exceptions raised in v3 for v4. Also update the doc strings with correct information.
* Refactor the CLIGauvain Pocentek2017-06-251-15/+22
| | | | | | | v3 and v4 CLI will be very different, so start moving things in their own folders. For now v4 isn't working at all.
* Remove unused future.division importGauvain Pocentek2017-06-111-1/+0
| | | | We don't do math.
* tests for objects mixinsGauvain Pocentek2017-06-051-0/+57
|
* Add tests for managers mixinsGauvain Pocentek2017-06-051-0/+354
|
* Basic test for GitlabListGauvain Pocentek2017-06-051-1/+47
|
* Unit tests for REST* classesGauvain Pocentek2017-06-051-0/+129
|
* Tests and fixes for the http_* methodsGauvain Pocentek2017-06-021-0/+220
|
* update copyright yearsGauvain Pocentek2017-05-243-3/+3
|
* Merge branch 'v4_support'Gauvain Pocentek2017-05-241-1/+1
|\
| * Reorganise the code to handle v3 and v4 objectsGauvain Pocentek2017-05-231-1/+1
| | | | | | | | | | | | Having objects managing both versions will only make the code more complicated, with lots of tests everywhere. This solution might generate some code duplication, but it should be maintainable.
* | Deprecate parameter related methods in gitlab.GitlabGauvain Pocentek2017-05-241-25/+8
|/ | | | | | | | These methods change the auth information and URL, and might have some unwanted side effects. Users should create a new Gitlab instance to change the URL and authentication information.
* Add 'search' attribute to projects.list()Gauvain Pocentek2017-05-231-3/+3
| | | | projects.search() has been deprecated by Gitlab
* Stop listing if recursion limit is hit (#234)Johan Brandhorst2017-03-231-0/+70
|
* Snippet: content() -> raw()Gauvain Pocentek2016-12-261-2/+2
| | | | | Using the content() method causes conflicts with the API `content` attribute.
* Added support for Snippets (new API in Gitlab 8.15)Guyzmo2016-12-241-0/+34
| | | | | | cf [Gitlab-CE MR !6373](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6373) Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
* Remove _get_list_or_object() and its testsGauvain Pocentek2016-08-132-65/+0
|
* tests: don't use deprecated Content methodGauvain Pocentek2016-07-181-2/+2
|
* fix unit testsGauvain Pocentek2016-07-171-1/+1
|
* define UserManager.get_by_username() to get a user by usernameRichard Hansen2016-02-121-0/+26
|
* define UserManager.search() to search for usersRichard Hansen2016-02-121-0/+23
|
* Add some unit tests for CLIGauvain Pocentek2016-02-052-4/+95
| | | | Reorganize the cli.py code to ease the testing.
* Add support for application settingsGauvain Pocentek2016-01-271-0/+39
|
* fix the test_create_unknown_path testGauvain Pocentek2016-01-231-4/+3
|
* Fix the json() method for python 3Gauvain Pocentek2016-01-231-0/+9
| | | | Also add unit tests and fix pep8 test