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

Method testSSLPlainSimpleFail

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

Source from the content-addressed store, hash-verified

439 _testSaslMech(self, mech, authzid=authzid, encrypted=True)
440
441 def testSSLPlainSimpleFail(self):
442 if not SASL.extended():
443 raise Skipped("Simple SASL server does not support PLAIN")
444 common.ensureCanTestExtendedSASL()
445
446 clientUser = 'usr@proton'
447 mech = 'PLAIN'
448
449 self.c1.user = clientUser
450 self.c1.password = 'password'
451 self.c1.hostname = 'localhost'
452
453 self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER)
454
455 _sslConnection(self.client_domain, self.t1, self.c1)
456 _sslConnection(self.server_domain, self.t2, self.c2)
457
458 _testSaslMech(self, mech, clientUser='usr@proton', encrypted=True, authenticated=False)
459
460 def testSSLExternalSimple(self):
461 if os.name == "nt":

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