This is an automated email from the ASF dual-hosted git repository.

colegreer pushed a commit to branch graph-binary-4-JS-HTTP
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 6efb6932c3f3216ee0392d8eb3d0c0a5e071361e
Author: Kirill Stepanishin <[email protected]>
AuthorDate: Fri Mar 6 11:02:00 2026 -0800

    Replace Bytecode in tests with GremlinLang
---
 .../test/integration/remote-connection-tests.js              |  1 -
 .../test/integration/sasl-authentication-tests.js            |  7 +++----
 .../gremlin-javascript/test/integration/traversal-test.js    | 12 ++++++------
 3 files changed, 9 insertions(+), 11 deletions(-)

diff --git 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/remote-connection-tests.js
 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/remote-connection-tests.js
index 6376dbe5a9..73727d18ef 100644
--- 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/remote-connection-tests.js
+++ 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/remote-connection-tests.js
@@ -22,7 +22,6 @@
  */
 
 import assert from 'assert';
-import Bytecode from '../../lib/process/bytecode.js';
 import { Vertex } from '../../lib/structure/graph.js';
 import { getConnection } from '../helper.js';
 
diff --git 
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
index eb4b204112..fd38fbcdbd 100644
--- 
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
@@ -20,7 +20,6 @@
 import assert from 'assert';
 import { AssertionError } from 'assert';
 import anon from '../../lib/process/anonymous-traversal.js';
-import Bytecode from '../../lib/process/bytecode.js';
 import { getSecureConnectionWithPlainTextSaslAuthenticator, 
getDriverRemoteConnection } from '../helper.js';
 import PlainTextSaslAuthenticator from 
'../../lib/driver/auth/plain-text-sasl-authenticator.js';
 
@@ -44,7 +43,7 @@ describe('DriverRemoteConnection', function () {
       it('should send the request with valid credentials and parse the 
response', function () {
         connection = getSecureConnectionWithPlainTextSaslAuthenticator(null, 
'stephen', 'password');
 
-        return connection.submit(new Bytecode().addStep('V', 
[]).addStep('tail', []))
+        return connection.submit('g.V().tail()')
           .then(function (response) {
             assert.ok(response);
             assert.ok(response.traversers);
@@ -54,7 +53,7 @@ describe('DriverRemoteConnection', function () {
       it('should send the request with invalid credentials and parse the 
response error', function () {
         connection = getSecureConnectionWithPlainTextSaslAuthenticator(null, 
'Bob', 'password');
 
-        return connection.submit(new Bytecode().addStep('V', 
[]).addStep('tail', []))
+        return connection.submit('g.V().tail()')
           .then(function() {
             assert.fail("invalid credentials should throw");
           })
@@ -71,7 +70,7 @@ describe('DriverRemoteConnection', function () {
           rejectUnauthorized: false
         });
 
-        return connection.submit(new Bytecode().addStep('V', 
[]).addStep('tail', []))
+        return connection.submit('g.V().tail()')
             .then(function() {
               assert.fail("server is running TLS and trying to connect with 
ws:// so this should result in error thrown");
             })
diff --git 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/traversal-test.js
 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/traversal-test.js
index e7ff4c5360..a23757984e 100644
--- 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/traversal-test.js
+++ 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/integration/traversal-test.js
@@ -28,7 +28,7 @@ import anon from '../../lib/process/anonymous-traversal.js';
 import { GraphTraversalSource, GraphTraversal, statics } from 
'../../lib/process/graph-traversal.js';
 import { SubgraphStrategy, ReadOnlyStrategy, 
SeedStrategy,HaltedTraverserStrategy, FilterRankingStrategy,
         OptionsStrategy, ReservedKeysVerificationStrategy, 
EdgeLabelVerificationStrategy } from '../../lib/process/traversal-strategy.js';
-import Bytecode from '../../lib/process/bytecode.js';
+import GremlinLang from '../../lib/process/gremlin-lang.js';
 import { getConnection, getDriverRemoteConnection } from '../helper.js';
 import * as helper from '../helper.js';
 const __ = statics;
@@ -37,8 +37,8 @@ let connection;
 let txConnection;
 
 class SocialTraversal extends GraphTraversal {
-  constructor(graph, traversalStrategies, bytecode) {
-    super(graph, traversalStrategies, bytecode);
+  constructor(graph, traversalStrategies, gremlinLang) {
+    super(graph, traversalStrategies, gremlinLang);
   }
 
   aged(age) {
@@ -47,8 +47,8 @@ class SocialTraversal extends GraphTraversal {
 }
 
 class SocialTraversalSource extends GraphTraversalSource {
-  constructor(graph, traversalStrategies, bytecode) {
-    super(graph, traversalStrategies, bytecode, SocialTraversalSource, 
SocialTraversal);
+  constructor(graph, traversalStrategies, gremlinLang) {
+    super(graph, traversalStrategies, gremlinLang, SocialTraversalSource, 
SocialTraversal);
   }
 
   person(name) {
@@ -57,7 +57,7 @@ class SocialTraversalSource extends GraphTraversalSource {
 }
 
 function anonymous() {
-  return new SocialTraversal(null, null, new Bytecode());
+  return new SocialTraversal(null, null, new GremlinLang());
 }
 
 function aged(age) {

Reply via email to