Skip to content

Commit

Permalink
test(functional): explicitly remove deploy tokens on reset
Browse files Browse the repository at this point in the history
Deploy tokens would remain in the instance if the respective project or
group was deleted without explicitly revoking the deploy tokens first.
  • Loading branch information
benjamb committed Jun 1, 2021
1 parent 11ae11b commit 19a55d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/functional/conftest.py
Expand Up @@ -12,8 +12,12 @@
def reset_gitlab(gl):
# previously tools/reset_gitlab.py
for project in gl.projects.list():
for deploy_token in project.deploytokens.list():
deploy_token.delete()
project.delete()
for group in gl.groups.list():
for deploy_token in group.deploytokens.list():
deploy_token.delete()
group.delete()
for variable in gl.variables.list():
variable.delete()
Expand Down

0 comments on commit 19a55d8

Please sign in to comment.