Skip to content

Commit

Permalink
feat: add tests on Data Exchange Governance use case (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood authored Jul 5, 2024
1 parent 9cbd995 commit d92a9d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext extensionCo
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "Membership", "active")), "MembershipCredential"),
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "FrameworkAgreement.pcf", "active")), "PCF Use Case (legacy notation)"),
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "FrameworkAgreement", "Pcf")), "PCF Use Case (new notation)"),
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "FrameworkAgreement", "DataExchangeGovernance:1.0.0")), "DataExchangeGovernance use case"),
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "Dismantler", "active")), "Dismantler Credential"),
Arguments.of(frameworkPolicy(Map.of(CX_POLICY_NS + "Dismantler.activityType", "vehicleDismantle")), "Dismantler Cred (activity type)"),
Arguments.of(frameworkPolicy(CX_POLICY_NS + "Dismantler.allowedBrands", Operator.IS_ANY_OF, List.of("Moskvich", "Tatra")), "Dismantler allowedBrands (IS_ANY_OF, one intersects)"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ private static List<VerifiableCredentialResource> issueCredentials(DataspaceIssu
return List.of(
issuer.issueMembershipCredential(participant.getDid(), participant.getBpn(), jsonLd),
issuer.issueDismantlerCredential(participant.getDid(), participant.getBpn(), jsonLd),
issuer.issueFrameworkCredential(participant.getDid(), participant.getBpn(), jsonLd, "PcfCredential"));
issuer.issueFrameworkCredential(participant.getDid(), participant.getBpn(), jsonLd, "PcfCredential"),
issuer.issueFrameworkCredential(participant.getDid(), participant.getBpn(), jsonLd, "DataExchangeGovernanceCredential"));

}
}

0 comments on commit d92a9d7

Please sign in to comment.