userver: pytest_userver.utils.httpdigest.DigestAuthClient Class Reference
Loading...
Searching...
No Matches
pytest_userver.utils.httpdigest.DigestAuthClient Class Reference

Detailed Description

Minimal stateful Digest client for functional tests.

Definition at line 33 of file httpdigest.py.

Public Member Functions

 __init__ (self, *, str username, str password)
str construct_header (self, *, dict challenge, str uri, str method)
 Builds an Authorization: Digest ... header value for the challenge.

Protected Attributes

 _digest_auth = HTTPDigestAuth(username, password)

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.utils.httpdigest.DigestAuthClient.__init__ ( self,
* ,
str username,
str password )

Definition at line 36 of file httpdigest.py.

Member Function Documentation

◆ construct_header()

str pytest_userver.utils.httpdigest.DigestAuthClient.construct_header ( self,
* ,
dict challenge,
str uri,
str method )

Builds an Authorization: Digest ... header value for the challenge.

Definition at line 40 of file httpdigest.py.

Member Data Documentation

◆ _digest_auth

pytest_userver.utils.httpdigest.DigestAuthClient._digest_auth = HTTPDigestAuth(username, password)
protected

Definition at line 37 of file httpdigest.py.


The documentation for this class was generated from the following file:
  • /data/code/userver/testsuite/pytest_plugins/pytest_userver/utils/httpdigest.py