package test.com.qiniu;

import com.qiniu.util.Auth;

import test.com.qiniu.storage.BucketTest;

public final class TestConfig {
	
    //dummy: ak, sk, ...
    public static final String dummyAccessKey = "abcdefghklmnopq";
    public static final String dummySecretKey = "1234567890";
    public static final Auth dummyAuth = Auth.create(dummyAccessKey, dummySecretKey);
    public static final String dummyBucket = "no-such-dummy-bucket";
    public static final String dummyKey = "no-such-dummy-key";
    public static final String dummyDomain = "dummy.qiniudn.com";
    public static final String dummyUptoken = "ak:token:putpolicy";
    public static final String dummyInvalidUptoken = "invalidtoken";
    
    //test: ak, sk, auth
    public static final String testAccessKey = "vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5";//System.getenv("QINIU_ACCESS_KEY");
    public static final String testSecretKey = "qDUzapzO_gI7Q2OW_1c7UKctHTOyHPrR-bBWsYvC";//System.getenv("QINIU_SECRET_KEY");
    public static Auth testAuth = Auth.create(testAccessKey, testSecretKey);
    //z0
    public static final String testBucket_z0 = "javasdk";
    public static final String testKey_z0 = "peter/1.png";
    public static final String testDomain_z0 = "javasdk.peterpy.cn";
    public static final String testUrl_z0 = "http://" + testDomain_z0 + "/" + testKey_z0;
    public static final String testDomain_z0_timeStamp = "javasdk-timestamp.peterpy.cn";
    public static final String testUrl_z0_timeStamp = "http://" + testDomain_z0_timeStamp + "/" + testKey_z0;
    public static final String testMp4FileKey = "peter/1.mp4";
    public static final String testPipeline = "peter";
    //na0
    public static final String testBucket_na0 = "java-sdk-na0";
    public static final String testKey_na0 = "peter/1.png";
    public static final String testDomain_na0 = "javasdk-na0.peterpy.cn";
    public static final String testUrl_na0 = "http://" + testDomain_na0 + "/" + testKey_na0;
    //code
    public static final int ERROR_CODE_BUCKET_NOT_EXIST = 631;
    public static final int ERROR_CODE_KEY_NOT_EXIST = 612;
    
    private TestConfig() {
    }
    
    public static boolean isTravis() {
        return "travis".equals(System.getenv("QINIU_TEST_ENV"));
    }
    
    public static void main(String[] args) {
    	try {
    		BucketTest bucketTest = new BucketTest();
			bucketTest.setUp();
			bucketTest.testStat();
			System.out.println("done");
		} catch (Exception e) {
			e.printStackTrace();
		}
    }
    
}

@@ -780,53 +780,8 @@
 y = 
-%22vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5%22;//
 Syst
@@ -862,53 +862,8 @@
 y = 
-%22qDUzapzO_gI7Q2OW_1c7UKctHTOyHPrR-bBWsYvC%22;//
 Syst
@@ -2225,105 +2225,8 @@
 y %7B%0A
-    %09%09BucketTest bucketTest = new BucketTest();%0A%09%09%09bucketTest.setUp();%0A%09%09%09bucketTest.testStat();%0A
 %09%09%09S

fix Travis CI and bugs