File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,24 @@ def test_project_remote_mirrors(project):
310
310
mirror .delete ()
311
311
312
312
313
+ def test_project_pull_mirrors (project ):
314
+ mirror_url = "https://gitlab.example.com/root/mirror.git"
315
+
316
+ mirror = project .pull_mirror .create ({"url" : mirror_url })
317
+ assert mirror .url == mirror_url
318
+
319
+ mirror .enabled = True
320
+ mirror .save ()
321
+
322
+ mirror = project .pull_mirror .get ()
323
+ assert isinstance (mirror , gitlab .v4 .objects .ProjectPullMirror )
324
+ assert mirror .url == mirror_url
325
+ assert mirror .enabled is True
326
+
327
+ mirror .enabled = False
328
+ mirror .save ()
329
+
330
+
313
331
def test_project_services (project ):
314
332
# Use 'update' to create a service as we don't have a 'create' method and
315
333
# to add one is somewhat complicated so it hasn't been done yet.
You can’t perform that action at this time.
0 commit comments