Skip to content

Commit

Permalink
Merge pull request #72 from velocitycareerlabs/dev-to-rc
Browse files Browse the repository at this point in the history
Dev to rc
  • Loading branch information
michaelavoyan authored Dec 26, 2023
2 parents 3e4ff67 + 5ee9a95 commit b7ac542
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
defaultConfig {
minSdk 24
targetSdk 33
versionName "1.22.0"
versionName "1.22.2"
versionCode 118
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ package io.velocitycareerlabs.api.entities
class VCLCredentialManifestDescriptorByDeepLink(
deepLink: VCLDeepLink,
issuingType: VCLIssuingType = VCLIssuingType.Career,
pushDelegate: VCLPushDelegate? = null
): VCLCredentialManifestDescriptor(
uri = deepLink.requestUri,
issuingType = issuingType,
pushDelegate = pushDelegate,
vendorOriginContext = deepLink.vendorOriginContext,
deepLink = deepLink
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package io.velocitycareerlabs.entities

import io.velocitycareerlabs.api.entities.VCLCredentialManifestDescriptorByDeepLink
import io.velocitycareerlabs.api.entities.VCLIssuingType
import io.velocitycareerlabs.api.entities.VCLPushDelegate
import io.velocitycareerlabs.impl.extensions.decode
import io.velocitycareerlabs.impl.extensions.isUrlEquivalentTo
import io.velocitycareerlabs.infrastructure.resources.valid.CredentialManifestDescriptorMocks
Expand All @@ -29,14 +30,17 @@ internal class VCLCredentialManifestDescriptorByDeepLinkTest {
fun testCredentialManifestDescriptorFullValidByDeepLinkSuccess() {
subject = VCLCredentialManifestDescriptorByDeepLink(
deepLink = CredentialManifestDescriptorMocks.DeepLink,
issuingType = VCLIssuingType.Career
issuingType = VCLIssuingType.Career,
pushDelegate = VCLPushDelegate(pushUrl = "some url", pushToken = "some token")
)

assert(
subject.endpoint?.decode()
?.isUrlEquivalentTo(CredentialManifestDescriptorMocks.DeepLinkRequestUri.decode()) == true
)
assert(subject.did == CredentialManifestDescriptorMocks.IssuerDid)
assert(subject.pushDelegate?.pushUrl == "some url")
assert(subject.pushDelegate?.pushToken == "some token")
}

@After
Expand Down

0 comments on commit b7ac542

Please sign in to comment.