File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -105,4 +105,37 @@ describe('test start bucket manager', function() {
105105 } ) ;
106106 } ) ;
107107 } ) ;
108+
109+ describe ( 'test changeMime' , function ( ) {
110+ it ( 'test changeMime' , function ( done ) {
111+ var key = "test_file" ;
112+ var bucket = srcBucket ;
113+
114+ bucketManager . changeMime ( bucket , key , "text/html" ,
115+ function ( err , respBody , respInfo ) {
116+ should . not . exist ( err ) ;
117+ assert . equal ( respInfo . statusCode , 200 ) ;
118+ done ( ) ;
119+ }
120+ ) ;
121+ } ) ;
122+ } ) ;
123+
124+ describe ( 'test changeHeaders' , function ( ) {
125+ it ( 'test changeHeaders' , function ( done ) {
126+ var key = "test_file" ;
127+ var bucket = srcBucket ;
128+
129+ bucketManager . changeHeaders ( bucket , key , {
130+ 'Content-Type' : 'text/plain' ,
131+ 'x-qn-meta-!Cache-Control' : 'public, max-age=31566000' ,
132+ } ,
133+ function ( err , respBody , respInfo ) {
134+ should . not . exist ( err ) ;
135+ assert . equal ( respInfo . statusCode , 200 ) ;
136+ done ( ) ;
137+ }
138+ ) ;
139+ } ) ;
140+ } ) ;
108141} ) ;
You can’t perform that action at this time.
0 commit comments