File: test_entity_webpushsubscription.yaml

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (82 lines) | stat: -rw-r--r-- 2,387 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
interactions:
- request:
    body: subscription%5Bendpoint%5D=http%3A%2F%2Fhalcy.de&subscription%5Bkeys%5D%5Bp256dh%5D=BKFEnV%2B1zW6wAzwZtaRARSPYoyludRTz6p6rgHXl1WmXThexJbljHNP6VRD2pX9LsKHzRCZWEvY1XBjAnBPgRSg%3D&subscription%5Bkeys%5D%5Bauth%5D=aiSLX7vwBZboO4oJz34FHQ%3D%3D&policy=all&data%5Balerts%5D%5Bfollow%5D=1
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      Content-Length:
      - '280'
      Content-Type:
      - application/x-www-form-urlencoded
      User-Agent:
      - mastodonpy
    method: POST
    uri: https://mastodon.social/api/v1/push/subscription
  response:
    body:
      string: '{"id": 26400487, "endpoint": "http://halcy.de", "standard": false,
        "alerts": {"follow": true}, "server_key": "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
        "policy": "all"}'
    headers:
      Connection:
      - keep-alive
      Date:
      - Fri, 15 Aug 2025 20:31:44 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Authorization, Origin, Accept-Encoding
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-eddf8230099-FRA, cache-fra-eddf8230086-FRA, cache-hel1410031-HEL
      X-Timer:
      - S1755289904.096683,VS0,VE128
      accept-ranges:
      - none
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - private, no-store
      content-length:
      - '205'
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"20e9b3765fd58388f1d2c9aeb7d2d2dd"
      referrer-policy:
      - same-origin
      transfer-encoding:
      - chunked
      via:
      - 1.1 varnish, 1.1 varnish, 1.1 varnish
      x-content-type-options:
      - nosniff
      x-frame-options:
      - DENY
      x-ratelimit-limit:
      - '300'
      x-ratelimit-remaining:
      - '299'
      x-ratelimit-reset:
      - '2025-08-15T20:35:00.155462Z'
      x-request-id:
      - c0c8908d8c9992d8543bf1126a767b07
      x-runtime:
      - '0.045349'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
version: 1