andreachild commented on code in PR #3280:
URL: https://github.com/apache/tinkerpop/pull/3280#discussion_r2535880686
##########
gremlin-python/src/main/python/examples/connections.py:
##########
@@ -57,45 +56,26 @@ def with_remote():
# connecting with plain text authentication
def with_auth():
- rc = DriverRemoteConnection('ws://localhost:8182/gremlin', 'g',
username='stephen', password='password')
- g = traversal().with_remote(rc)
-
- v = g.add_v().iterate()
- count = g.V().count().next()
- print("Vertex count: " + str(count))
-
- rc.close()
-
-
-# connecting with Kerberos SASL authentication
-def with_kerberos():
- rc = DriverRemoteConnection('ws://localhost:8182/gremlin', 'g',
kerberized_service='[email protected]')
+ # if there is a port placeholder in the env var then we are running with
docker so set appropriate port
+ server_url = os.getenv('GREMLIN_SERVER_BASIC_AUTH_URL',
'http://localhost:8182/gremlin').format(45941)
+
+ # disable SSL certificate verification for CI environments
Review Comment:
Is this necessary if the URL is using `http` and not `https`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]