fix(e2e): adapt E2E tests to EdgeAgent seed callback API (#238)
Signed-off-by: Pat Losoponkul <[email protected]>
Signed-off-by: Pat Losoponkul <[email protected]>
8.1.1-rc.1 passed { seed } to EdgeAgent's escaping (() async throws -> Seed)?
seed closure, but Swift requires explicit capture semantics for the implicit
self.seed reference:
DidcommAgentAbility.swift:100:21: error: reference to property 'seed' in
closure requires explicit use of 'self' to make capture semantics explicit
Mirror the unit-test pattern (BackupWalletTests in a4cd164): bind a local
'let seed = seed' value copy before the init so the closure captures the
value rather than self (also avoids a retain cycle).
Signed-off-by: Pat Losoponkul <[email protected]>
The EdgeAgent seed was changed from a Seed value to an async closure
(() async throws -> Seed)? in a4cd164 (shipped in 8.1.0), which updated
the unit tests but not the E2E tests, breaking the E2E build:
DidcommAgentAbility.swift:100: error: cannot convert value of type
'Seed' to expected argument type '(() async throws -> Seed)?'
Update the three affected E2E sites to mirror the unit-test pattern:
- DidcommAgentAbility: pass { seed } closure to EdgeAgent init
- EdgeAgentWorkflow: call try await edgeAgent.seed() (x2)
Signed-off-by: Pat Losoponkul <[email protected]>
8.1.1-rc.1 passed { seed } to EdgeAgent's escaping (() async throws -> Seed)?
seed closure, but Swift requires explicit capture semantics for the implicit
self.seed reference:
DidcommAgentAbility.swift:100:21: error: reference to property 'seed' in
closure requires explicit use of 'self' to make capture semantics explicit
Mirror the unit-test pattern (BackupWalletTests in a4cd164): bind a local
'let seed = seed' value copy before the init so the closure captures the
value rather than self (also avoids a retain cycle).
Signed-off-by: Pat Losoponkul <[email protected]>
The EdgeAgent seed was changed from a Seed value to an async closure
(() async throws -> Seed)? in a4cd164 (shipped in 8.1.0), which updated
the unit tests but not the E2E tests, breaking the E2E build:
DidcommAgentAbility.swift:100: error: cannot convert value of type
'Seed' to expected argument type '(() async throws -> Seed)?'
Update the three affected E2E sites to mirror the unit-test pattern:
- DidcommAgentAbility: pass { seed } closure to EdgeAgent init
- EdgeAgentWorkflow: call try await edgeAgent.seed() (x2)
Signed-off-by: Pat Losoponkul <[email protected]>
Signed-off-by: Pat Losoponkul <[email protected]>
The E2E Package.swift declared swift-tools-version 5.7 and a macOS v12 platform, but the SDK root Package.swift requires macOS v14 (raised from v13 to v14 in 8.0.0, commit 6218165). This mismatch broke `xcodebuild build-for-testing` for the e2e target: error: The package product 'EdgeAgent' requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0 (in target 'e2e-tests' from project 'e2e') And with the lower swift-tools-version, `.macOS(.v14)` is itself unavailable (it requires swift-tools 5.9+, which introduced the v14 platform). Bump swift-tools-version to 5.9 and raise the E2E macOS platform to v14 so the test target builds against the 8.x SDK. Signed-off-by: Pat Losoponkul <[email protected]>
The E2E Package.swift declared swift-tools-version 5.7 and a macOS v12 platform, but the SDK root Package.swift requires macOS v14 (raised from v13 to v14 in 8.0.0, commit 6218165). This mismatch broke `xcodebuild build-for-testing` for the e2e target: error: The package product 'EdgeAgent' requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0 (in target 'e2e-tests' from project 'e2e') And with the lower swift-tools-version, `.macOS(.v14)` is itself unavailable (it requires swift-tools 5.9+, which introduced the v14 platform). Bump swift-tools-version to 5.9 and raise the E2E macOS platform to v14 so the test target builds against the 8.x SDK. Signed-off-by: Pat Losoponkul <[email protected]>
The E2E Package.swift declared swift-tools-version 5.7 and a macOS v12 platform, but the SDK root Package.swift requires macOS v14 (raised from v13 to v14 in 8.0.0, commit 6218165). This mismatch broke `xcodebuild build-for-testing` for the e2e target: error: The package product 'EdgeAgent' requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0 (in target 'e2e-tests' from project 'e2e') And with the lower swift-tools-version, `.macOS(.v14)` is itself unavailable (it requires swift-tools 5.9+, which introduced the v14 platform). Bump swift-tools-version to 5.9 and raise the E2E macOS platform to v14 so the test target builds against the 8.x SDK. Signed-off-by: Pat Losoponkul <[email protected]>
The E2E target declared macOS v12, but the SDK root Package.swift raised its platform floor to macOS v14 in 8.0.0. xcodebuild build-for-testing fails: 'EdgeAgent requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0'. Signed-off-by: Pat Losoponkul <[email protected]>
The E2E target declared macOS v12, but the SDK root Package.swift raised its platform floor to macOS v14 in 8.0.0. xcodebuild build-for-testing fails: 'EdgeAgent requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0'. Signed-off-by: Pat Losoponkul <[email protected]>
The E2E target declared macOS v12, but the SDK root Package.swift raised its platform floor to macOS v14 in 8.0.0. xcodebuild build-for-testing fails: 'EdgeAgent requires minimum platform version 14.0 for the macOS platform, but this target supports 13.0'. Signed-off-by: Pat Losoponkul <[email protected]>