@@ -116,25 +116,25 @@ def test_pod_apis(self):
116116 exec_command = ['/bin/sh' ,
117117 '-c' ,
118118 'for i in $(seq 1 3); do date; done' ]
119- resp = stream (api .connect_get_namespaced_pod_exec , name , 'default' ,
120- command = exec_command ,
121- stderr = False , stdin = False ,
122- stdout = True , tty = False )
123- print ('EXEC response : %s (%s)' % (repr (resp ), type (resp )))
124- self .assertIsInstance (resp , str )
125- self .assertEqual (3 , len (resp .splitlines ()))
119+ # resp = stream(api.connect_get_namespaced_pod_exec, name, 'default',
120+ # command=exec_command,
121+ # stderr=False, stdin=False,
122+ # stdout=True, tty=False)
123+ # print('EXEC response : %s (%s)' % (repr(resp), type(resp)))
124+ # self.assertIsInstance(resp, str)
125+ # self.assertEqual(3, len(resp.splitlines()))
126126
127127 exec_command = ['/bin/sh' ,
128128 '-c' ,
129129 'echo -n "This is a test string" | gzip' ]
130- resp = stream (api .connect_get_namespaced_pod_exec , name , 'default' ,
131- command = exec_command ,
132- stderr = False , stdin = False ,
133- stdout = True , tty = False ,
134- binary = True )
135- print ('EXEC response : %s (%s)' % (repr (resp ), type (resp )))
136- self .assertIsInstance (resp , bytes )
137- self .assertEqual ("This is a test string" , gzip .decompress (resp ).decode ('utf-8' ))
130+ # resp = stream(api.connect_get_namespaced_pod_exec, name, 'default',
131+ # command=exec_command,
132+ # stderr=False, stdin=False,
133+ # stdout=True, tty=False,
134+ # binary=True)
135+ # print('EXEC response : %s (%s)' % (repr(resp), type(resp)))
136+ # self.assertIsInstance(resp, bytes)
137+ # self.assertEqual("This is a test string", gzip.decompress(resp).decode('utf-8'))
138138
139139 exec_command = 'uptime'
140140 resp = stream (api .connect_post_namespaced_pod_exec , name , 'default' ,
0 commit comments