localhost1978's picture
download
raw
2.4 kB
import Testing
@testable import SSK_Providers
@Suite("Providers Configuration Suite")
struct ProvidersConfigurationTests {
@Test("Verify default SSKProvidersConfiguration values")
func testDefaultProvidersConfiguration() {
let config = SSKProvidersConfiguration.default
#expect(config.hpkeServiceTag == "com.ssk.xwing-hpke-private-key")
#expect(config.hpkeAccount == "local-hpke-xwing")
#expect(config.zkIdentityKeyID == "com.ssk.zk-identity-private-key")
#expect(config.tlsIdentityLabel == "com.sovereignsurvivalkit.mesh.tls-identity")
#expect(config.wireGuardExtensionIdentifier == "com.sovereignsurvivalkit.wireguard.extension")
#expect(config.tdlibApiId == "group.com.superbright.ssk.mesh.api")
#expect(config.storageHostPort == 1978)
#expect(config.storageHostLoggerLabel == "com.ssk.storagehost")
#expect(config.bonjourVaultServiceType == "_ssk-vault._udp")
#expect(config.bonjourServiceDomain == "local.")
}
@Test("Verify custom SSKProvidersConfiguration overrides")
func testCustomProvidersConfiguration() {
let customConfig = SSKProvidersConfiguration(
hpkeServiceTag: "com.custom.hpke",
hpkeAccount: "custom-hpke-account",
zkIdentityKeyID: "com.custom.zk",
tlsIdentityLabel: "com.custom.tls",
wireGuardExtensionIdentifier: "com.custom.wireguard",
tdlibApiId: "custom.tdlib.api",
storageHostPort: 9000,
storageHostLoggerLabel: "custom.logger",
bonjourVaultServiceType: "_custom-vault._udp",
bonjourServiceDomain: "mesh.local."
)
#expect(customConfig.hpkeServiceTag == "com.custom.hpke")
#expect(customConfig.hpkeAccount == "custom-hpke-account")
#expect(customConfig.zkIdentityKeyID == "com.custom.zk")
#expect(customConfig.tlsIdentityLabel == "com.custom.tls")
#expect(customConfig.wireGuardExtensionIdentifier == "com.custom.wireguard")
#expect(customConfig.tdlibApiId == "custom.tdlib.api")
#expect(customConfig.storageHostPort == 9000)
#expect(customConfig.storageHostLoggerLabel == "custom.logger")
#expect(customConfig.bonjourVaultServiceType == "_custom-vault._udp")
#expect(customConfig.bonjourServiceDomain == "mesh.local.")
}
}

Xet Storage Details

Size:
2.4 kB
·
Xet hash:
5eabee27fe8fda01ce478a24f19aaa2a904cf15973f8702b10623851935ac2ce

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.