You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2026/05/06 09:58:00 UTC

(cloudstack) tag 4.22.0.1 created (now fb0143f0cef)

This is an automated email from the ASF dual-hosted git repository.

DaanHoogland pushed a change to tag 4.22.0.1
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


      at fb0143f0cef (commit)
This tag includes the following new commits:

     new fb0143f0cef Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914) (#12623)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cloudstack) 01/01: Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914) (#12623)

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

DaanHoogland pushed a commit to tag 4.22.0.1
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit fb0143f0cef25ceffdc91e6d773418ee823088e3
Author: Abhishek Kumar <ab...@gmail.com>
AuthorDate: Thu Mar 12 12:29:31 2026 +0530

    Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914) (#12623)
---
 .../maintenance/ManagementServerMaintenanceManagerImplTest.java         | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java b/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
index 280d1eaf9eb..a208893f6d1 100644
--- a/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
+++ b/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
@@ -321,7 +321,6 @@ public class ManagementServerMaintenanceManagerImplTest {
             spy.prepareForMaintenance("static", false);
         });
 
-        Mockito.when(msHost.getState()).thenReturn(ManagementServerHost.State.Maintenance);
         Mockito.doNothing().when(jobManagerMock).enableAsyncJobs();
         spy.cancelMaintenance();
         Mockito.verify(jobManagerMock).enableAsyncJobs();
@@ -339,7 +338,6 @@ public class ManagementServerMaintenanceManagerImplTest {
             spy.prepareForMaintenance("static", false);
         });
 
-        Mockito.when(msHost.getState()).thenReturn(ManagementServerHost.State.PreparingForMaintenance);
         Mockito.doNothing().when(jobManagerMock).enableAsyncJobs();
         spy.cancelMaintenance();
         Mockito.verify(jobManagerMock).enableAsyncJobs();