Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix test-env.sh according to impl.md

  • Loading branch information...
commit daf2566fb9380623a6cea3dd566e66b62edc4142 1 parent 187be56
@SunRunAway SunRunAway authored
View
4 docs/demo.py
@@ -50,8 +50,8 @@ def _setup():
if access_key is None:
exit("请配置环境变量 QINIU_ACCESS_KEY")
secret_key = getenv("QINIU_SECRET_KEY")
- bucket_name = getenv("QINIU_BUCKET_NAME")
- domain = getenv("QINIU_DOMAIN")
+ bucket_name = getenv("QINIU_TEST_BUCKET")
+ domain = getenv("QINIU_TEST_DOMAIN")
pickey = 'QINIU_UNIT_TEST_PIC'
setup(access_key, secret_key, bucket_name, domain, pickey)
View
2  qiniu/rs/test/__init__.py
@@ -12,7 +12,7 @@
def setUp():
qiniu.conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
qiniu.conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
- bucket_name = os.getenv("QINIU_BUCKET_NAME")
+ bucket_name = os.getenv("QINIU_TEST_BUCKET")
policy = qiniu.rs.PutPolicy(bucket_name)
uptoken = policy.token()
View
2  qiniu/rs/test/rs_test.py
@@ -14,7 +14,7 @@ def r(length):
conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
key = 'QINIU_UNIT_TEST_PIC'
-bucket_name = os.getenv("QINIU_BUCKET_NAME")
+bucket_name = os.getenv("QINIU_TEST_BUCKET")
noexist_key = 'QINIU_UNIT_TEST_NOEXIST' + r(30)
key2 = "rs_demo_test_key_1_" + r(5)
key3 = "rs_demo_test_key_2_" + r(5)
View
4 qiniu/rs/test/rs_token_test.py
@@ -14,8 +14,8 @@
conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
-bucket_name = os.getenv("QINIU_BUCKET_NAME")
-domain = os.getenv("QINIU_DOMAIN")
+bucket_name = os.getenv("QINIU_TEST_BUCKET")
+domain = os.getenv("QINIU_TEST_DOMAIN")
key = 'QINIU_UNIT_TEST_PIC'
class TestToken(unittest.TestCase):
View
2  qiniu/test/io_test.py
@@ -16,7 +16,7 @@
conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
-bucket_name = os.getenv("QINIU_BUCKET_NAME")
+bucket_name = os.getenv("QINIU_TEST_BUCKET")
policy = rs.PutPolicy(bucket_name)
extra = io.PutExtra()
View
2  qiniu/test/resumable_io_test.py
@@ -16,7 +16,7 @@
from qiniu import resumable_io
from qiniu import rs
-bucket = os.getenv("QINIU_BUCKET_NAME")
+bucket = os.getenv("QINIU_TEST_BUCKET")
conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
View
2  qiniu/test/rsf_test.py
@@ -6,7 +6,7 @@
import os
conf.ACCESS_KEY = os.getenv("QINIU_ACCESS_KEY")
conf.SECRET_KEY = os.getenv("QINIU_SECRET_KEY")
-bucket_name = os.getenv("QINIU_BUCKET_NAME")
+bucket_name = os.getenv("QINIU_TEST_BUCKET")
class TestRsf(unittest.TestCase):
def test_list_prefix(self):
View
4 test-env.sh
@@ -1,4 +1,4 @@
export QINIU_ACCESS_KEY="<access_key>"
export QINIU_SECRET_KEY="<secret_key>"
-export QINIU_BUCKET_NAME="<bucket_name>"
-export QINIU_DOMAIN="<bucket_domain>"
+export QINIU_TEST_BUCKET="<bucket_name>"
+export QINIU_TEST_DOMAIN="<bucket_domain>"
Please sign in to comment.
Something went wrong with that request. Please try again.