use of com.netflix.titus.grpc.protogen.JobAttributesUpdate in project titus-control-plane by Netflix.
the class JobManagementSpringResourceTest method testUpdateJobAttributes.
@Test
public void testUpdateJobAttributes() throws Exception {
JobAttributesUpdate restRequest = JobAttributesUpdate.newBuilder().setJobId(JOB_ID_1).putAttributes("keyA", "valueA").build();
when(jobServiceGatewayMock.updateJobAttributes(restRequest, JUNIT_REST_CALL_METADATA)).thenReturn(Mono.empty());
SpringMockMvcUtil.doPut(mockMvc, String.format("/api/v3/jobs/%s/attributes", JOB_ID_1), restRequest);
verify(jobServiceGatewayMock, times(1)).updateJobAttributes(restRequest, JUNIT_REST_CALL_METADATA);
}
Aggregations