diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-06-13 21:39:28 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-06-13 21:39:28 +0200 |
| commit | 5183069722224914bd6c2d25996163861183415b (patch) | |
| tree | 7553c28a98a6d6320346751bd813748299e5de83 /tools/ee-test.py | |
| parent | 3f88ad0dd92b6d5e418e2a615b57dc62a5f7b870 (diff) | |
| download | gitlab-5183069722224914bd6c2d25996163861183415b.tar.gz | |
Add support for the EE license API
Diffstat (limited to 'tools/ee-test.py')
| -rwxr-xr-x | tools/ee-test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/ee-test.py b/tools/ee-test.py index 760ac7e..40e4f07 100755 --- a/tools/ee-test.py +++ b/tools/ee-test.py @@ -111,3 +111,12 @@ assert(pr is not None) assert(pr.deny_delete_tag == False) pr.delete() end_log() + +start_log('license') +l = gl.get_license() +assert('user_limit' in l) +try: + gl.set_license('dummykey') +except Exception as e: + assert('The license key is invalid.' in e.error_message) +end_log() |
