@@ -26,7 +26,18 @@ def test_images(self):
26
26
fake_request .assert_called_with (
27
27
'GET' ,
28
28
url_prefix + 'images/json' ,
29
- params = {'filter' : None , 'only_ids' : 0 , 'all' : 1 },
29
+ params = {'only_ids' : 0 , 'all' : 1 },
30
+ timeout = DEFAULT_TIMEOUT_SECONDS
31
+ )
32
+
33
+ def test_images_name (self ):
34
+ self .client .images ('foo:bar' )
35
+
36
+ fake_request .assert_called_with (
37
+ 'GET' ,
38
+ url_prefix + 'images/json' ,
39
+ params = {'only_ids' : 0 , 'all' : 0 ,
40
+ 'filters' : '{"reference": ["foo:bar"]}' },
30
41
timeout = DEFAULT_TIMEOUT_SECONDS
31
42
)
32
43
@@ -36,7 +47,7 @@ def test_images_quiet(self):
36
47
fake_request .assert_called_with (
37
48
'GET' ,
38
49
url_prefix + 'images/json' ,
39
- params = {'filter' : None , ' only_ids' : 1 , 'all' : 1 },
50
+ params = {'only_ids' : 1 , 'all' : 1 },
40
51
timeout = DEFAULT_TIMEOUT_SECONDS
41
52
)
42
53
@@ -46,7 +57,7 @@ def test_image_ids(self):
46
57
fake_request .assert_called_with (
47
58
'GET' ,
48
59
url_prefix + 'images/json' ,
49
- params = {'filter' : None , ' only_ids' : 1 , 'all' : 0 },
60
+ params = {'only_ids' : 1 , 'all' : 0 },
50
61
timeout = DEFAULT_TIMEOUT_SECONDS
51
62
)
52
63
@@ -56,7 +67,7 @@ def test_images_filters(self):
56
67
fake_request .assert_called_with (
57
68
'GET' ,
58
69
url_prefix + 'images/json' ,
59
- params = {'filter' : None , ' only_ids' : 0 , 'all' : 0 ,
70
+ params = {'only_ids' : 0 , 'all' : 0 ,
60
71
'filters' : '{"dangling": ["true"]}' },
61
72
timeout = DEFAULT_TIMEOUT_SECONDS
62
73
)
0 commit comments