File: test_common_blob.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,452 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: [e6f6d70c-61c4-4447-84a1-5ae2dfe9e939]
      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":"1541808404","not_before":"1541804504","resource":"https://storage.azure.com","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IndVTG1ZZnNxZFF1V3RWXy1oeFZ0REpKWk00USIsImtpZCI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ddjxIQae79FmZVBw1_NQ"}'}
    headers:
      Cache-Control: ['no-cache, no-store']
      Content-Length: ['1350']
      Content-Type: [application/json; charset=utf-8]
      Date: ['Fri, 09 Nov 2018 23:06:43 GMT']
      Expires: ['-1']
      P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
      Pragma: [no-cache]
      Set-Cookie: ['fpc=AV0EOuOP_V5MsbBaxt-Lp2reSEc1AQDFmVgEmEbWCA; expires=Sun, 09-Dec-2018
          23:06:44 GMT; path=/; secure; HttpOnly', x-ms-gateway-slice=006; path=/;
          secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
      X-Content-Type-Options: [nosniff]
      client-request-id: [e6f6d70c-61c4-4447-84a1-5ae2dfe9e939]
      x-ms-clitelem: ['1,0,0,,']
      x-ms-request-id: [a958d65c-c7ce-4f18-a3df-f166c4223200]
    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: [203c3396-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:06:44 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.blob.core.windows.net/test?restype=container
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ContainerNotFound</Code><Message>The\
        \ specified container does not exist.\nRequestId:505d7704-701e-0041-3b80-78cadf000000\n\
        Time:2018-11-09T23:06:45.2645439Z</Message></Error>"}
    headers:
      Content-Length: ['225']
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:06:44 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      x-ms-error-code: [ContainerNotFound]
      x-ms-request-id: [505d7704-701e-0041-3b80-78cadf000000]
      x-ms-version: ['2018-03-28']
    status: {code: 404, message: The specified container does not exist.}
- 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: [20e2a032-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:06:45 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.blob.core.windows.net/test?restype=container
  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:505d7711-701e-0041-4580-78cadf000000\nTime:2018-11-09T23:06:45.4480454Z</Message></Error>"}
    headers:
      Content-Length: ['297']
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:06:44 GMT']
      Server: [Microsoft-HTTPAPI/2.0]
      x-ms-error-code: [InvalidAuthenticationInfo]
      x-ms-request-id: [505d7711-701e-0041-4580-78cadf000000]
    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: [0025e1b1-11dd-43e3-abcc-3a273d73f788]
      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":"1541808405","not_before":"1541804505","resource":"https://storage.azure.com","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IndVTG1ZZnNxZFF1V3RWXy1oeFZ0REpKWk00USIsImtpZCI6IndVTG1ZZnNxZFF1V3RWXy1oeFZ0REpKWk00USJ9.eyJhdWQiOiJodHRwczovL3N0b3JhZ2UuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3LyIsImlhdCI6MTU0MTgwNDUwNSwibmJmIjoxNTQxODA0NTA1LCJleHAiOjE1NDE4MDg0MDUsImFpbyI6IjQyUmdZSWpaSk82anl5THUzbmNrMisvSTkySUxBQT09IiwiYXBwaWQiOiI2ODM5MGExOS1hNjQzLTQ1OGItYjcyNi00MDhhYmY2N2I0ZmMiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwib2lkIjoiYzRmNDgyODktYmI4NC00MDg2LWIyNTAtNmY5NGE4ZjY0Y2VlIiwic3ViIjoiYzRmNDgyODktYmI4NC00MDg2LWIyNTAtNmY5NGE4ZjY0Y2VlIiwidGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3IiwidXRpIjoieVljVFlPUG9yVWV2MXRlbHJmWXlBQSIsInZlciI6IjEuMCJ9.GI9rMo2gZphQxjg_idgvfG1bv_KUtFEe4pAIIG5GAzclFvHcSvH6IhJSOrRS47yrJ3hVq8B6VqGS8Dhje5mFZm2i23pNVV4s7y68ruTrRWN882BOL0cUZ_lC5YN2abUnf43zPbCDGwfDNprlxCnDm3xjeyjj-0ehjqtlPFp9-xL8r5qPjq0vWblxuepKJI7yoVsyRS8g10ZhL3ibn6RBTqHzfl2jvlS_ehIT9Y6cMIoBlCAJ3e4ei6wd90JfTmxE80bVca0GaDofnQSuaSSRdZaaNya8xqaGq9lgClEhQNassiPB2NOpqCLMQGgEcLF4kE3bAZBTicEL9Z5vcRcUJg"}'}
    headers:
      Cache-Control: ['no-cache, no-store']
      Content-Length: ['1350']
      Content-Type: [application/json; charset=utf-8]
      Date: ['Fri, 09 Nov 2018 23:06:45 GMT']
      Expires: ['-1']
      P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
      Pragma: [no-cache]
      Set-Cookie: ['fpc=ASj1jymhyOhAjq3Cdsb6iAfeSEc1AQB5mDgFmEbWCA; expires=Sun, 09-Dec-2018
          23:06:45 GMT; path=/; secure; HttpOnly', x-ms-gateway-slice=018; path=/;
          secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
      X-Content-Type-Options: [nosniff]
      client-request-id: [0025e1b1-11dd-43e3-abcc-3a273d73f788]
      x-ms-clitelem: ['1,0,0,,']
      x-ms-request-id: [601387c9-e8e3-47ad-afd6-d7a5adf63200]
    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: [21190974-e474-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:06:45 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://oauthstoragename.blob.core.windows.net/test?restype=container
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ContainerNotFound</Code><Message>The\
        \ specified container does not exist.\nRequestId:505d7718-701e-0041-4a80-78cadf000000\n\
        Time:2018-11-09T23:06:45.7905492Z</Message></Error>"}
    headers:
      Content-Length: ['225']
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:06:44 GMT']
      Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
      x-ms-error-code: [ContainerNotFound]
      x-ms-request-id: [505d7718-701e-0041-4a80-78cadf000000]
      x-ms-version: ['2018-03-28']
    status: {code: 404, message: The specified container does not exist.}
version: 1