diff --git a/Sources/Packages/Tests/SecretAgentKitTests/OpenSSHReaderTests.swift b/Sources/Packages/Tests/SSHProtocolKitTests/OpenSSHReaderTests.swift similarity index 93% rename from Sources/Packages/Tests/SecretAgentKitTests/OpenSSHReaderTests.swift rename to Sources/Packages/Tests/SSHProtocolKitTests/OpenSSHReaderTests.swift index 34201c6..1e3d95e 100644 --- a/Sources/Packages/Tests/SecretAgentKitTests/OpenSSHReaderTests.swift +++ b/Sources/Packages/Tests/SSHProtocolKitTests/OpenSSHReaderTests.swift @@ -1,8 +1,6 @@ import Foundation import Testing -@testable import SecretAgentKit -@testable import SecureEnclaveSecretKit -@testable import SmartCardSecretKit +import SSHProtocolKit @Suite struct OpenSSHReaderTests { diff --git a/Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift b/Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift index bbef669..f946524 100644 --- a/Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift +++ b/Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift @@ -1,6 +1,7 @@ import Foundation import Testing import CryptoKit +@testable import SSHProtocolKit @testable import SecretKit @testable import SecretAgentKit @@ -44,8 +45,8 @@ import CryptoKit let agent = Agent(storeList: list) let response = await agent.handle(request: request, provenance: .test) let responseReader = OpenSSHReader(data: response) - let length = try responseReader.readNextBytes(as: UInt32.self).bigEndian - let type = try responseReader.readNextBytes(as: UInt8.self).bigEndian + let length = try responseReader.readNextBytes(as: UInt32.self) + let type = try responseReader.readNextBytes(as: UInt8.self) #expect(length == response.count - MemoryLayout.size) #expect(type == SSHAgent.Response.agentSignResponse.rawValue) let outer = OpenSSHReader(data: responseReader.remaining) diff --git a/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift b/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift index c3a01d7..381f14d 100644 --- a/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift +++ b/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift @@ -1,6 +1,7 @@ import Foundation import SecretKit import CryptoKit +import SSHProtocolKit struct Stub {} diff --git a/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme index 500661b..7b1c414 100644 --- a/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme +++ b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme @@ -14,7 +14,8 @@ shouldUseLaunchSchemeArgsEnv = "YES"> + reference = "container:Config/Secretive.xctestplan" + default = "YES">