File: test_container.test_lease_container_renew.yaml

package info (click to toggle)
python-azure-storage 20181109%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 76,472 kB
  • sloc: python: 28,724; makefile: 204; sh: 1
file content (119 lines) | stat: -rw-r--r-- 4,915 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
interactions:
- request:
    body: null
    headers:
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [3c0ce476-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:07:30 GMT']
      x-ms-version: ['2018-03-28']
    method: PUT
    uri: https://storagename.blob.core.windows.net/container61c510dc?restype=container
  response:
    body: {string: ''}
    headers:
      Date: ['Fri, 09 Nov 2018 23:07:30 GMT']
      ETag: ['"0x8D64698204FB75A"']
      Last-Modified: ['Fri, 09 Nov 2018 23:07:31 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [dc22e22d-001e-0007-2d80-7839ae000000]
      x-ms-version: ['2018-03-28']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [3c24baec-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:07:31 GMT']
      x-ms-lease-action: [acquire]
      x-ms-lease-duration: ['15']
      x-ms-version: ['2018-03-28']
    method: PUT
    uri: https://storagename.blob.core.windows.net/container61c510dc?restype=container&comp=lease
  response:
    body: {string: ''}
    headers:
      Date: ['Fri, 09 Nov 2018 23:07:30 GMT']
      ETag: ['"0x8D64698204FB75A"']
      Last-Modified: ['Fri, 09 Nov 2018 23:07:31 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-lease-id: [e85ccfc5-d10b-440c-a2f5-c9f75785fe13]
      x-ms-request-id: [dc22e249-001e-0007-4480-7839ae000000]
      x-ms-version: ['2018-03-28']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [4222058a-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:07:41 GMT']
      x-ms-lease-action: [renew]
      x-ms-lease-id: [e85ccfc5-d10b-440c-a2f5-c9f75785fe13]
      x-ms-version: ['2018-03-28']
    method: PUT
    uri: https://storagename.blob.core.windows.net/container61c510dc?restype=container&comp=lease
  response:
    body: {string: ''}
    headers:
      Date: ['Fri, 09 Nov 2018 23:07:40 GMT']
      ETag: ['"0x8D64698204FB75A"']
      Last-Modified: ['Fri, 09 Nov 2018 23:07:31 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-lease-id: [e85ccfc5-d10b-440c-a2f5-c9f75785fe13]
      x-ms-request-id: [dc22ee04-001e-0007-0e81-7839ae000000]
      x-ms-version: ['2018-03-28']
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [4527b856-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:07:46 GMT']
      x-ms-version: ['2018-03-28']
    method: DELETE
    uri: https://storagename.blob.core.windows.net/container61c510dc?restype=container
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>LeaseIdMissing</Code><Message>There\
        \ is currently a lease on the container and no lease ID was specified in the\
        \ request.\nRequestId:dc22f345-001e-0007-1b81-7839ae000000\nTime:2018-11-09T23:07:46.2545087Z</Message></Error>"}
    headers:
      Content-Length: ['272']
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:07:45 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      x-ms-error-code: [LeaseIdMissing]
      x-ms-request-id: [dc22f345-001e-0007-1b81-7839ae000000]
      x-ms-version: ['2018-03-28']
    status: {code: 412, message: There is currently a lease on the container and no
        lease ID was specified in the request.}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [4b2a07f4-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:07:56 GMT']
      x-ms-version: ['2018-03-28']
    method: DELETE
    uri: https://storagename.blob.core.windows.net/container61c510dc?restype=container
  response:
    body: {string: ''}
    headers:
      Date: ['Fri, 09 Nov 2018 23:07:55 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [dc230104-001e-0007-4481-7839ae000000]
      x-ms-version: ['2018-03-28']
    status: {code: 202, message: Accepted}
version: 1