-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add verification api integration tests (#1201)
Signed-off-by: Allain Magyar <allain.magyar@iohk.io> Signed-off-by: Hyperledger Bot <hyperledger-bot@hyperledger.org> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
- Loading branch information
1 parent
68626ed
commit c05df45
Showing
43 changed files
with
1,237 additions
and
526 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
25 changes: 25 additions & 0 deletions
25
tests/integration-tests/src/test/kotlin/common/DidPurpose.kt
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package common | ||
|
||
import org.hyperledger.identus.client.models.* | ||
|
||
enum class DidPurpose { | ||
EMPTY { | ||
override val publicKeys = emptyList<ManagedDIDKeyTemplate>() | ||
override val services = emptyList<Service>() | ||
}, | ||
JWT { | ||
override val publicKeys = listOf( | ||
ManagedDIDKeyTemplate("auth-1", Purpose.AUTHENTICATION, Curve.SECP256K1), | ||
ManagedDIDKeyTemplate("auth-2", Purpose.AUTHENTICATION, Curve.ED25519), | ||
ManagedDIDKeyTemplate("assertion-1", Purpose.ASSERTION_METHOD, Curve.SECP256K1), | ||
) | ||
override val services = emptyList<Service>() | ||
}, | ||
ANONCRED { | ||
override val publicKeys = emptyList<ManagedDIDKeyTemplate>() | ||
override val services = emptyList<Service>() | ||
}, ; | ||
|
||
abstract val publicKeys: List<ManagedDIDKeyTemplate> | ||
abstract val services: List<Service> | ||
} |
Oops, something went wrong.