@@ -19,7 +19,7 @@ before(function(done) {
1919var testFilePath1 = path . join ( __dirname , 'logo.png' ) ;
2020var testFilePath2 = path . join ( __dirname , 'github.png' ) ;
2121
22- describe ( 'test form io ' , function ( ) {
22+ describe ( 'test form up ' , function ( ) {
2323 var accessKey = proc . env . QINIU_ACCESS_KEY ;
2424 var secretKey = proc . env . QINIU_SECRET_KEY ;
2525 var bucket = proc . env . QINIU_TEST_BUCKET ;
@@ -56,11 +56,11 @@ describe('test form io', function() {
5656 var uploadToken = putPolicy . uploadToken ( mac ) ;
5757 var config = new qiniu . conf . Config ( ) ;
5858 config . zone = qiniu . zone . Zone_z0 ;
59- var formUploader = new qiniu . form_io . FormUploader ( config ) ;
60- var putExtra = new qiniu . form_io . PutExtra ( ) ;
59+ var formUploader = new qiniu . form_up . FormUploader ( config ) ;
60+ var putExtra = new qiniu . form_up . PutExtra ( ) ;
6161
62- describe ( 'test form io #putStreamWithoutKey' , function ( ) {
63- it ( 'test form io #putStreamWithoutKey' , function ( done ) {
62+ describe ( 'test form up #putStreamWithoutKey' , function ( ) {
63+ it ( 'test form up #putStreamWithoutKey' , function ( done ) {
6464 var key = null ;
6565 var rs = fs . createReadStream ( testFilePath1 ) ;
6666 formUploader . putStream ( uploadToken , key , rs , putExtra ,
@@ -75,9 +75,9 @@ describe('test form io', function() {
7575 } ) ;
7676 } ) ;
7777
78- describe ( 'test form io #putStream' , function ( ) {
79- it ( 'test form io #putStream' , function ( done ) {
80- var key = 'io_putStream_test ' + Math . random ( 1000 ) ;
78+ describe ( 'test form up #putStream' , function ( ) {
79+ it ( 'test form up #putStream' , function ( done ) {
80+ var key = 'storage_putStream_test ' + Math . random ( 1000 ) ;
8181 var rs = fs . createReadStream ( testFilePath1 ) ;
8282 formUploader . putStream ( uploadToken , key , rs , putExtra ,
8383 function ( respErr ,
@@ -91,9 +91,9 @@ describe('test form io', function() {
9191 } ) ;
9292 } ) ;
9393
94- describe ( 'test form io #put' , function ( ) {
95- it ( 'test form io #put' , function ( done ) {
96- var key = 'io_put_test ' + Math . random ( 1000 ) ;
94+ describe ( 'test form up #put' , function ( ) {
95+ it ( 'test form up #put' , function ( done ) {
96+ var key = 'storage_put_test ' + Math . random ( 1000 ) ;
9797 formUploader . put ( uploadToken , key , "hello world" , putExtra ,
9898 function ( respErr ,
9999 respBody , respInfo ) {
@@ -106,8 +106,8 @@ describe('test form io', function() {
106106 } ) ;
107107 } ) ;
108108
109- describe ( 'test form io #putWithoutKey' , function ( ) {
110- it ( 'test form io #putWithoutKey' , function ( done ) {
109+ describe ( 'test form up #putWithoutKey' , function ( ) {
110+ it ( 'test form up #putWithoutKey' , function ( done ) {
111111 formUploader . putWithoutKey ( uploadToken , "hello world" ,
112112 putExtra ,
113113 function ( respErr ,
@@ -121,9 +121,9 @@ describe('test form io', function() {
121121 } ) ;
122122 } ) ;
123123
124- describe ( 'test form io #putFile' , function ( ) {
125- it ( 'test form io #putFile' , function ( done ) {
126- var key = 'io_putFile_test ' + Math . random ( 1000 ) ;
124+ describe ( 'test form up #putFile' , function ( ) {
125+ it ( 'test form up #putFile' , function ( done ) {
126+ var key = 'storage_putFile_test ' + Math . random ( 1000 ) ;
127127 formUploader . putFile ( uploadToken , key , testFilePath2 ,
128128 putExtra ,
129129 function (
@@ -138,8 +138,8 @@ describe('test form io', function() {
138138 } ) ;
139139 } ) ;
140140
141- describe ( 'test form io #putFileWithoutKey' , function ( ) {
142- it ( 'test form io #putFileWithoutKey' , function ( done ) {
141+ describe ( 'test form up #putFileWithoutKey' , function ( ) {
142+ it ( 'test form up #putFileWithoutKey' , function ( done ) {
143143 formUploader . putFileWithoutKey ( uploadToken , testFilePath2 ,
144144 putExtra ,
145145 function (
0 commit comments