File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
test/apiv2/python/rest_api Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,20 @@ def test_remove_all(self):
527
527
rjson = r .json ()
528
528
self .assertEqual (len (rjson ), 0 )
529
529
530
+ def test_remove_with_ignore (self ):
531
+ # Test remove non existent artifacts with ignore
532
+ removeparameters : dict [str , str | list [str ]] = {
533
+ "Artifacts" : "fake_artifact" ,
534
+ "ignore" : "true" ,
535
+ }
536
+
537
+ url = self .uri ("/artifacts/remove" )
538
+ r = requests .delete (url , params = removeparameters )
539
+ rjson = r .json ()
540
+
541
+ # Assert correct response code
542
+ self .assertEqual (r .status_code , 200 , r .text )
543
+
530
544
def test_remove_absent_artifact_fails (self ):
531
545
ARTIFACT_NAME = "localhost/fake/artifact:latest"
532
546
url = self .uri ("/artifacts/" + ARTIFACT_NAME )
You can’t perform that action at this time.
0 commit comments