File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2070,8 +2070,8 @@ def test_live_channel():
20702070 response = client .get_vod_playlist (
20712071 Bucket = test_bucket ,
20722072 ChannelName = channel_name ,
2073- StartTime = 0 ,
2074- EndTime = datetime .now ().timestamp ()
2073+ StartTime = int ( datetime . now (). timestamp () - 100000 ) ,
2074+ EndTime = int ( datetime .now ().timestamp () )
20752075 )
20762076
20772077 print ("delete live channel..." )
@@ -3442,10 +3442,13 @@ def test_cos_comm_misc():
34423442 r = format_path ('/test/path/to' )
34433443 assert r == 'test/path/to'
34443444
3445+ def test_cosconfig_misc ():
3446+ test_conf = CosConfig (Access_id = SECRET_ID , Access_key = SECRET_KEY )
3447+ test_conf .set_ip_port ('10.0.0.1' , 80 )
3448+ test_conf .set_credential (SecretId = SECRET_ID , SecretKey = SECRET_KEY , Token = None )
34453449
34463450if __name__ == "__main__" :
34473451 setUp ()
3448- test_cos_comm_misc ()
34493452 """
34503453 test_config_invalid_scheme()
34513454 test_config_credential_inst()
You can’t perform that action at this time.
0 commit comments