-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit test for issuer-signed cbor data
- Loading branch information
Showing
3 changed files
with
24 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
omppc3N1ZXJBdXRohEOhASahGCFZAoUwggKBMIICJqADAgECAgkWSuWZAtwFEGQwCgYIKoZIzj0EAwIwWDELMAkGA1UEBhMCQkUxHDAaBgNVBAoTE0V1cm9wZWFuIENvbW1pc3Npb24xKzApBgNVBAMTIkVVIERpZ2l0YWwgSWRlbnRpdHkgV2FsbGV0IFRlc3QgQ0EwHhcNMjMwNTMwMTIzMDAwWhcNMjQwNTI5MTIzMDAwWjBlMQswCQYDVQQGEwJCRTEcMBoGA1UEChMTRXVyb3BlYW4gQ29tbWlzc2lvbjE4MDYGA1UEAxMvRVUgRGlnaXRhbCBJZGVudGl0eSBXYWxsZXQgVGVzdCBEb2N1bWVudCBTaWduZXIwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR8kxP0waSqTrCz62gRpJlOWd5nmWQxwvOuCI63oQYctli9jDkSbBlZeskN+Z0HjT7zkTujS9ssvGmH0Cfpr538o4HLMIHIMB0GA1UdDgQWBBTRpLEkOTL7RXJymUjyUn2VWKdNLTAfBgNVHSMEGDAWgBQykesOHAEdFA52T2xP6kyWONr7BDAOBgNVHQ8BAf8EBAMCB4AwEgYDVR0lBAswCQYHKIGMXQUBAjAfBgNVHRIEGDAWhhRodHRwOi8vd3d3LmV1ZGl3LmRldjBBBgNVHR8EOjA4MDagNKAyhjBodHRwczovL3N0YXRpYy5ldWRpdy5kZXYvcGtpL2NybC9pc28xODAxMy1kcy5jcmwwCgYIKoZIzj0EAwIDSQAwRgIhAN5fmOce9ldSEmvyxLhP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19qSjKvl7PVkYz6YBWhkaWdlc3RJRAdsZWxlbWVudFZhbHVlY1VUT3FlbGVtZW50SWRlbnRpZmllcnFpc3N1aW5nX2F1dGhvcml0edgYWI2kZnJhbmRvbVhA/yBHjAHmxXcD5F5E7uH61Fuvu3rRAMsFM3XnGev0qiY2E68ptPF5Pif/t74UHsQgB71QdMXlj6qq/VGieVCUoGhkaWdlc3RJRAZsZWxlbWVudFZhbHVlaTExMTExMTExNHFlbGVtZW50SWRlbnRpZmllcm9kb2N1bWVudF9udW1iZXLYGFiVpGZyYW5kb21YQGR1Hvlm41HdMvqz86rz0+tuMaUaGm/kyjFvT5p60knz++dv+htZC8pUugoHahEzLIaa29FajEDpxtZBXXJ7jvNoZGlnZXN0SUQYK2xlbGVtZW50VmFsdWVqOTAxMDE2NzQ2NHFlbGVtZW50SWRlbnRpZmllcnVhZG1pbmlzdHJhdGl2ZV9udW1iZXLYGFiHpGZyYW5kb21YQMjoQx3iRtzw7AJKwu+BIdtm01ivNfqejekxh9oBJ5GwXAwHJVfB9IpYoLt/Jg36hMwxwKnObQXc6Gsiq0CFvaloZGlnZXN0SUQYJWxlbGVtZW50VmFsdWViU0VxZWxlbWVudElkZW50aWZpZXJvaXNzdWluZ19jb3VudHJ52BhYjqRmcmFuZG9tWEB6pSEMLXaDJFLYp7zIqS2uWV+MiN9atCpSDe5nsvhb1gNZOa12EWihlFJEr57u0hqAy5pgSuE4FLR+ExI/WF3laGRpZ2VzdElEGBpsZWxlbWVudFZhbHVlZFNFLUlxZWxlbWVudElkZW50aWZpZXJ0aXNzdWluZ19qdXJpc2RpY3Rpb24= |
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,23 @@ | ||
import XCTest | ||
import Foundation | ||
@testable import WalletStorage | ||
import MdocDataModel18013 | ||
|
||
final class eudi_lib_ios_wallet_storageTests: XCTestCase { | ||
|
||
|
||
func testIssueRequestPublicKey() throws { | ||
let ir = try IssueRequest() | ||
let pem = try ir.getPublicKeyPEM() | ||
XCTAssert(Bool(pem.count > 0)) | ||
print(pem) | ||
} | ||
|
||
func testLoadPidIssuerSigned() { | ||
let base64str = String(data: Data(name: "eu_pid_base64", ext: "txt", from: Bundle.module)!, encoding: .utf8)! | ||
let pidIssueredSigned = Data(base64Encoded: base64str)! | ||
print(pidIssueredSigned.count) | ||
} | ||
|
||
|
||
} |
11 changes: 0 additions & 11 deletions
11
Tests/eudi-lib-ios-wallet-storageTests/eudi_lib_ios_wallet_storageTests.swift
This file was deleted.
Oops, something went wrong.