summaryrefslogtreecommitdiff
path: root/gitlab/tests
Commit message (Collapse)AuthorAgeFilesLines
* feat: add appearance APIfeat/appearanceMax Wittig2020-01-221-0/+120
|
* Merge pull request #980 from python-gitlab/refactor/cleanup-upgradeRoger Meier2019-12-182-15/+14
|\ | | | | Refactor/cleanup upgrade
| * refactor: remove six dependencyMax Wittig2019-12-182-15/+14
| |
* | test: add project snippet testsMax Wittig2019-12-182-0/+140
|/
* feat: add support for /import/githubAndrew Tergis2019-12-161-0/+27
| | | | | | | | | | | | | | | | | | | Addresses python-gitlab/python-gitlab#952 This adds a method to the `ProjectManager` called `import_github`, which maps to the `/import/github` API endpoint. Calling `import_github` will trigger an import operation from <repo_id> into <target_namespace>, using <personal_access_token> to authenticate against github. In practice a gitlab server may take many 10's of seconds to respond to this API call, so we also take the liberty of increasing the default timeout (only for this method invocation). Unfortunately since `import` is a protected keyword in python, I was unable to follow the endpoint structure with the manager namespace. I'm open to suggestions on a more sensible interface. I'm successfully using this addition to batch-import hundreds of github repositories into gitlab.
* test: added tests for statisticsMitar2019-12-121-0/+56
|
* test: test that all is ignored, when as_list=Falsefix/as_listMax Wittig2019-12-081-0/+18
|
* feat: add users activate, deactivate functionalityMax Wittig2019-10-251-0/+25
| | | | These were introduced in GitLab 12.4
* feat: add deployment creationfeat/deployment-createMax Wittig2019-10-241-0/+44
| | | | | | Added in GitLab 12.4 Fixes #917
* feat(test): unused unittest2, type -> isinstanceCyril Jouve2019-10-137-64/+33
|
* Merge pull request #904 from jouve/remove-cred-authMax Wittig2019-10-131-62/+1
|\ | | | | remove deprecated session auth
| * feat(auth): remove deprecated session authCyril Jouve2019-10-121-62/+1
| |
* | test: remove warning about open files from test_todo()Derek Schrock2019-10-121-4/+5
|/ | | | | | When running unittests python warns that the json file from test_todo() was still open. Use with to open, read, and create encoded json data that is used by resp_get_todo().
* test(submodules): correct test methodfeat/update_submoduleMax Wittig2019-10-061-4/+4
|
* feat(project): implement update_submoduleSebastian Kratzert2019-10-061-0/+50
|
* refactor: remove unused code, simplify string formatgodaji2019-10-061-3/+0
|
* test(todo): add unittestsMax Wittig2019-09-082-0/+121
|
* style: format with blackMax Wittig2019-09-071-3/+1
|
* test(status): add user status testMax Wittig2019-09-071-10/+31
|
* feat: add support for job tokenMathieu Parent2019-09-061-1/+16
| | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
* feat: add methods to retrieve an individual project environmentTom Forbes2019-08-201-0/+30
|
* fix: improve pickle supportbourgesl2019-07-211-0/+1
|
* fix(cli): don't fail when the short print attr value is Nonexarx002019-07-211-1/+1
| | | | | Fixes #717 Fixes #727
* fix: convert # to %23 in URLsfix/779Gauvain Pocentek2019-06-081-0/+43
| | | | | | Refactor a bit to handle this change, and add unit tests. Closes #779
* refactor: format everything blackrefactor/blackMax Wittig2019-05-166-418/+486
|
* Make gitlab.Gitlab.from_config a classmethodjeroen_decroos2019-03-071-0/+32
|
* fix: use python2 compatible syntax for superfix/python-testsMax Wittig2019-02-221-1/+5
|
* Implement __eq__ and __hash__ methodsJonathan Piron2019-02-201-0/+23
| | | | To ease lists and sets manipulations.
* 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.