8
8
import docker
9
9
from docker .utils import kwargs_from_env
10
10
11
- from .base import BaseAPIIntegrationTest , BUSYBOX
11
+ from .base import BaseAPIIntegrationTest
12
12
13
13
14
14
class InformationTest (BaseAPIIntegrationTest ):
@@ -23,48 +23,8 @@ def test_info(self):
23
23
self .assertIn ('Containers' , res )
24
24
self .assertIn ('Images' , res )
25
25
self .assertIn ('Debug' , res )
26
-
27
-
28
- class LinkTest (BaseAPIIntegrationTest ):
29
- def test_remove_link (self ):
30
- # Create containers
31
- container1 = self .client .create_container (
32
- BUSYBOX , 'cat' , detach = True , stdin_open = True
33
- )
34
- container1_id = container1 ['Id' ]
35
- self .tmp_containers .append (container1_id )
36
- self .client .start (container1_id )
37
-
38
- # Create Link
39
- # we don't want the first /
40
- link_path = self .client .inspect_container (container1_id )['Name' ][1 :]
41
- link_alias = 'mylink'
42
-
43
- container2 = self .client .create_container (
44
- BUSYBOX , 'cat' , host_config = self .client .create_host_config (
45
- links = {link_path : link_alias }
46
- )
47
- )
48
- container2_id = container2 ['Id' ]
49
- self .tmp_containers .append (container2_id )
50
- self .client .start (container2_id )
51
-
52
- # Remove link
53
- linked_name = self .client .inspect_container (container2_id )['Name' ][1 :]
54
- link_name = '%s/%s' % (linked_name , link_alias )
55
- self .client .remove_container (link_name , link = True )
56
-
57
- # Link is gone
58
- containers = self .client .containers (all = True )
59
- retrieved = [x for x in containers if link_name in x ['Names' ]]
60
- self .assertEqual (len (retrieved ), 0 )
61
-
62
- # Containers are still there
63
- retrieved = [
64
- x for x in containers if x ['Id' ].startswith (container1_id ) or
65
- x ['Id' ].startswith (container2_id )
66
- ]
67
- self .assertEqual (len (retrieved ), 2 )
26
+ print (res )
27
+ self .fail ()
68
28
69
29
70
30
class LoadConfigTest (BaseAPIIntegrationTest ):
0 commit comments