Allow to filter actions by createdAt and lastModifiedAt timestamp (#2546)
* Allow to filter actions by createdAt and lastModifiedAt timestamp Signed-off-by: strailov <Stanislav.Trailov@bosch.io> * add filtering options for created at/by & lastmodified at/by for all entities Signed-off-by: strailov <Stanislav.Trailov@bosch.io> * Unify ActionStatusFields like other field filters Signed-off-by: strailov <Stanislav.Trailov@bosch.io> * fix tests accordingly Signed-off-by: strailov <Stanislav.Trailov@bosch.io> * only deprecate reportedAt filter option Signed-off-by: strailov <Stanislav.Trailov@bosch.io> --------- Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
This commit is contained in:
committed by
GitHub
parent
124fef189e
commit
5b299e0a62
@@ -1467,7 +1467,7 @@ class MgmtTargetResourceTest extends AbstractManagementApiIntegrationTest {
|
||||
mvc.perform(get(MgmtRestConstants.TARGET_V1_REQUEST_MAPPING + "/" + knownTargetId + "/"
|
||||
+ MgmtRestConstants.TARGET_V1_ACTIONS + "/" + action.getId() + "/"
|
||||
+ MgmtRestConstants.TARGET_V1_ACTION_STATUS).param(MgmtRestConstants.REQUEST_PARAMETER_SORTING,
|
||||
"REPORTEDAT:DESC"))
|
||||
"CREATEDAT:DESC"))
|
||||
.andDo(MockMvcResultPrinter.print())
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(jsonPath("content.[0].id", equalTo(actionStatus.get(1).getId().intValue())))
|
||||
@@ -1486,7 +1486,7 @@ class MgmtTargetResourceTest extends AbstractManagementApiIntegrationTest {
|
||||
mvc.perform(get(MgmtRestConstants.TARGET_V1_REQUEST_MAPPING + "/" + knownTargetId + "/"
|
||||
+ MgmtRestConstants.TARGET_V1_ACTIONS + "/" + action.getId() + "/"
|
||||
+ MgmtRestConstants.TARGET_V1_ACTION_STATUS).param(MgmtRestConstants.REQUEST_PARAMETER_SORTING,
|
||||
"REPORTEDAT:ASC"))
|
||||
"CREATEDAT:ASC"))
|
||||
.andDo(MockMvcResultPrinter.print())
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(jsonPath("content.[1].id", equalTo(actionStatus.get(1).getId().intValue())))
|
||||
|
||||
Reference in New Issue
Block a user