MCPcopy Create free account
hub / github.com/apache/qpid-proton / testSSLPlainAuthzid

Method testSSLPlainAuthzid

python/tests/proton_tests/sasl.py:420–439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

418 _testSaslMech(self, mech, encrypted=True)
419
420 def testSSLPlainAuthzid(self):
421 if not SASL.extended():
422 raise Skipped("Simple SASL server does not support PLAIN")
423 common.ensureCanTestExtendedSASL()
424
425 clientUser = 'user@proton'
426 authzid = 'user2'
427 mech = 'PLAIN'
428
429 self.c1.user = clientUser
430 self.c1.authorization = authzid
431 self.c1.password = 'password'
432 self.c1.hostname = 'localhost'
433
434 self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER)
435
436 _sslConnection(self.client_domain, self.t1, self.c1)
437 _sslConnection(self.server_domain, self.t2, self.c2)
438
439 _testSaslMech(self, mech, authzid=authzid, encrypted=True)
440
441 def testSSLPlainSimpleFail(self):
442 if not SASL.extended():

Callers

nothing calls this directly

Calls 5

SkippedClass · 0.85
_sslConnectionFunction · 0.85
_testSaslMechFunction · 0.85
extendedMethod · 0.80

Tested by

no test coverage detected