-
Notifications
You must be signed in to change notification settings - Fork 354
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
2478: JobTracker tracks all operations not just jobs #3330
Changes from all commits
e78e536
bfb9e3f
ecf8e96
c2fa4ca
ff8b57a
906e3fa
f887d10
a0077db
c46a3f6
bcc9d41
a07ca7e
0dbba6f
d7ebdd9
f85d483
1a3c8b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2015-2021 Crown Copyright | ||
* Copyright 2015-2024 Crown Copyright | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -106,24 +106,6 @@ public void shouldPropagateStatusInformationContainedInOperationExceptionsThrown | |
assertEquals(SERVICE_UNAVAILABLE.getStatusCode(), response.getStatus()); | ||
} | ||
|
||
@Test | ||
public void shouldReturnSameJobIdInHeaderAsGetAllJobDetailsOperation() throws IOException { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree that this test can be deleted now as it fails due to no jobs running which is correct. However, we are still getting the header returned so you will need to implement this |
||
// Given | ||
final Graph graph = new Graph.Builder() | ||
.config(StreamUtil.graphConfig(this.getClass())) | ||
.storeProperties(StreamUtil.STORE_PROPERTIES) | ||
.addSchema(new Schema()) | ||
.build(); | ||
|
||
client.reinitialiseGraph(graph); | ||
|
||
// When | ||
final Response response = client.executeOperation(new GetAllJobDetails()); | ||
|
||
// Then | ||
assertTrue(response.readEntity(String.class).contains(response.getHeaderString("job-id"))); | ||
} | ||
|
||
@Test | ||
public void shouldReturnAllOperationsAsOperationDetails() throws IOException, ClassNotFoundException { | ||
// Given | ||
|
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.
This test is worth keeping as it tests job functionality
We no longer handle jobs in the
execute
method, but we do in theexecuteJob
method.Swapping this line should pass the test