[
https://issues.apache.org/jira/browse/KNOX-3289?focusedWorklogId=1011775&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1011775
]
ASF GitHub Bot logged work on KNOX-3289:
----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Mar/26 10:56
Start Date: 27/Mar/26 10:56
Worklog Time Spent: 10m
Work Description: hanicz opened a new pull request, #1189:
URL: https://github.com/apache/knox/pull/1189
(It is very **important** that you created an Apache Knox JIRA for this
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
[KNOX-3289](https://issues.apache.org/jira/browse/KNOX-3289) - Fix
GatewayWebsocketHandlerTest test failures
## What changes were proposed in this pull request?
Refactored the failing `GatewayWebsocketHandlerTest` tests so
`ServletUpgradeRequest` and `ServletUpgradeResponse` is not mocked anymore
## How was this patch tested?
Ran unit tests locally and on Github in my fork
## Integration Tests
N/A
## UI changes
N/A
Issue Time Tracking
-------------------
Worklog Id: (was: 1011775)
Remaining Estimate: 0h
Time Spent: 10m
> GatewayWebsocketHandlerTest test failures
> -----------------------------------------
>
> Key: KNOX-3289
> URL: https://issues.apache.org/jira/browse/KNOX-3289
> Project: Apache Knox
> Issue Type: Bug
> Components: Tests
> Affects Versions: 2.1.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> Error: Errors:
> Error: GatewayWebsocketHandlerTest.testDisabledWebShell:165 » Runtime
> java.lang.IllegalAccessException: no such field:
> org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest$$$EasyMock$3.$callback/org.easymock.internal.ClassMockingData/putField
> Error: GatewayWebsocketHandlerTest.testValidWebShellRequest:79 » Runtime
> java.lang.IllegalAccessException: no such field:
> org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest$$$EasyMock$3.$callback/org.easymock.internal.ClassMockingData/putField
> Error: GatewayWebsocketHandlerTest.testValidWebShellRequestThroughLB:106 »
> Runtime java.lang.IllegalAccessException: no such field:
> org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest$$$EasyMock$3.$callback/org.easymock.internal.ClassMockingData/putField
> Error: GatewayWebsocketHandlerTest.testWebShellRequestWithInvalidJWT:138 »
> Runtime java.lang.IllegalAccessException: no such field:
> org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest$$$EasyMock$3.$callback/org.easymock.internal.ClassMockingData/putField
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)