Skip to content

Commit 90b916b

Browse files
joerg1985diemol
andauthored
[grid] removed a deprecated json wire endpoint (#12354)
Co-authored-by: Diego Molina <[email protected]>
1 parent 811bf14 commit 90b916b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

java/src/org/openqa/selenium/grid/node/Node.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ protected Node(Tracer tracer, NodeId id, URI uri, Secret registrationSecret) {
153153
.to(() -> new ForwardWebDriverCommand(this))
154154
.with(spanDecorator("node.forward_command")),
155155
new CustomLocatorHandler(this, registrationSecret, customLocators),
156-
post("/session/{sessionId}/file")
157-
.to(params -> new UploadFile(this, sessionIdFrom(params)))
158-
.with(spanDecorator("node.upload_file")),
159156
post("/session/{sessionId}/se/file")
160157
.to(params -> new UploadFile(this, sessionIdFrom(params)))
161158
.with(spanDecorator("node.upload_file")),

java/test/org/openqa/selenium/grid/node/NodeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ void canUploadAFile() throws IOException {
521521
assertThatEither(response).isRight();
522522
Session session = response.right().getSession();
523523

524-
HttpRequest req = new HttpRequest(POST, String.format("/session/%s/file", session.getId()));
524+
HttpRequest req = new HttpRequest(POST, String.format("/session/%s/se/file", session.getId()));
525525
String hello = "Hello, world!";
526526
String zip = Zip.zip(createTmpFile(hello));
527527
String payload = new Json().toJson(Collections.singletonMap("file", zip));

0 commit comments

Comments
 (0)