Skip to content

Commit 1c3d81b

Browse files
author
github-actions
committed
Google Java Format
1 parent 034f209 commit 1c3d81b

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

projects/control-service/projects/pipelines_control_service/src/main/java/com/vmware/taurus/service/monitoring/DeploymentMonitor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ private boolean saveDataJobStatus(
107107
actualJobDeploymentRepository.save(actualDataJobDeployment);
108108
}
109109

110-
desiredJobDeploymentRepository.updateDesiredDataJobDeploymentStatusAndUserInitiatedByDataJobName(
111-
dataJobName, deploymentStatus, false);
110+
desiredJobDeploymentRepository
111+
.updateDesiredDataJobDeploymentStatusAndUserInitiatedByDataJobName(
112+
dataJobName, deploymentStatus, false);
112113
return true;
113114
}
114115
log.debug("Data job: {} was deleted or hasn't been created", dataJobName);

projects/control-service/projects/pipelines_control_service/src/main/java/com/vmware/taurus/service/repository/DesiredJobDeploymentRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ int updateDesiredDataJobDeploymentEnabledByDataJobName(
4141
@Transactional
4242
@Modifying(clearAutomatically = true)
4343
@Query(
44-
"update DesiredDataJobDeployment d set d.status = :status, d.userInitiated = :userInitiated where d.dataJobName ="
45-
+ " :dataJobName")
44+
"update DesiredDataJobDeployment d set d.status = :status, d.userInitiated = :userInitiated"
45+
+ " where d.dataJobName = :dataJobName")
4646
int updateDesiredDataJobDeploymentStatusAndUserInitiatedByDataJobName(
4747
@Param(value = "dataJobName") String dataJobName,
4848
@Param(value = "status") DeploymentStatus status,

projects/control-service/projects/pipelines_control_service/src/test/java/com/vmware/taurus/service/deploy/DeploymentServiceV2TestIT.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,35 @@ public void updateDeployment_withDesiredDeploymentStatusNone_shouldStartDeployme
5050
}
5151

5252
@Test
53-
public void updateDeployment_withDesiredDeploymentUserInitiatedDeploymentTrue_shouldSendNotification()
53+
public void
54+
updateDeployment_withDesiredDeploymentUserInitiatedDeploymentTrue_shouldSendNotification()
5455
throws IOException, InterruptedException, ApiException {
5556
updateDeployment(DeploymentStatus.NONE, 1, true);
5657

5758
Mockito.verify(jobImageBuilder, Mockito.times(1))
58-
.buildImage(Mockito.any(), Mockito.any(), Mockito.any(), Mockito.eq(true));
59+
.buildImage(Mockito.any(), Mockito.any(), Mockito.any(), Mockito.eq(true));
5960
}
6061

6162
@Test
62-
public void updateDeployment_withDesiredDeploymentUserInitiatedDeploymentFalse_shouldNotSendNotification()
63+
public void
64+
updateDeployment_withDesiredDeploymentUserInitiatedDeploymentFalse_shouldNotSendNotification()
6365
throws IOException, InterruptedException, ApiException {
6466
updateDeployment(DeploymentStatus.NONE, 1, false);
6567

6668
Mockito.verify(jobImageBuilder, Mockito.times(1))
67-
.buildImage(Mockito.any(), Mockito.any(), Mockito.any(), Mockito.eq(false));
69+
.buildImage(Mockito.any(), Mockito.any(), Mockito.any(), Mockito.eq(false));
6870
}
6971

7072
private void updateDeployment(
71-
DeploymentStatus deploymentStatus, int deploymentProgressStartedInvocations) throws IOException, InterruptedException, ApiException {
73+
DeploymentStatus deploymentStatus, int deploymentProgressStartedInvocations)
74+
throws IOException, InterruptedException, ApiException {
7275
updateDeployment(deploymentStatus, deploymentProgressStartedInvocations, true);
7376
}
7477

7578
private void updateDeployment(
76-
DeploymentStatus deploymentStatus, int deploymentProgressStartedInvocations, boolean sendNotification)
79+
DeploymentStatus deploymentStatus,
80+
int deploymentProgressStartedInvocations,
81+
boolean sendNotification)
7782
throws IOException, InterruptedException, ApiException {
7883
DesiredDataJobDeployment desiredDataJobDeployment = new DesiredDataJobDeployment();
7984
desiredDataJobDeployment.setStatus(deploymentStatus);

0 commit comments

Comments
 (0)