github.com/Files-com/files-sdk-go/v2@v2.1.2/file/fixtures/TestClient_Downloader_Delete_Source.yaml (about)

     1  ---
     2  version: 1
     3  interactions:
     4  - request:
     5      body: '{"-":"test-delete-source"}'
     6      form: {}
     7      headers:
     8        Connection:
     9        - close
    10        User-Agent:
    11        - Files.com Go SDK 2.0.0-beta
    12      url: https://app.files.com/api/rest/v1/folders/test-delete-source
    13      method: POST
    14    response:
    15      body: '{"error":"The destination exists.","http-code":422,"instance":"636eeb65-1e9c-472c-adf9-57a790944b05","title":"Destination
    16        Exists","type":"processing-failure/destination-exists"}'
    17      headers:
    18        Cache-Control:
    19        - no-cache, no-store, max-age=0, must-revalidate
    20        Content-Length:
    21        - "177"
    22        Content-Type:
    23        - application/json
    24        Date:
    25        - Wed, 26 Oct 2022 16:26:16 GMT
    26        Expires:
    27        - Fri, 01 Jan 1990 00:00:00 GMT
    28        Pragma:
    29        - no-cache
    30        Server:
    31        - nginx
    32        X-Request-Id:
    33        - 636eeb65-1e9c-472c-adf9-57a790944b05
    34        - 22c80f0910aef12d9d57246bcc874d10
    35      status: 422 Unprocessable Entity
    36      code: 422
    37      duration: ""
    38  - request:
    39      body: '{"-":"test-delete-source/test.text","mkdir_parents":true,"size":9}'
    40      form: {}
    41      headers:
    42        Connection:
    43        - close
    44        User-Agent:
    45        - Files.com Go SDK 2.0.0-beta
    46      url: https://app.files.com/api/rest/v1/file_actions/begin_upload/test-delete-source/test.text
    47      method: POST
    48    response:
    49      body: '[{"send":{"partsize":"required-header Content-Length","partdata":"body"},"action":"put/write","ask_about_overwrites":false,"available_parts":10000,"expires":"2022-10-26T16:41:16Z","headers":{},"http_method":"PUT","next_partsize":6291456,"parallel_parts":true,"parameters":{},"part_number":1,"partsize":5242880,"ref":"put-2831723409","upload_uri":"https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20221026T162616Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026partNumber=1\u0026response-content-type=application%2Foctet-stream\u0026uploadId=gzPw98QlqQqCeDs5kOVgZIwK5ctZko28FxCjC_cqLKrolqwjxrkbR6lJuxNjZS1GfqcFVh9nY3mo5aM.IHhN1DcM0bjKoYJGYJqNrSPyxfplcTnYZVEfLeFSKoGZ1PkI\u0026X-Amz-Signature=5334a8694355ba720a4181ce436ca36f68c8a537ec534587e1f690d09ec20977"}]'
    50      headers:
    51        Cache-Control:
    52        - no-cache, no-store, max-age=0, must-revalidate
    53        Content-Type:
    54        - application/json
    55        Date:
    56        - Wed, 26 Oct 2022 16:26:16 GMT
    57        Expires:
    58        - Fri, 01 Jan 1990 00:00:00 GMT
    59        Pragma:
    60        - no-cache
    61        Server:
    62        - nginx
    63        X-Request-Id:
    64        - 88b4afe2-0353-4314-a798-8977e07474e1
    65        - 60ef53d81441df46aaea6e59f3010f46
    66      status: 200 OK
    67      code: 200
    68      duration: ""
    69  - request:
    70      body: testing 3
    71      form: {}
    72      headers:
    73        Connection:
    74        - close
    75        Content-Length:
    76        - "9"
    77      url: https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T162616Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&partNumber=1&response-content-type=application%2Foctet-stream&uploadId=gzPw98QlqQqCeDs5kOVgZIwK5ctZko28FxCjC_cqLKrolqwjxrkbR6lJuxNjZS1GfqcFVh9nY3mo5aM.IHhN1DcM0bjKoYJGYJqNrSPyxfplcTnYZVEfLeFSKoGZ1PkI&X-Amz-Signature=5334a8694355ba720a4181ce436ca36f68c8a537ec534587e1f690d09ec20977
    78      method: PUT
    79    response:
    80      body: ""
    81      headers:
    82        Content-Length:
    83        - "0"
    84        Date:
    85        - Wed, 26 Oct 2022 16:26:18 GMT
    86        Etag:
    87        - '"15e081c59a53cf6aadd83c7dc0e831d3"'
    88        Server:
    89        - AmazonS3
    90        X-Amz-Id-2:
    91        - GE20te2j3kW45SZz8zXG102Gd9nVdla+WBnHmDHG0yu5vstNCie6gPTZ/dcQzbWjWwDmb/LfqoU=
    92        X-Amz-Request-Id:
    93        - 0A2FGQCJ59APM0SJ
    94        X-Amz-Server-Side-Encryption:
    95        - AES256
    96      status: 200 OK
    97      code: 200
    98      duration: ""
    99  - request:
   100      body: '{"-":"test-delete-source/test.text","action":"end","etags":[{"etag":"15e081c59a53cf6aadd83c7dc0e831d3","part":"1"}],"mkdir_parents":true,"provided_mtime":"2010-11-17T20:34:58.651387237Z","ref":"put-2831723409","size":9}'
   101      form: {}
   102      headers:
   103        Connection:
   104        - close
   105        User-Agent:
   106        - Files.com Go SDK 2.0.0-beta
   107      url: https://app.files.com/api/rest/v1/files/test-delete-source/test.text
   108      method: POST
   109    response:
   110      body: '{"path":"test-delete-source/test.text","display_name":"test.text","type":"file","size":9,"created_at":"2022-10-26T16:26:17Z","mtime":"2022-10-26T16:26:17Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":null,"md5":null,"mime_type":"application/octet-stream","region":"us-east-1","permissions":"lrwd"}'
   111      headers:
   112        Cache-Control:
   113        - no-cache, no-store, max-age=0, must-revalidate
   114        Content-Type:
   115        - application/json
   116        Date:
   117        - Wed, 26 Oct 2022 16:26:17 GMT
   118        Expires:
   119        - Fri, 01 Jan 1990 00:00:00 GMT
   120        Pragma:
   121        - no-cache
   122        Server:
   123        - nginx
   124        X-Request-Id:
   125        - 12e078d0-0506-4f44-9051-b6b96d8836b5
   126        - 9733a1d88a741912befe8d03c4a2986a
   127      status: 200 OK
   128      code: 200
   129      duration: ""
   130  - request:
   131      body: ""
   132      form: {}
   133      headers:
   134        Connection:
   135        - close
   136        User-Agent:
   137        - Files.com Go SDK 2.0.0-beta
   138      url: https://app.files.com/api/rest/v1/file_actions/metadata/test-delete-source
   139      method: GET
   140    response:
   141      body: '{"path":"test-delete-source","display_name":"test-delete-source","type":"directory","size":null,"created_at":"2022-07-16T23:37:29Z","mtime":"2022-10-26T16:26:17Z","provided_mtime":null,"crc32":null,"md5":null,"permissions":"lrwd","subfolders_locked?":false,"is_locked":false}'
   142      headers:
   143        Cache-Control:
   144        - no-cache, no-store, max-age=0, must-revalidate
   145        Content-Type:
   146        - application/json
   147        Date:
   148        - Wed, 26 Oct 2022 16:26:18 GMT
   149        Expires:
   150        - Fri, 01 Jan 1990 00:00:00 GMT
   151        Pragma:
   152        - no-cache
   153        Server:
   154        - nginx
   155        X-Request-Id:
   156        - c4dd2e2d-05a4-4546-9576-4090d4c51175
   157        - 276a7e8f1035bff61f6691a09818f556
   158      status: 200 OK
   159      code: 200
   160      duration: ""
   161  - request:
   162      body: ""
   163      form: {}
   164      headers:
   165        Connection:
   166        - close
   167        User-Agent:
   168        - Files.com Go SDK 2.0.0-beta
   169      url: https://app.files.com/api/rest/v1/folders/test-delete-source?page=1
   170      method: GET
   171    response:
   172      body: '[{"path":"test-delete-source/test.text","display_name":"test.text","type":"file","size":9,"created_at":"2022-10-26T16:26:17Z","mtime":"2022-10-26T16:26:17Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":"b669a0d4","md5":"15e081c59a53cf6aadd83c7dc0e831d3","mime_type":"application/octet-stream","region":"us-east-1","permissions":"lrwd"}]'
   173      headers:
   174        Cache-Control:
   175        - no-cache, no-store, max-age=0, must-revalidate
   176        Content-Type:
   177        - application/json
   178        Date:
   179        - Wed, 26 Oct 2022 16:26:18 GMT
   180        Expires:
   181        - Fri, 01 Jan 1990 00:00:00 GMT
   182        Pragma:
   183        - no-cache
   184        Server:
   185        - nginx
   186        X-Request-Id:
   187        - 1b42e91d-3460-4eee-aefd-761d39fee55e
   188        - 8c06df5675b67f57f070db76e9738fc6
   189      status: 200 OK
   190      code: 200
   191      duration: ""
   192  - request:
   193      body: ""
   194      form: {}
   195      headers:
   196        Connection:
   197        - close
   198        User-Agent:
   199        - Files.com Go SDK 2.0.0-beta
   200      url: https://app.files.com/api/rest/v1/files/test-delete-source/test.text
   201      method: GET
   202    response:
   203      body: '{"path":"test-delete-source/test.text","display_name":"test.text","type":"file","size":9,"created_at":"2022-10-26T16:26:17Z","mtime":"2022-10-26T16:26:17Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":"b669a0d4","md5":"15e081c59a53cf6aadd83c7dc0e831d3","mime_type":"application/octet-stream","region":"us-east-1","permissions":"lrwd","download_uri":"https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20221026T162618Z\u0026X-Amz-Expires=60\u0026X-Amz-SignedHeaders=host\u0026response-cache-control=no-cache%2C%20no-store\u0026response-content-disposition=attachment%3B%20filename%3D%22test.text%22\u0026response-content-type=application%2Foctet-stream\u0026X-Amz-Signature=2a46cd499584b9752245c01cf269b91f6c407cd1288cdd3fd6a3624194963a54"}'
   204      headers:
   205        Cache-Control:
   206        - no-cache, no-store, max-age=0, must-revalidate
   207        Content-Type:
   208        - application/json
   209        Date:
   210        - Wed, 26 Oct 2022 16:26:18 GMT
   211        Expires:
   212        - Fri, 01 Jan 1990 00:00:00 GMT
   213        Pragma:
   214        - no-cache
   215        Server:
   216        - nginx
   217        X-Request-Id:
   218        - c03a754c-f41a-4380-8994-04c047bcf681
   219        - 76b404d634924690c5dd31e2f487857e
   220      status: 200 OK
   221      code: 200
   222      duration: ""
   223  - request:
   224      body: ""
   225      form: {}
   226      headers: {}
   227      url: https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T162618Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&response-cache-control=no-cache%2C%20no-store&response-content-disposition=attachment%3B%20filename%3D%22test.text%22&response-content-type=application%2Foctet-stream&X-Amz-Signature=2a46cd499584b9752245c01cf269b91f6c407cd1288cdd3fd6a3624194963a54
   228      method: GET
   229    response:
   230      body: testing 3
   231      headers:
   232        Accept-Ranges:
   233        - bytes
   234        Cache-Control:
   235        - no-cache, no-store
   236        Content-Disposition:
   237        - attachment; filename="test.text"
   238        Content-Length:
   239        - "9"
   240        Content-Type:
   241        - application/octet-stream
   242        Date:
   243        - Wed, 26 Oct 2022 16:26:20 GMT
   244        Etag:
   245        - '"1f10b9f0c89ab4910091c8cb836b2b21-1"'
   246        Last-Modified:
   247        - Wed, 26 Oct 2022 16:26:17 GMT
   248        Server:
   249        - AmazonS3
   250        X-Amz-Id-2:
   251        - aYJ/5q9iC29RgIUTuFUs0espTlsh6pnFbtf7e+y0dGnqK/aaciS1+YlKvExUrasgLmZgic+fQ0Y=
   252        X-Amz-Meta-X-Amz-Meta-Gid:
   253        - "65534"
   254        X-Amz-Meta-X-Amz-Meta-Mode:
   255        - "33188"
   256        X-Amz-Meta-X-Amz-Meta-Uid:
   257        - "65534"
   258        X-Amz-Request-Id:
   259        - ENN67PZQ76AECFP2
   260        X-Amz-Server-Side-Encryption:
   261        - AES256
   262        X-Amz-Version-Id:
   263        - "null"
   264      status: 200 OK
   265      code: 200
   266      duration: ""
   267  - request:
   268      body: ""
   269      form: {}
   270      headers:
   271        Connection:
   272        - close
   273        User-Agent:
   274        - Files.com Go SDK 2.0.0-beta
   275      url: https://app.files.com/api/rest/v1/files/test-delete-source/test.text
   276      method: GET
   277    response:
   278      body: '{"path":"test-delete-source/test.text","display_name":"test.text","type":"file","size":9,"created_at":"2022-10-26T16:26:17Z","mtime":"2022-10-26T16:26:17Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":"b669a0d4","md5":"15e081c59a53cf6aadd83c7dc0e831d3","mime_type":"application/octet-stream","region":"us-east-1","permissions":"lrwd","download_uri":"https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20221026T162619Z\u0026X-Amz-Expires=60\u0026X-Amz-SignedHeaders=host\u0026response-cache-control=no-cache%2C%20no-store\u0026response-content-disposition=attachment%3B%20filename%3D%22test.text%22\u0026response-content-type=application%2Foctet-stream\u0026X-Amz-Signature=45cb6139a787407657a3ef16dcdfa2b4a38bfe49b9d2b67c2e8d2470c9fb3171"}'
   279      headers:
   280        Cache-Control:
   281        - no-cache, no-store, max-age=0, must-revalidate
   282        Content-Type:
   283        - application/json
   284        Date:
   285        - Wed, 26 Oct 2022 16:26:19 GMT
   286        Expires:
   287        - Fri, 01 Jan 1990 00:00:00 GMT
   288        Pragma:
   289        - no-cache
   290        Server:
   291        - nginx
   292        X-Request-Id:
   293        - 3d8d0b4f-5d3a-436a-8995-1d9aa241d90b
   294        - 214417b5a431c1bf9c37dc5f46e27971
   295      status: 200 OK
   296      code: 200
   297      duration: ""
   298  - request:
   299      body: ""
   300      form: {}
   301      headers: {}
   302      url: https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/f25ad3be-68e6-404f-9f0e-21fcd291390c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T162619Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&response-cache-control=no-cache%2C%20no-store&response-content-disposition=attachment%3B%20filename%3D%22test.text%22&response-content-type=application%2Foctet-stream&X-Amz-Signature=45cb6139a787407657a3ef16dcdfa2b4a38bfe49b9d2b67c2e8d2470c9fb3171
   303      method: GET
   304    response:
   305      body: testing 3
   306      headers:
   307        Accept-Ranges:
   308        - bytes
   309        Cache-Control:
   310        - no-cache, no-store
   311        Content-Disposition:
   312        - attachment; filename="test.text"
   313        Content-Length:
   314        - "9"
   315        Content-Type:
   316        - application/octet-stream
   317        Date:
   318        - Wed, 26 Oct 2022 16:26:20 GMT
   319        Etag:
   320        - '"1f10b9f0c89ab4910091c8cb836b2b21-1"'
   321        Last-Modified:
   322        - Wed, 26 Oct 2022 16:26:17 GMT
   323        Server:
   324        - AmazonS3
   325        X-Amz-Id-2:
   326        - K6pU6E3ABcIrUcWzj/EKfRygZeZBPzdjIVuR4RQ9OhpEuJqv6HXuxgIVI+e8qEi6anLS8lvL5EQ=
   327        X-Amz-Meta-X-Amz-Meta-Gid:
   328        - "65534"
   329        X-Amz-Meta-X-Amz-Meta-Mode:
   330        - "33188"
   331        X-Amz-Meta-X-Amz-Meta-Uid:
   332        - "65534"
   333        X-Amz-Request-Id:
   334        - ENN27Y13QSSHVMR9
   335        X-Amz-Server-Side-Encryption:
   336        - AES256
   337        X-Amz-Version-Id:
   338        - "null"
   339      status: 200 OK
   340      code: 200
   341      duration: ""
   342  - request:
   343      body: ""
   344      form: {}
   345      headers:
   346        Connection:
   347        - close
   348        User-Agent:
   349        - Files.com Go SDK 2.0.0-beta
   350      url: https://app.files.com/api/rest/v1/files/test-delete-source/test.text
   351      method: DELETE
   352    response:
   353      body: ""
   354      headers:
   355        Cache-Control:
   356        - no-cache, no-store, max-age=0, must-revalidate
   357        Date:
   358        - Wed, 26 Oct 2022 16:26:20 GMT
   359        Expires:
   360        - Fri, 01 Jan 1990 00:00:00 GMT
   361        Pragma:
   362        - no-cache
   363        Server:
   364        - nginx
   365        X-Request-Id:
   366        - 7d3d6c3e-2f0d-4396-8826-3acc48375d44
   367        - 142e6b0b94e947c38ccbbf2eb4038c1e
   368      status: 204 No Content
   369      code: 204
   370      duration: ""
   371  - request:
   372      body: ""
   373      form: {}
   374      headers:
   375        Connection:
   376        - close
   377        User-Agent:
   378        - Files.com Go SDK 2.0.0-beta
   379      url: https://app.files.com/api/rest/v1/file_actions/metadata/test-delete-source/test.text
   380      method: GET
   381    response:
   382      body: '{"error":"Not Found","http-code":404,"instance":"7c77dbf7-120c-4cdb-ad54-01e8373718d4","title":"Not
   383        Found","type":"not-found"}'
   384      headers:
   385        Cache-Control:
   386        - no-cache, no-store, max-age=0, must-revalidate
   387        Content-Type:
   388        - application/json
   389        Date:
   390        - Wed, 26 Oct 2022 16:26:20 GMT
   391        Expires:
   392        - Fri, 01 Jan 1990 00:00:00 GMT
   393        Pragma:
   394        - no-cache
   395        Server:
   396        - nginx
   397        X-Request-Id:
   398        - 7c77dbf7-120c-4cdb-ad54-01e8373718d4
   399        - 56bf0a0ae0d091dfb64ab8fb72caa588
   400      status: 404 Not Found
   401      code: 404
   402      duration: ""