Skip to content

Commit

Permalink
PIN-4296 Corrected Tests (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: nttdata-rtorsoli <[email protected]>
  • Loading branch information
nttdata-rtorsoli and nttdata-rtorsoli authored Nov 30, 2023
1 parent c68db87 commit b538d49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ object SpecData {
updatedAt = None,
mails = Nil,
name = "test_name",
kind = Some(PersistentTenantKind.PA)
kind = Some(PersistentTenantKind.PA),
onboardedAt = None,
subUnitType = None
)

def catalogSingleAttribute(id: UUID = UUID.randomUUID()): Seq[CatalogAttribute] =
Expand Down
12 changes: 10 additions & 2 deletions src/test/scala/it/pagopa/interop/agreementprocess/SpecData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ object SpecData {
final val archivingStamps = activationStamps.copy(archiving = defaultStamp)

final val validEmail =
PersistentTenantMail(kind = ContactEmail, address = "address", description = None, createdAt = timestamp)
PersistentTenantMail(
id = UUID.randomUUID().toString,
kind = ContactEmail,
address = "address",
description = None,
createdAt = timestamp
)

def descriptor: CatalogDescriptor = CatalogDescriptor(
id = UUID.randomUUID(),
Expand Down Expand Up @@ -114,7 +120,9 @@ object SpecData {
updatedAt = None,
mails = Nil,
name = "test_name",
kind = PersistentTenantKind.PA.some
kind = PersistentTenantKind.PA.some,
onboardedAt = None,
subUnitType = None
)

def catalogSingleAttribute(id: UUID = UUID.randomUUID()): Seq[CatalogAttribute] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ object FakeDependencies {
updatedAt = None,
mails = Nil,
name = "test_name",
kind = PersistentTenantKind.PA.some
kind = PersistentTenantKind.PA.some,
onboardedAt = None,
subUnitType = None
)
)
}
Expand Down

0 comments on commit b538d49

Please sign in to comment.