From 3ed733c9fff1fd71d440f0dd9448e0f6ddc1d6e3 Mon Sep 17 00:00:00 2001 From: To-om Date: Fri, 24 Jul 2020 10:27:50 +0200 Subject: [PATCH] #1374 Fix tests --- .../migration/th3/UserNormalisationTest.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/migration/src/test/scala/org/thp/thehive/migration/th3/UserNormalisationTest.scala b/migration/src/test/scala/org/thp/thehive/migration/th3/UserNormalisationTest.scala index 679bf1b7a8..439a358dfb 100644 --- a/migration/src/test/scala/org/thp/thehive/migration/th3/UserNormalisationTest.scala +++ b/migration/src/test/scala/org/thp/thehive/migration/th3/UserNormalisationTest.scala @@ -11,19 +11,19 @@ class UserNormalisationTest extends PlaySpecification with Conversion { "User migration" should { "convert simple name" in { - normaliseLogin("myLogin") must beEqualTo("mylogin@thehive.local") + normaliseLogin("myLogin") must beEqualTo("mylogin") } "convert simple name with dash" in { - normaliseLogin("my-Login") must beEqualTo("my-login@thehive.local") + normaliseLogin("my-Login") must beEqualTo("my-login") } "convert email address" in { normaliseLogin("Firstname.Lastname@Example.com") must beEqualTo("firstname.lastname@example.com") } "convert login with special characters" in { - normaliseLogin("login`with\"special^chars%") must beEqualTo("login.with.special.chars@thehive.local") + normaliseLogin("login`with\"special^chars%") must beEqualTo("login.with.special.chars") } "convert login with only special characters" in { - normaliseLogin("^'\"éç") must beEqualTo("empty.name@thehive.local") + normaliseLogin("^'\"éç") must beEqualTo("empty.name") } "convert login with several @" in { normaliseLogin("first@second@third") must beEqualTo("first@second.third") @@ -32,10 +32,10 @@ class UserNormalisationTest extends PlaySpecification with Conversion { normaliseLogin(".first.@.domain.") must beEqualTo("first@domain") } "convert empty domain" in { - normaliseLogin("first@") must beEqualTo("first@thehive.local") + normaliseLogin("first@") must beEqualTo("first") } "convert email with invalid domain" in { - normaliseLogin("first@```") must beEqualTo("first@thehive.local") + normaliseLogin("first@```") must beEqualTo("first") } "convert email with dash" in { normaliseLogin("-first-name-@-domain-name-") must beEqualTo("first-name@domain-name")