Buckets:
localhost1978/localhost / LOCALHOST1978 /Modules /SSK_Providers /Tests /SSK_ProvidersTests /ProvidersConfigurationTests.swift
| import Testing | |
| @testable import SSK_Providers | |
| ("Providers Configuration Suite") | |
| struct ProvidersConfigurationTests { | |
| ("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.") | |
| } | |
| ("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.