forked from mtusi2026/mtusi2026lab3
84 lines
4.7 KiB
Plaintext
84 lines
4.7 KiB
Plaintext
== рєЄхэЄшЇшърЎш ==
|
|
ok - wrong password -> 401 + Basic challenge
|
|
ok - unknown user -> 401 (same as wrong password)
|
|
ok - no token -> 401 + Bearer challenge
|
|
ok - X-User-Id alone gives no access
|
|
ok - unknown/forged token -> 401
|
|
ok - Basic on business endpoint -> 401
|
|
ok - X-User-Id cannot override bearer identity
|
|
ok - password shorter than 12 -> 400
|
|
== logout ==
|
|
ok - logout -> 204
|
|
ok - token after logout -> 401
|
|
ok - second logout -> 401
|
|
== уюэър ЁхушёЄЁрЎшш юфэюую username ==
|
|
python : Traceback (most recent call last):
|
|
строка:1 знак:24
|
|
+ ... tests.txt { python student-tests\run.py --base-url http://localhost:8 ...
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
File "C:\Users\79152\Desktop\mtusi2026lab3\student-tests\run.py", line 122, in <module>
|
|
main()
|
|
~~~~^^
|
|
File "C:\Users\79152\Desktop\mtusi2026lab3\student-tests\run.py", line 67, in main
|
|
codes = list(pool.map(reg, range(20)))
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\_base.py", line 639, in
|
|
result_iterator
|
|
yield _result_or_cancel(fs.pop())
|
|
~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\_base.py", line 311, in
|
|
_result_or_cancel
|
|
return fut.result(timeout)
|
|
~~~~~~~~~~^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\_base.py", line 450, in result
|
|
return self.__get_result()
|
|
~~~~~~~~~~~~~~~~~^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\_base.py", line 395, in
|
|
__get_result
|
|
raise self._exception
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\thread.py", line 86, in run
|
|
result = ctx.run(self.task)
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\concurrent\futures\thread.py", line 73, in run
|
|
return fn(*args, **kwargs)
|
|
File "C:\Users\79152\Desktop\mtusi2026lab3\student-tests\run.py", line 63, in reg
|
|
st, _, _ = api.call("POST", "/api/v1/users", {"username": name, "display_name": "r", "password": PASSWORD})
|
|
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\Desktop\mtusi2026lab3\student-tests\common.py", line 34, in call
|
|
st, raw, rh = self.raw(method, path, data, h, timeout=timeout)
|
|
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\Desktop\mtusi2026lab3\student-tests\common.py", line 18, in raw
|
|
with urllib.request.urlopen(req, timeout=timeout) as r:
|
|
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 187, in urlopen
|
|
return opener.open(url, data, timeout)
|
|
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 487, in open
|
|
response = self._open(req, data)
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 504, in _open
|
|
result = self._call_chain(self.handle_open, protocol, protocol +
|
|
'_open', req)
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 464, in _call_chain
|
|
result = func(*args)
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 1350, in http_open
|
|
return self.do_open(http.client.HTTPConnection, req)
|
|
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\urllib\request.py", line 1325, in do_open
|
|
r = h.getresponse()
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\http\client.py", line 1450, in getresponse
|
|
response.begin()
|
|
~~~~~~~~~~~~~~^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\http\client.py", line 336, in begin
|
|
version, status, reason = self._read_status()
|
|
~~~~~~~~~~~~~~~~~^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\http\client.py", line 297, in _read_status
|
|
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
|
|
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
|
|
File "C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\Lib\socket.py", line 725, in readinto
|
|
return self._sock.recv_into(b)
|
|
~~~~~~~~~~~~~~~~~~~~^^^
|
|
TimeoutError: timed out
|
|
sent=100 accepted=100 received=100 unique_ids=100 all_texts_present=True
|
|
PASS
|