-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIN-4084 - tenant-process: Added digital address and onboarded date (#82
) Co-authored-by: nttdata-rtorsoli <[email protected]>
- Loading branch information
1 parent
7c655e4
commit 9706a83
Showing
11 changed files
with
115 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ import it.pagopa.interop.catalogmanagement.model.{ | |
Rest, | ||
Deliver | ||
} | ||
import it.pagopa.interop.commons.utils.Digester.toSha256 | ||
import it.pagopa.interop.commons.utils.service.OffsetDateTimeSupplier | ||
import java.time.{OffsetDateTime, ZoneOffset} | ||
import java.util.UUID | ||
|
@@ -40,7 +41,13 @@ trait SpecData { | |
val tenantId = UUID.randomUUID() | ||
val internalAttributeSeed: InternalAttributeSeed = InternalAttributeSeed("IPA", s"int-attribute-${UUID.randomUUID()}") | ||
val m2mAttributeSeed: M2MAttributeSeed = M2MAttributeSeed(s"m2m-attribute-${UUID.randomUUID()}") | ||
|
||
val mailSeed: MailSeed = MailSeed(MailKind.DIGITAL_ADDRESS, address = "[email protected]", None) | ||
val dependencyMailSeed: Dependency.MailSeed = Dependency.MailSeed( | ||
toSha256("[email protected]".getBytes()), | ||
Dependency.MailKind.DIGITAL_ADDRESS, | ||
address = "[email protected]", | ||
None | ||
) | ||
val internalTenantSeed: InternalTenantSeed = | ||
InternalTenantSeed(ExternalId("IPA", s"tenant-${UUID.randomUUID()}"), Seq(internalAttributeSeed), "test_name") | ||
val internalTenantSeedNotIpa: InternalTenantSeed = | ||
|
@@ -50,9 +57,21 @@ trait SpecData { | |
val m2mTenantSeedNotIpa: M2MTenantSeed = | ||
M2MTenantSeed(ExternalId("NOT_IPA", s"tenant-${UUID.randomUUID()}"), Seq(m2mAttributeSeed), "test_name") | ||
val selfcareTenantSeed: SelfcareTenantSeed = | ||
SelfcareTenantSeed(ExternalId("IPA", s"tenant-${UUID.randomUUID()}"), UUID.randomUUID().toString, "test_name") | ||
SelfcareTenantSeed( | ||
ExternalId("IPA", s"tenant-${UUID.randomUUID()}"), | ||
UUID.randomUUID().toString, | ||
"test_name", | ||
None, | ||
timestamp | ||
) | ||
val selfcareTenantSeedNotIpa: SelfcareTenantSeed = | ||
SelfcareTenantSeed(ExternalId("NOT_IPA", s"tenant-${UUID.randomUUID()}"), UUID.randomUUID().toString, "test_name") | ||
SelfcareTenantSeed( | ||
ExternalId("NOT_IPA", s"tenant-${UUID.randomUUID()}"), | ||
UUID.randomUUID().toString, | ||
"test_name", | ||
None, | ||
timestamp | ||
) | ||
|
||
val dependencyTenant: Dependency.Tenant = Dependency.Tenant( | ||
id = tenantId, | ||
|
@@ -64,7 +83,8 @@ trait SpecData { | |
updatedAt = None, | ||
mails = Nil, | ||
name = "test_name", | ||
kind = None | ||
kind = None, | ||
onboardedAt = Some(timestamp) | ||
) | ||
|
||
val persistentAttribute: PersistentAttribute = PersistentAttribute( | ||
|
@@ -104,7 +124,8 @@ trait SpecData { | |
updatedAt = None, | ||
mails = Nil, | ||
name = "test_name", | ||
kind = None | ||
kind = None, | ||
onboardedAt = Some(timestamp) | ||
) | ||
|
||
val persistentTenantNotIPA: PersistentTenant = PersistentTenant( | ||
|
@@ -117,7 +138,8 @@ trait SpecData { | |
updatedAt = None, | ||
mails = Nil, | ||
name = "test_name", | ||
kind = None | ||
kind = None, | ||
onboardedAt = Some(timestamp) | ||
) | ||
|
||
val fakeMailSeed = MailSeed(MailKind.CONTACT_EMAIL, address = "fakeAddress", description = None) | ||
|