Skip to content

Commit e72afc0

Browse files
committed
remove unused import and fix tests
1 parent b419a77 commit e72afc0

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/backup/RestoreBackupCmd.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.cloudstack.api.ServerApiException;
2929
import org.apache.cloudstack.api.response.SuccessResponse;
3030
import org.apache.cloudstack.api.response.BackupResponse;
31-
import org.apache.cloudstack.backup.Backup;
3231
import org.apache.cloudstack.backup.BackupManager;
3332
import org.apache.cloudstack.context.CallContext;
3433

api/src/test/java/org/apache/cloudstack/api/command/admin/network/CreateIpv4SubnetForGuestNetworkCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void testCreateIpv4SubnetForGuestNetworkCmd() {
5757
Assert.assertEquals(cidrSize, cmd.getCidrSize());
5858
Assert.assertEquals(1L, cmd.getEntityOwnerId());
5959
Assert.assertEquals(EventTypes.EVENT_IP4_GUEST_SUBNET_CREATE, cmd.getEventType());
60-
Assert.assertEquals(String.format("Creating guest IPv4 subnet %s in zone subnet=%s", subnet, parentUuid), cmd.getEventDescription());
60+
Assert.assertEquals(String.format("Creating guest IPv4 subnet %s in zone subnet: %s", subnet, parentUuid), cmd.getEventDescription());
6161

6262
Ipv4GuestSubnetNetworkMap ipv4GuestSubnetNetworkMap = Mockito.mock(Ipv4GuestSubnetNetworkMap.class);
6363
Mockito.when(routedIpv4Manager.createIpv4SubnetForGuestNetwork(cmd)).thenReturn(ipv4GuestSubnetNetworkMap);

api/src/test/java/org/apache/cloudstack/api/command/admin/network/bgp/ChangeBgpPeersForNetworkCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void testChangeBgpPeersForNetworkCmd() {
6161
Assert.assertEquals(bgpPeerIds, cmd.getBgpPeerIds());
6262
Assert.assertEquals(1L, cmd.getEntityOwnerId());
6363
Assert.assertEquals(EventTypes.EVENT_NETWORK_BGP_PEER_UPDATE, cmd.getEventType());
64-
Assert.assertEquals(String.format("Changing BGP Peers for network with ID: %s", networkUuid), cmd.getEventDescription());
64+
Assert.assertEquals(String.format("Changing BGP Peers for Network with ID: %s", networkUuid), cmd.getEventDescription());
6565

6666
Network network = Mockito.mock(Network.class);
6767
Mockito.when(routedIpv4Manager.changeBgpPeersForNetwork(cmd)).thenReturn(network);

api/src/test/java/org/apache/cloudstack/api/command/test/UpdateAutoScaleVmProfileCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void verifyUpdateAutoScaleVmProfileCmd() {
100100

101101
Assert.assertEquals("updateautoscalevmprofileresponse", updateAutoScaleVmProfileCmd.getCommandName());
102102
Assert.assertEquals(EventTypes.EVENT_AUTOSCALEVMPROFILE_UPDATE, updateAutoScaleVmProfileCmd.getEventType());
103-
Assert.assertEquals("Updating AutoScale Instance Profile. Instance Profile Id: " + profileId, updateAutoScaleVmProfileCmd.getEventDescription());
103+
Assert.assertEquals("Updating AutoScale Instance Profile with ID: " + profileId, updateAutoScaleVmProfileCmd.getEventDescription());
104104
}
105105

106106
@Test

api/src/test/java/org/apache/cloudstack/api/command/test/UpdateConditionCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void verifyUpdateConditionCmd() {
8989
Assert.assertEquals(ApiCommandResourceType.Condition, updateConditionCmd.getApiResourceType());
9090
Assert.assertEquals("updateconditionresponse", updateConditionCmd.getCommandName());
9191
Assert.assertEquals(EventTypes.EVENT_CONDITION_UPDATE, updateConditionCmd.getEventType());
92-
Assert.assertEquals("Updating VM auto scaling condition with ID: " + conditionUuid, updateConditionCmd.getEventDescription());
92+
Assert.assertEquals("Updating Instance AutoScale condition with ID: " + conditionUuid, updateConditionCmd.getEventDescription());
9393

9494
when(entityMgr.findById(Condition.class, conditionId)).thenReturn(condition);
9595
when(condition.getAccountId()).thenReturn(accountId);

0 commit comments

Comments
 (0)