Skip to content

Commit

Permalink
PIN-4430 BKE - Agreement-process Sospension command by UI activate pl…
Browse files Browse the repository at this point in the history
…atform suspension
  • Loading branch information
nttdata-rtorsoli committed Jan 23, 2024
1 parent ef2615d commit 516b25c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ final case class AgreementApiServiceImpl(

private def suspendedByPlatformFlag(fsmState: PersistentAgreementState): Option[Boolean] =
// TODO Which states enable the suspendedByPlatform?
List(Suspended, MissingCertifiedAttributes)
List(MissingCertifiedAttributes)
.contains(fsmState)
.some

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class AgreementActivationSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = Nil,
suspendedByConsumer = Some(false),
suspendedByProducer = None,
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.activationStamps
)

Expand Down Expand Up @@ -282,7 +282,7 @@ class AgreementActivationSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = Nil,
suspendedByConsumer = None,
suspendedByProducer = Some(false),
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.activationStamps
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class AgreementSuspensionSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = agreement.verifiedAttributes,
suspendedByConsumer = Some(true),
suspendedByProducer = None,
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.suspensionByConsumerStamps,
suspendedAt = SpecData.suspensionByConsumerStamps.suspensionByConsumer.map(_.when)
)
Expand Down Expand Up @@ -283,7 +283,7 @@ class AgreementSuspensionSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = agreement.verifiedAttributes,
suspendedByConsumer = None,
suspendedByProducer = Some(true),
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.suspensionByProducerStamps,
suspendedAt = SpecData.suspensionByProducerStamps.suspensionByProducer.map(_.when)
)
Expand Down Expand Up @@ -326,7 +326,7 @@ class AgreementSuspensionSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = agreement.verifiedAttributes,
suspendedByConsumer = None,
suspendedByProducer = Some(true),
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.suspensionByProducerStamps,
suspendedAt = SpecData.suspensionByProducerStamps.suspensionByProducer.map(_.when)
)
Expand Down Expand Up @@ -370,7 +370,7 @@ class AgreementSuspensionSpec extends AnyWordSpecLike with SpecHelper with Scala
verifiedAttributes = agreement.verifiedAttributes,
suspendedByConsumer = None,
suspendedByProducer = Some(true),
suspendedByPlatform = Some(true),
suspendedByPlatform = Some(false),
stamps = SpecData.suspensionByProducerStamps,
suspendedAt = SpecData.suspensionByProducerStamps.suspensionByProducer.map(_.when)
)
Expand Down

0 comments on commit 516b25c

Please sign in to comment.