Read about our upcoming Code of Conduct on this issue

Commit d76e2925 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

mirror: add a test for updating a mirror's config

parent cb4c432fefa3
......@@ -15,3 +15,14 @@ def test_create(test_project):
assert info['url'] == url
assert info['hg_mirror_type'] == 'hg-pull'
assert info['enabled'] is False
def test_update(test_project):
url = 'https://hg.test'
mirror = test_project.api_create_mirror(url=url,
hg_mirror_type='hg-pull')
info = mirror.api_update(
data={"url": "https://other.test", "enabled": True})
assert info['url'] == url # Gitlab does not allow updating the url
assert info['enabled'] is True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment