summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for user block/unblockGauvain Pocentek2016-02-041-0/+3
|
* don't suppress docker's standard errorRichard Hansen2016-01-311-4/+4
| | | | | While docker is quite noisy, suppressing stderr makes it difficult to troubleshoot problems.
* wait for the docker container to stop before removing itRichard Hansen2016-01-311-1/+5
|
* use 'docker stop' instead of 'docker kill'Richard Hansen2016-01-311-2/+2
| | | | | | | The 'stop' command first tries SIGTERM before resorting to SIGKILL, which is a gentler way to stop processes. (SIGTERM gives processes an opportunity to clean up before exiting; SIGKILL can't be caught so it is very abrupt.)
* add more log messagesRichard Hansen2016-01-311-1/+15
|
* define a testcase() function; use it for testsRichard Hansen2016-01-312-53/+56
|
* use ${CONFIG} instead of repeating the filenameRichard Hansen2016-01-311-2/+2
|
* fix usage error messageRichard Hansen2016-01-311-1/+3
|
* improve error handlingRichard Hansen2016-01-313-35/+46
| | | | | | Break up pipelines and check the exit status of non-basic commands to ensure that any problems cause the scripts/testcases to fail right away.
* convert scripts to POSIX shell by eliminating bashismsRichard Hansen2016-01-313-17/+17
|
* quote underquoted variable expansionsRichard Hansen2016-01-313-21/+21
| | | | | | This protects against word splitting if the variable contains IFS characters, and it ensures that an empty variable doesn't become an elided argument.
* convert $GITLAB to a functionRichard Hansen2016-01-312-14/+14
| | | | This makes it possible to quote the $CONFIG variable expansion.
* convert $OK to a functionRichard Hansen2016-01-312-13/+13
| | | | This makes it possible to quote the variable expansions.
* only run deactivate if it existsRichard Hansen2016-01-311-1/+1
| | | | | The deactivate command only exists if activate is run, but cleanup() might be called before activate is run if there is an error.
* ensure that cleanup() runs if terminated by the userRichard Hansen2016-01-311-0/+1
|
* check if docker container is up when waiting for gitlabRichard Hansen2016-01-311-1/+3
| | | | | There's no point in waiting for GitLab to come up if the docker container died.
* error out if required utilities aren't installedRichard Hansen2016-01-311-0/+9
|
* use the log functions for errors and status messagesRichard Hansen2016-01-311-6/+5
| | | | | This causes the error messages to go to standard error, and it makes it easy to prefix all log messages if desired.
* add logging and error handling helper functionsRichard Hansen2016-01-311-0/+11
|
* compact some case statementsRichard Hansen2016-01-311-8/+3
|
* move common code to build_test_env.shRichard Hansen2016-01-313-45/+23
| | | | | Note that build_test_env.sh now creates and prepares the Python virtualenv (it didn't before).
* wrap long linesRichard Hansen2016-01-312-11/+24
| | | | Use line continuations to keep lines shorter than 80 columns.
* Fix Project.tree()Gauvain Pocentek2016-01-301-0/+9
| | | | Add API tests for tree(), blob() and archive().
* Add sudo supportGauvain Pocentek2016-01-301-1/+2
|
* Add support for application settingsGauvain Pocentek2016-01-271-0/+7
|
* Implement project variables supportGauvain Pocentek2016-01-243-2/+11
|
* implement project triggers supportGauvain Pocentek2016-01-241-0/+6
|
* Implement setting release info on a tagGauvain Pocentek2016-01-241-0/+3
| | | | | Add the set_release_description() method to ProjectTag. Add python API test for this method.
* API tests for tagsGauvain Pocentek2016-01-241-0/+5
|
* Implement ProjectMilestone.issues()Gauvain Pocentek2016-01-231-0/+13
| | | | | | This lists the issues related to the milestone. Add python API tests for issues.
* fix ProjectLabel get and deleteGauvain Pocentek2016-01-231-2/+2
|
* wait a little before running the python testsGauvain Pocentek2016-01-231-0/+2
|
* fix the API test for decode()Gauvain Pocentek2016-01-231-4/+5
|
* increase the timeout value for testsGauvain Pocentek2016-01-231-1/+1
|
* add a decode method for ProjectFileGauvain Pocentek2016-01-231-0/+1
|
* use a custom docker image for testsGauvain Pocentek2016-01-231-1/+1
|
* Add an initial set of API testsGauvain Pocentek2016-01-182-0/+168
|
* add some CLI testsGauvain Pocentek2016-01-171-3/+11
|
* Add a script to build a test envGauvain Pocentek2016-01-102-58/+82
| | | | | functional_tests.sh has been split in 2 scripts to make easier the run of gitlab container.
* functional_tests.sh: support python 2 and 3Gauvain Pocentek2015-12-291-2/+21
|
* Test branch creation et deletionGauvain Pocentek2015-09-191-0/+12
|
* Provide a Gitlab.from_config methodGauvain Pocentek2015-08-211-4/+4
| | | | | It provides the Gitlab object creation from the ~/.python-gitlab.cfg, just like the CLI does.
* Fix the update/delete CLI subcommandsGauvain Pocentek2015-07-111-1/+9
| | | | | | Also update the testing tool to test these features. Closes #62
* functional_test.sh: use a venv0.9Gauvain Pocentek2015-05-151-2/+10
|
* Provide a basic functional test scriptGauvain Pocentek2015-05-141-0/+89
This can be used to quickly test the correct behavior of the CLI. The script is simple and doesn't test much for now, but it's a start.