fix: change wording of error message
authorINOPIAE <m.maengel@inopiae.de>
Fri, 22 Nov 2019 15:06:20 +0000 (16:06 +0100)
committerINOPIAE <m.maengel@inopiae.de>
Fri, 22 Nov 2019 15:06:20 +0000 (16:06 +0100)
Text change according to
https://pad.ccs-baumann.de/p/audit-meeting-20191121

Change-Id: I7ac3946f70ec87799c793ea3729f1fec254c9fc7

src/club/wpia/gigi/pages/account/certs/CertificateRequest.java
tests/club/wpia/gigi/pages/account/TestCertificateRequest.java

index cdf4dd4..d9d090c 100644 (file)
@@ -371,7 +371,7 @@ public class CertificateRequest {
                 } else {
                     // remove
                     error.mergeInto(new GigiApiException(SprintfCommand.createSimple(//
-                            "The requested subject alternate name email address \"{0}\" needs an email ping within the past {1} months.", san.getType().toString().toLowerCase() + ":" + san.getName(), TimeConditions.getInstance().getEmailPingMonths())));
+                            "The requested subject alternate name email address \"{0}\" needs a verification via email ping within the past {1} months.", san.getType().toString().toLowerCase() + ":" + san.getName(), TimeConditions.getInstance().getEmailPingMonths())));
                     break;
                 }
             }
index 023be5a..bb6c575 100644 (file)
@@ -108,7 +108,7 @@ public class TestCertificateRequest extends ClientTest {
             cr.draft();
             fail();
         } catch (GigiApiException e) {
-            assertThat(e.getMessage(), containsString("needs an email ping within the past"));
+            assertThat(e.getMessage(), containsString("needs a verification via email ping within the past"));
         }
 
     }
@@ -131,7 +131,7 @@ public class TestCertificateRequest extends ClientTest {
             cr.draft();
             fail();
         } catch (GigiApiException e) {
-            assertThat(e.getMessage(), containsString("needs an email ping within the past"));
+            assertThat(e.getMessage(), containsString("needs a verification via email ping within the past"));
         }
 
     }