This is an automated email from the ASF dual-hosted git repository. xiazcy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 1d1efb9872e8f77f83e6b50f02e1941a85d95913 Merge: 8c6998159e 802ed4fe6a Author: Yang Xia <55853655+xia...@users.noreply.github.com> AuthorDate: Mon Apr 8 19:37:18 2024 -0700 Merge branch '3.7-dev' CHANGELOG.asciidoc | 1 + docs/src/reference/the-traversal.asciidoc | 5 +- .../traversal/dsl/graph/GraphTraversal.java | 2 +- .../gremlin/driver/simple/AbstractClient.java | 14 +- .../test/integration/sasl-authentication-tests.js | 13 ++ .../server/handler/SaslAuthenticationHandler.java | 257 +++++++++++++-------- .../tinkerpop/gremlin/server/handler/StateKey.java | 9 + .../server/GremlinServerAuthIntegrateTest.java | 81 ++++++- 8 files changed, 268 insertions(+), 114 deletions(-) diff --cc gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/sasl-authentication-tests.js index eb4b204112,3d2b937666..47de8b3984 --- a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/sasl-authentication-tests.js +++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/sasl-authentication-tests.js @@@ -51,8 -54,21 +51,21 @@@ describe('DriverRemoteConnection', func }); }); + it('should be able to send multiple requests concurrently with valid credentials and parse the response', async function () { + connection = helper.getSecureConnectionWithPlainTextSaslAuthenticator(null, 'stephen', 'password'); + + const submissions = await Promise.all( + Array.from({ length: 10 }).map(() => connection.submit(new Bytecode().addStep('V', []).addStep('tail', []))), + ); + + submissions.forEach((response) => { + assert.ok(response); + assert.ok(response.traversers); + }); + }); + it('should send the request with invalid credentials and parse the response error', function () { - connection = helper.getSecureConnectionWithPlainTextSaslAuthenticator(null, 'Bob', 'password'); + connection = getSecureConnectionWithPlainTextSaslAuthenticator(null, 'Bob', 'password'); return connection.submit(new Bytecode().addStep('V', []).addStep('tail', [])) .then(function() {