Skip to content

Commit ec15620

Browse files
committed
bonus broken test
1 parent 067a9a3 commit ec15620

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

client_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,3 +1217,16 @@ func TestDownloads(t *testing.T) {
12171217
assert.Equal(t, "0.8.4", resp.VersionInfo.Latest.DNClient)
12181218
assert.Equal(t, "0.5.1", resp.VersionInfo.Latest.Mobile)
12191219
}
1220+
1221+
func TestNebulaPemBanners(t *testing.T) {
1222+
t.SkipNow() //todo this is correct for 25519 but not p256. Once this test passes, we can lean on Nebula's implementations.
1223+
const NebulaECDSAP256PublicKeyBanner = "NEBULA ECDSA P256 PUBLIC KEY"
1224+
const NebulaEd25519PublicKeyBanner = "NEBULA ED25519 PUBLIC KEY"
1225+
ca, _ := dnapitest.NebulaCACert()
1226+
pub := ca.MarshalPublicKeyPEM()
1227+
assert.Contains(t, string(pub), NebulaEd25519PublicKeyBanner)
1228+
1229+
ca, _ = dnapitest.NebulaCACertP256()
1230+
pub = ca.MarshalPublicKeyPEM()
1231+
assert.Contains(t, string(pub), NebulaECDSAP256PublicKeyBanner)
1232+
}

0 commit comments

Comments
 (0)