File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22import os
33import uuid
44import struct
5- from cos_comm import xml_to_dict
5+ from . cos_comm import xml_to_dict
66
77
88class EventStream ():
Original file line number Diff line number Diff line change @@ -1110,12 +1110,20 @@ def test_put_get_traffic_limit():
11101110
11111111
11121112def test_select_object ():
1113- """测试SQL检索COS对象"""
1113+ """测试SQL检索COS对象(只支持国内) """
11141114 select_obj = "select_test.json"
11151115 json_body = {
11161116 'name' : 'cos' ,
11171117 'age' : '999'
11181118 }
1119+ conf = CosConfig (
1120+ Region = 'ap-guangzhou' ,
1121+ SecretId = SECRET_ID ,
1122+ SecretKey = SECRET_KEY ,
1123+ )
1124+ test_bucket = 'test-select-' + APPID
1125+ _create_test_bucket (test_bucket , 'ap-guangzhou' )
1126+ client = CosS3Client (conf )
11191127 response = client .put_object (
11201128 Bucket = test_bucket ,
11211129 Key = select_obj ,
You can’t perform that action at this time.
0 commit comments