...

Text file src/github.com/Azure/azure-sdk-for-go/storage/recordings/LeaseBlobSuite/TestAcquireLeaseWithBadProposedLeaseID.yaml

Documentation: github.com/Azure/azure-sdk-for-go/storage/recordings/LeaseBlobSuite

     1---
     2version: 1
     3interactions:
     4- request:
     5    body: ""
     6    form: {}
     7    headers:
     8      Authorization:
     9      - SharedKey golangrocksonazure:dt8gHHnYuyvMID1D1QBCUHxlLpjOVv3QL2JjFJMObCc=
    10      User-Agent:
    11      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
    12        blob
    13      x-ms-date:
    14      - Tue, 13 Apr 2021 15:57:48 GMT
    15      x-ms-version:
    16      - "2018-03-28"
    17    url: https://golangrocksonazure.blob.core.windows.net/53leaseblobsuitetestacquirelease?restype=container
    18    method: PUT
    19  response:
    20    body: ""
    21    headers:
    22      Content-Length:
    23      - "0"
    24      Date:
    25      - Tue, 13 Apr 2021 15:57:46 GMT
    26      Etag:
    27      - '"0x8D8FE94E248E00A"'
    28      Last-Modified:
    29      - Tue, 13 Apr 2021 15:57:47 GMT
    30      Server:
    31      - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
    32      X-Ms-Request-Id:
    33      - 2c9dcb1e-801e-004c-4e7d-300fdd000000
    34      X-Ms-Version:
    35      - "2018-03-28"
    36    status: 201 Created
    37    code: 201
    38    duration: ""
    39- request:
    40    body: Hello!
    41    form: {}
    42    headers:
    43      Authorization:
    44      - SharedKey golangrocksonazure:hsc5iFvRvu2f8eqsLAVbtOYL7+XSRQh1DAchiM/VHGA=
    45      Content-Length:
    46      - "6"
    47      User-Agent:
    48      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
    49        blob
    50      x-ms-blob-type:
    51      - BlockBlob
    52      x-ms-date:
    53      - Tue, 13 Apr 2021 15:57:48 GMT
    54      x-ms-version:
    55      - "2018-03-28"
    56    url: https://golangrocksonazure.blob.core.windows.net/53leaseblobsuitetestacquirelease/blob/53leaseblobsuitetestacquireleasewithbadproposedleaseid
    57    method: PUT
    58  response:
    59    body: ""
    60    headers:
    61      Content-Length:
    62      - "0"
    63      Content-Md5:
    64      - lS0sVtBIWVgzZ0e83ZhZDQ==
    65      Date:
    66      - Tue, 13 Apr 2021 15:57:46 GMT
    67      Etag:
    68      - '"0x8D8FE94E2556B17"'
    69      Last-Modified:
    70      - Tue, 13 Apr 2021 15:57:47 GMT
    71      Server:
    72      - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
    73      X-Ms-Request-Id:
    74      - 2c9dcb23-801e-004c-527d-300fdd000000
    75      X-Ms-Request-Server-Encrypted:
    76      - "true"
    77      X-Ms-Version:
    78      - "2018-03-28"
    79    status: 201 Created
    80    code: 201
    81    duration: ""
    82- request:
    83    body: ""
    84    form: {}
    85    headers:
    86      Authorization:
    87      - SharedKey golangrocksonazure:nJY9qpdJm/kd3BB52o8YMI/GlK4gqZUqQXNztWyMoyg=
    88      User-Agent:
    89      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
    90        blob
    91      x-ms-date:
    92      - Tue, 13 Apr 2021 15:57:48 GMT
    93      x-ms-lease-action:
    94      - acquire
    95      x-ms-lease-duration:
    96      - "30"
    97      x-ms-proposed-lease-id:
    98      - badbadbad
    99      x-ms-version:
   100      - "2018-03-28"
   101    url: https://golangrocksonazure.blob.core.windows.net/53leaseblobsuitetestacquirelease/blob/53leaseblobsuitetestacquireleasewithbadproposedleaseid?comp=lease
   102    method: PUT
   103  response:
   104    body: "\uFEFF\x3C\x3F\x78\x6D\x6C\x20\x76\x65\x72\x73\x69\x6F\x6E\x3D\"\x31\x2E\x30\"\x20\x65\x6E\x63\x6F\x64\x69\x6E\x67\x3D\"\x75\x74\x66\x2D\x38\"\x3F\x3E\x3C\x45\x72\x72\x6F\x72\x3E\x3C\x43\x6F\x64\x65\x3E\x49\x6E\x76\x61\x6C\x69\x64\x48\x65\x61\x64\x65\x72\x56\x61\x6C\x75\x65\x3C\x2F\x43\x6F\x64\x65\x3E\x3C\x4D\x65\x73\x73\x61\x67\x65\x3E\x54\x68\x65\x20\x76\x61\x6C\x75\x65\x20\x66\x6F\x72\x20\x6F\x6E\x65\x20\x6F\x66\x20\x74\x68\x65\x20\x48\x54\x54\x50\x20\x68\x65\x61\x64\x65\x72\x73\x20\x69\x73\x20\x6E\x6F\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x63\x6F\x72\x72\x65\x63\x74\x20\x66\x6F\x72\x6D\x61\x74\x2E\n\x52\x65\x71\x75\x65\x73\x74\x49\x64\x3A\x32\x63\x39\x64\x63\x62\x33\x62\x2D\x38\x30\x31\x65\x2D\x30\x30\x34\x63\x2D\x36\x61\x37\x64\x2D\x33\x30\x30\x66\x64\x64\x30\x30\x30\x30\x30\x30\n\x54\x69\x6D\x65\x3A\x32\x30\x32\x31\x2D\x30\x34\x2D\x31\x33\x54\x31\x35\x3A\x35\x37\x3A\x34\x37\x2E\x39\x30\x30\x37\x35\x38\x35\x5A\x3C\x2F\x4D\x65\x73\x73\x61\x67\x65\x3E\x3C\x48\x65\x61\x64\x65\x72\x4E\x61\x6D\x65\x3E\x78\x2D\x6D\x73\x2D\x70\x72\x6F\x70\x6F\x73\x65\x64\x2D\x6C\x65\x61\x73\x65\x2D\x69\x64\x3C\x2F\x48\x65\x61\x64\x65\x72\x4E\x61\x6D\x65\x3E\x3C\x48\x65\x61\x64\x65\x72\x56\x61\x6C\x75\x65\x3E\x62\x61\x64\x62\x61\x64\x62\x61\x64\x3C\x2F\x48\x65\x61\x64\x65\x72\x56\x61\x6C\x75\x65\x3E\x3C\x2F\x45\x72\x72\x6F\x72\x3E"
   105    headers:
   106      Content-Length:
   107      - "337"
   108      Content-Type:
   109      - application/xml
   110      Date:
   111      - Tue, 13 Apr 2021 15:57:46 GMT
   112      Server:
   113      - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
   114      X-Ms-Error-Code:
   115      - InvalidHeaderValue
   116      X-Ms-Request-Id:
   117      - 2c9dcb3b-801e-004c-6a7d-300fdd000000
   118      X-Ms-Version:
   119      - "2018-03-28"
   120    status: 400 The value for one of the HTTP headers is not in the correct format.
   121    code: 400
   122    duration: ""
   123- request:
   124    body: ""
   125    form: {}
   126    headers:
   127      Authorization:
   128      - SharedKey golangrocksonazure:EUeBO2cHJgLLmBDHMu1DP2xp5jtt3EGP7kdCWolNFOc=
   129      User-Agent:
   130      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   131        blob
   132      x-ms-date:
   133      - Tue, 13 Apr 2021 15:57:48 GMT
   134      x-ms-version:
   135      - "2018-03-28"
   136    url: https://golangrocksonazure.blob.core.windows.net/53leaseblobsuitetestacquirelease?restype=container
   137    method: DELETE
   138  response:
   139    body: ""
   140    headers:
   141      Content-Length:
   142      - "0"
   143      Date:
   144      - Tue, 13 Apr 2021 15:57:46 GMT
   145      Server:
   146      - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
   147      X-Ms-Request-Id:
   148      - 2c9dcb41-801e-004c-6f7d-300fdd000000
   149      X-Ms-Version:
   150      - "2018-03-28"
   151    status: 202 Accepted
   152    code: 202
   153    duration: ""

View as plain text