@@ -231,30 +231,3 @@ def test_disable_ssl(self):
231231 self .assertTrue (service .disable_ssl_verification )
232232 self .assertTrue (
233233 service .authenticator .token_manager .disable_ssl_verification )
234-
235- def test_auth_disable_ssl (self ):
236- os .environ ['TEST_SERVICE_AUTHTYPE' ] = 'couchdb_session'
237- os .environ ['TEST_SERVICE_USERNAME' ] = 'adm'
238- os .environ ['TEST_SERVICE_PASSWORD' ] = 'pass'
239- os .environ ['TEST_SERVICE_AUTH_DISABLE_SSL' ] = 'true'
240- service = CloudantV1 .new_instance (service_name = 'TEST_SERVICE' )
241- self .assertIsNotNone (service )
242- self .assertIsInstance (service , CloudantV1 )
243- self .assertEqual ('COUCHDB_SESSION' , service .authenticator .authentication_type ())
244- self .assertFalse (service .disable_ssl_verification )
245- self .assertTrue (
246- service .authenticator .token_manager .disable_ssl_verification )
247-
248- def test_auth_disable_ssl_only (self ):
249- os .environ ['TEST_SERVICE_AUTHTYPE' ] = 'couchdb_session'
250- os .environ ['TEST_SERVICE_USERNAME' ] = 'adm'
251- os .environ ['TEST_SERVICE_PASSWORD' ] = 'pass'
252- os .environ ['TEST_SERVICE_DISABLE_SSL' ] = 'false'
253- os .environ ['TEST_SERVICE_AUTH_DISABLE_SSL' ] = 'true'
254- service = CloudantV1 .new_instance (service_name = 'TEST_SERVICE' )
255- self .assertIsNotNone (service )
256- self .assertIsInstance (service , CloudantV1 )
257- self .assertEqual ('COUCHDB_SESSION' , service .authenticator .authentication_type ())
258- self .assertFalse (service .disable_ssl_verification )
259- self .assertTrue (
260- service .authenticator .token_manager .disable_ssl_verification )
0 commit comments