-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-9811][rest] Add test for jar handler interactions #6311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
runJar(runHandler, storedJarName, restfulGateway); | ||
Assert.fail("We assume the actual job submission to fail."); | ||
} catch (Exception e) { | ||
final Optional<ConnectException> expected = ExceptionUtils.findThrowable(e, ConnectException.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can make this part a lot nicer by starting a BlobServer´ like we do in the
JobSubmitHandlerTestand setting a
submitFunctionon the
TestingDispatcherGateway`.
Will add this later.
Adjusted to work like the JobSubmitHandler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this test @zentol. LGTM. Addressing my comment while merging this PR.
/** | ||
* Tests the entire lifecycle of a jar submission. | ||
*/ | ||
public class JarSubmissionITCase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should extend TestLogger
.
What is the purpose of the change
This PR adds an ITCase for the interactions between jar handlers.
The test goes through the following life-cycle:
Brief change log
sync dispatcher hostname retrieval in
JarRunHandler
withJobSubmitHandler
add
TestProgram
class andmaven-jar-plugin
execution to create a test jar for the testmodify visibility of various
*MessageParameter
classes to make them usable for java codeadd
JarSubmissionITCase
Verifying this change
Manually verified. The assertions made are fairly straight-forward.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation