File: test_queue_encryption.test_validate_encryption.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 (80 lines) | stat: -rw-r--r-- 4,265 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
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: [a34d855e-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:17:33 GMT']
      x-ms-version: ['2018-03-28']
    method: PUT
    uri: https://storagename.queue.core.windows.net/encryptionqueuec34e1330
  response:
    body: {string: ''}
    headers:
      Date: ['Fri, 09 Nov 2018 23:17:33 GMT']
      Server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [23b061d2-f003-0030-4c82-789501000000]
      x-ms-version: ['2018-03-28']
    status: {code: 201, message: Created}
- request:
    body: '<?xml version=''1.0'' encoding=''utf-8''?>

      <QueueMessage><MessageText>{"EncryptedMessageContents": "I01mRw12gESk25qGAa6D3Q==",
      "EncryptionData": {"WrappedContentKey": {"KeyId": "key1", "EncryptedKey": "ugjkOcnlUEL92OgzfnCOMpTx1IC6b0szSWVrVpyzJ46VQGYP6ciTbw==",
      "Algorithm": "A256KW"}, "EncryptionAgent": {"Protocol": "1.0", "EncryptionAlgorithm":
      "AES_CBC_256"}, "ContentEncryptionIV": "zUhO/v8Ipspe6Hxc9c+DXQ==", "KeyWrappingMetadata":
      {"EncryptionLibrary": "Python 1.4.0"}}}</MessageText></QueueMessage>'
    headers:
      Connection: [keep-alive]
      Content-Length: ['501']
      User-Agent: [Azure-Storage/1.4.0-1.4.0 (Python CPython 3.7.0; Darwin 18.2.0)]
      x-ms-client-request-id: [a36e1b84-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:17:33 GMT']
      x-ms-version: ['2018-03-28']
    method: POST
    uri: https://storagename.queue.core.windows.net/encryptionqueuec34e1330/messages
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><QueueMessagesList><QueueMessage><MessageId>34a53c2e-6cd1-4bc8-a447-9e7a90f43ea7</MessageId><InsertionTime>Fri,\
        \ 09 Nov 2018 23:17:33 GMT</InsertionTime><ExpirationTime>Fri, 16 Nov 2018\
        \ 23:17:33 GMT</ExpirationTime><PopReceipt>AgAAAAMAAAAAAAAAk/IqZYJ41AE=</PopReceipt><TimeNextVisible>Fri,\
        \ 09 Nov 2018 23:17:33 GMT</TimeNextVisible></QueueMessage></QueueMessagesList>"}
    headers:
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:17:33 GMT']
      Server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [23b061de-f003-0030-5582-789501000000]
      x-ms-version: ['2018-03-28']
    status: {code: 201, message: Created}
- 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: [a7d5c848-e475-11e8-9ac5-acde48001122]
      x-ms-date: ['Fri, 09 Nov 2018 23:17:41 GMT']
      x-ms-version: ['2018-03-28']
    method: GET
    uri: https://storagename.queue.core.windows.net/encryptionqueuec34e1330/messages?peekonly=true
  response:
    body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><QueueMessagesList><QueueMessage><MessageId>34a53c2e-6cd1-4bc8-a447-9e7a90f43ea7</MessageId><InsertionTime>Fri,\
        \ 09 Nov 2018 23:17:33 GMT</InsertionTime><ExpirationTime>Fri, 16 Nov 2018\
        \ 23:17:33 GMT</ExpirationTime><DequeueCount>0</DequeueCount><MessageText>{\"\
        EncryptedMessageContents\": \"I01mRw12gESk25qGAa6D3Q==\", \"EncryptionData\"\
        : {\"WrappedContentKey\": {\"KeyId\": \"key1\", \"EncryptedKey\": \"ugjkOcnlUEL92OgzfnCOMpTx1IC6b0szSWVrVpyzJ46VQGYP6ciTbw==\"\
        , \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\"\
        , \"EncryptionAlgorithm\": \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"zUhO/v8Ipspe6Hxc9c+DXQ==\"\
        , \"KeyWrappingMetadata\": {\"EncryptionLibrary\": \"Python 1.4.0\"}}}</MessageText></QueueMessage></QueueMessagesList>"}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/xml]
      Date: ['Fri, 09 Nov 2018 23:17:40 GMT']
      Server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      x-ms-request-id: [23b0643a-f003-0030-5582-789501000000]
      x-ms-version: ['2018-03-28']
    status: {code: 200, message: OK}
version: 1