You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2022/12/22 20:21:47 UTC

[cloudstack] branch main updated: server: fix broken unit test in configurationManagerImplTest (#7018)

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

weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 4ade096aeb2 server: fix broken unit test in configurationManagerImplTest (#7018)
4ade096aeb2 is described below

commit 4ade096aeb255ca5c0cf3bf7f3e7c304d860dfda
Author: GaOrtiga <49...@users.noreply.github.com>
AuthorDate: Thu Dec 22 17:21:38 2022 -0300

    server: fix broken unit test in configurationManagerImplTest (#7018)
    
    Co-authored-by: Gabriel Ortiga Fernandes <ga...@scclouds.com.br>
---
 .../test/java/com/cloud/configuration/ConfigurationManagerImplTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/test/java/com/cloud/configuration/ConfigurationManagerImplTest.java b/server/src/test/java/com/cloud/configuration/ConfigurationManagerImplTest.java
index 324ce7f9cbc..e8bb8fae0b9 100644
--- a/server/src/test/java/com/cloud/configuration/ConfigurationManagerImplTest.java
+++ b/server/src/test/java/com/cloud/configuration/ConfigurationManagerImplTest.java
@@ -135,7 +135,7 @@ public class ConfigurationManagerImplTest {
         PowerMockito.mockStatic(NetUtils.class);
         PowerMockito.when(NetUtils.verifyInstanceName(Mockito.anyString())).thenReturn(false);
         String testVariable = configurationManagerImplSpy.validateRangeInstanceName("This string should not be valid.");
-        Assert.assertEquals("a valid instance name (instance names cannot contain hyphen, space or plus sign)", testVariable);
+        Assert.assertEquals("a valid instance name (instance names cannot contain hyphens, spaces or plus signs)", testVariable);
     }
 
     @Test