File: test_queue.test_token_credential.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 (145 lines) | stat: -rw-r--r-- 9,233 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
interactions:
- request:
    body: grant_type=client_credentials&client_id=68390a19-a897-236b-b453-488abf67b4fc&resource=https%3A%2F%2Fstorage.azure.com&client_secret=3Usxz7pzkOeE7flc6Z187ubs5%2FcJnszGPjAiXmcwhaY%3D
    headers:
      Accept: ['*/*']
      Accept-Charset: [utf-8]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['180']
      User-Agent: [python-requests/2.19.1]
      client-request-id: [64fe3030-65ef-4897-84de-27b96cba79e3]
      content-type: [application/x-www-form-urlencoded]
      return-client-request-id: ['true']
      x-client-CPU: [x64]
      x-client-OS: [darwin]
      x-client-SKU: [Python]
      x-client-Ver: [1.0.2]
    method: POST
    uri: https://login.microsoftonline.com/32f988bf-54f1-15af-36ab-2d7cd364db47/oauth2/token
  response:
    body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1541808960","not_before":"1541805060","resource":"https://storage.azure.com","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IndVTG1ZZnNxZFF1V3RWXy1oeFZ0REpKWk00USIsImtpZCI6IndVTG1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'}
    headers:
      Cache-Control: ['no-cache, no-store']
      Content-Length: ['1350']
      Content-Type: [application/json; charset=utf-8]
      Date: ['Fri, 09 Nov 2018 23:16:00 GMT']
      Expires: ['-1']
      P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
      Pragma: [no-cache]
      Set-Cookie: ['fpc=AZ5-lQ8Xl_9FqA06oXiKw53eSEc1AQBIivBPmUbWCA; expires=Sun, 09-Dec-2018
          23:16:00 GMT; path=/; secure; HttpOnly', x-ms-gateway-slice=015; path=/;
          secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
      X-Content-Type-Options: [nosniff]
      client-request-id: [64fe3030-65ef-4897-84de-27b96cba79e3]
      x-ms-clitelem: ['1,0,0,,']
      x-ms-request-id: [930b3564-8228-441e-b438-64d30b993300]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [6bcf33fc-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:16:00 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.queue.core.windows.net/?comp=list
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults\
        \ ServiceEndpoint=\"https://oauthstoragename.queue.core.windows.net/\"><Queues\
        \ /><NextMarker /></EnumerationResults>"}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:16:01 GMT']
      Server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [4130d6d9-6003-0000-7082-78923b000000]
      x-ms-version: ['2018-03-28']
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [6c9bafae-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:16:01 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.queue.core.windows.net/?comp=list
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Authentication\
        \ information is not given in the correct format. Check the value of Authorization\
        \ header.\nRequestId:4130d6dc-6003-0000-7182-78923b000000\nTime:2018-11-09T23:16:02.0078796Z</Message></Error>"}
    headers:
      Content-Length: ['297']
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:16:01 GMT']
      Server: [Microsoft-HTTPAPI/2.0]
      x-ms-error-code: [InvalidAuthenticationInfo]
      x-ms-request-id: [4130d6dc-6003-0000-7182-78923b000000]
    status: {code: 400, message: Authentication information is not given in the correct
        format. Check the value of Authorization header.}
- request:
    body: grant_type=client_credentials&client_id=68390a19-a897-236b-b453-488abf67b4fc&resource=https%3A%2F%2Fstorage.azure.com&client_secret=3Usxz7pzkOeE7flc6Z187ubs5%2FcJnszGPjAiXmcwhaY%3D
    headers:
      Accept: ['*/*']
      Accept-Charset: [utf-8]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['180']
      User-Agent: [python-requests/2.19.1]
      client-request-id: [8333d104-7817-4af1-ad44-cc885a667bbb]
      content-type: [application/x-www-form-urlencoded]
      return-client-request-id: ['true']
      x-client-CPU: [x64]
      x-client-OS: [darwin]
      x-client-SKU: [Python]
      x-client-Ver: [1.0.2]
    method: POST
    uri: https://login.microsoftonline.com/32f988bf-54f1-15af-36ab-2d7cd364db47/oauth2/token
  response:
    body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1541808962","not_before":"1541805062","resource":"https://storage.azure.com","access_token":"eyJ0eXAiOiJKV1QiLCJhbG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Jp-XDuxthY_mlYVVN2J0pmwTEIcfbFUG1G1675_QRDLvOaptSDMo7jle2684W2mU3i0DKj0MGUQ"}'}
    headers:
      Cache-Control: ['no-cache, no-store']
      Content-Length: ['1350']
      Content-Type: [application/json; charset=utf-8]
      Date: ['Fri, 09 Nov 2018 23:16:01 GMT']
      Expires: ['-1']
      P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
      Pragma: [no-cache]
      Set-Cookie: ['fpc=AYHwrLRlXUpLs2ZcGSZ-RU7eSEc1AQCc0_VQmUbWCA; expires=Sun, 09-Dec-2018
          23:16:02 GMT; path=/; secure; HttpOnly', x-ms-gateway-slice=017; path=/;
          secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
      X-Content-Type-Options: [nosniff]
      client-request-id: [8333d104-7817-4af1-ad44-cc885a667bbb]
      x-ms-clitelem: ['1,0,0,,']
      x-ms-request-id: [4b4fc5d2-caf9-4fc5-b13c-f1add8f63100]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Connection: [keep-alive]
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [6cd4bb64-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:16:02 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.queue.core.windows.net/?comp=list
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults\
        \ ServiceEndpoint=\"https://oauthstoragename.queue.core.windows.net/\"><Queues\
        \ /><NextMarker /></EnumerationResults>"}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:16:02 GMT']
      Server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [4130d6dd-6003-0000-7282-78923b000000]
      x-ms-version: ['2018-03-28']
    status: {code: 200, message: OK}
version: 1