@@ -93,17 +93,6 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
9393 assert . strictEqual ( resp . status , 401 , `Expected 401 Unauthorized, got ${ resp . status } ` ) ;
9494 } ) ;
9595
96- it ( 'cannot delete root folder if not authenticated' , async ( ) => {
97- const {
98- serverUrl, org, repo,
99- } = ctx ;
100- const url = `${ serverUrl } /source/${ org } /${ repo } ` ;
101- const resp = await fetch ( url , {
102- method : 'DELETE' ,
103- } ) ;
104- assert . strictEqual ( resp . status , 401 , `Expected 401 Unauthorized, got ${ resp . status } ` ) ;
105- } ) ;
106-
10796 it ( 'delete root folder to cleanup the bucket' , async ( ) => {
10897 const {
10998 serverUrl, org, repo, accessToken,
@@ -128,14 +117,9 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
128117 const {
129118 serverUrl, org, repo, accessToken,
130119 } = ctx ;
131- const formData = new FormData ( ) ;
132- const blob = new Blob ( [ '{}' ] , { type : 'application/json' } ) ;
133- const file = new File ( [ blob ] , `${ repo } .props` , { type : 'application/json' } ) ;
134- formData . append ( 'data' , file ) ;
135120
136- const resp = await fetch ( `${ serverUrl } /source/${ org } /${ repo } /${ repo } .props` , {
137- method : 'POST' ,
138- body : formData ,
121+ const resp = await fetch ( `${ serverUrl } /source/${ org } /${ repo } ` , {
122+ method : 'PUT' ,
139123 headers : { Authorization : `Bearer ${ accessToken } ` } ,
140124 } ) ;
141125 assert . ok ( [ 200 , 201 ] . includes ( resp . status ) , `Expected 200 or 201 for marker, got ${ resp . status } ` ) ;
0 commit comments