File: test_entity_accountcreationerror.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 (168 lines) | stat: -rw-r--r-- 5,336 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
interactions:
- request:
    body: scope=read+write+follow+push&client_id=DUMMY&client_secret=DUMMY&grant_type=client_credentials
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      Content-Length:
      - '170'
      Content-Type:
      - application/x-www-form-urlencoded
      User-Agent:
      - mastodonpy
    method: POST
    uri: https://mastodon.social/oauth/token
  response:
    body:
      string: '{"access_token": "DUMMY", "token_type": "Bearer", "scope": "read write
        follow push", "created_at": 1687629761}'
    headers:
      Connection:
      - keep-alive
      Date:
      - Fri, 15 Aug 2025 20:19:16 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Accept, Origin, Accept-Encoding
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-etou8220107-FRA, cache-fra-etou8220129-FRA, cache-hel1410028-HEL
      X-Timer:
      - S1755289156.360775,VS0,VE518
      accept-ranges:
      - none
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - no-store
      content-length:
      - '141'
      content-security-policy:
      - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
        ''self'' https://mastodon.social; img-src ''self'' data: blob: https://mastodon.social
        https://files.mastodon.social; media-src ''self'' data: https://mastodon.social
        https://files.mastodon.social; manifest-src ''self'' https://mastodon.social;
        form-action ''self''; child-src ''self'' blob: https://mastodon.social; worker-src
        ''self'' blob: https://mastodon.social; connect-src ''self'' data: blob: https://mastodon.social
        https://files.mastodon.social wss://streaming.mastodon.social; script-src
        ''self'' https://mastodon.social ''wasm-unsafe-eval''; frame-src ''self''
        https:; style-src ''self'' https://mastodon.social ''nonce-/Ea9kn+mrsaoJcyUb+bs0w=='''
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"e45198d725ce26b757f4f73374cc0514"
      pragma:
      - no-cache
      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-request-id:
      - f65e6ae273be0b8a6400b26d310df14b
      x-runtime:
      - '0.347851'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
- request:
    body: username=halcy&password=secret&email=invalid+email+lol&agreement=1&locale=en&return_detailed_error=1&client_id=DUMMY&client_secret=DUMMY
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      Content-Length:
      - '212'
      Content-Type:
      - application/x-www-form-urlencoded
      User-Agent:
      - mastodonpy
    method: POST
    uri: https://mastodon.social/api/v1/accounts
  response:
    body:
      string: '{"error": "Validation failed: E-mail address is invalid, Password is
        too short (minimum is 8 characters), Username has already been taken, E-mail
        address is invalid, E-mail address uses a disallowed e-mail provider, Date
        of birth can''t be blank", "details": {"email": [{"error": "ERR_INVALID",
        "description": "is invalid"}, {"error": "ERR_INVALID", "description": "is
        invalid"}, {"error": "ERR_BLOCKED", "description": "uses a disallowed e-mail
        provider"}], "password": [{"error": "ERR_TOO_SHORT", "description": "is too
        short (minimum is 8 characters)"}], "username": [{"error": "ERR_TAKEN", "description":
        "has already been taken"}], "date_of_birth": [{"error": "ERR_BLANK", "description":
        "can''t be blank"}]}}'
    headers:
      Connection:
      - keep-alive
      Content-Length:
      - '682'
      Date:
      - Fri, 15 Aug 2025 20:19:17 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Authorization, Origin
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-eddf8230068-FRA, cache-fra-eddf8230057-FRA, cache-hel1410020-HEL
      X-Timer:
      - S1755289157.932369,VS0,VE214
      accept-ranges:
      - bytes
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - private, no-store
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      referrer-policy:
      - same-origin
      via:
      - 1.1 varnish, 1.1 varnish, 1.1 varnish
      x-content-type-options:
      - nosniff
      x-frame-options:
      - DENY
      x-ratelimit-limit:
      - '5'
      x-ratelimit-remaining:
      - '4'
      x-ratelimit-reset:
      - '2025-08-15T20:30:00.011937Z'
      x-request-id:
      - 1bf518bfa2b8d48189ad3e8e97070931
      x-runtime:
      - '0.140076'
      x-xss-protection:
      - '0'
    status:
      code: 422
      message: Unknown Error
version: 1