Skip to content

Commit

Permalink
[fix] failed tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsiflit committed Jan 18, 2024
1 parent 6bb43d1 commit 299ca9a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Sources/Issuers/IssuanceRequester.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public actor IssuanceRequester: IssuanceRequesterType {

switch credential.requestedCredentialResponseEncryption {
case .notRequested:
// TODO: Decode SingleIssuanceSuccessResponse
throw ValidationError.error(reason: "Issuer expects response encryption")
case .requested(
_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public actor CredentialOfferRequestResolver {

do {
let credentialIssuerId = credentialIssuerMetadata.credentialIssuerIdentifier
let credentials: [CredentialIdentifier] = try credentialOfferRequestObject.credentials.map { try CredentialIdentifier(value: $0.stringValue) }
let credentials: [CredentialIdentifier] = credentialOfferRequestObject.credentials.compactMap { try? CredentialIdentifier(value: $0.stringValue) }
let grants = try credentialOfferRequestObject.grants?.toDomain()
return try .init(
credentialIssuerIdentifier: credentialIssuerId,
Expand Down
12 changes: 6 additions & 6 deletions Tests/Constants/TestsConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import Foundation
@testable import OpenID4VCI

//let CredentialIssuer_URL = "http://localhost:8080"
let CredentialIssuer_URL = "https://preprod.issuer.eudiw.dev/oidc"
//let CredentialIssuer_URL = "https://eudi.netcompany-intrasoft.com/pid-issuer"
//let CredentialIssuer_URL = "https://preprod.issuer.eudiw.dev/oidc"
let CredentialIssuer_URL = "https://eudi.netcompany-intrasoft.com/pid-issuer"

//let PID_SdJwtVC_SCOPE = "eu.europa.ec.eudiw.pid_vc_sd_jwt"
//let PID_MsoMdoc_SCOPE = "eu.europa.ec.eudiw.pid_mso_mdoc"
let PID_SdJwtVC_SCOPE = "eu.europa.ec.eudiw.pid_jwt_vc_json"
let PID_MsoMdoc_SCOPE = "eu.europa.ec.eudiw.pid_mdoc"
let PID_SdJwtVC_SCOPE = "eu.europa.ec.eudiw.pid_vc_sd_jwt"
let PID_MsoMdoc_SCOPE = "eu.europa.ec.eudiw.pid_mso_mdoc"
//let PID_SdJwtVC_SCOPE = "eu.europa.ec.eudiw.pid_jwt_vc_json"
//let PID_MsoMdoc_SCOPE = "eu.europa.ec.eudiw.pid_mdoc"

let All_Supported_CredentialOffer = """
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Helpers/Wallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ extension Wallet {

// Depending on the mode selected, changes might be
// required on the tests constants file (endpoints, scopes)
let walletMode: WalletMode = .requiresIntervention
let walletMode: WalletMode = .doesNorRequireIntervention

switch walletMode {
case .doesNorRequireIntervention:
Expand Down

0 comments on commit 299ca9a

Please sign in to comment.