Skip to content

Commit b3aa808

Browse files
committed
Merge remote-tracking branch 'origin/pull/432'
* origin/pull/432: certs: import 2023 Microsoft keys
2 parents 7278a8f + 6df94e4 commit b3aa808

8 files changed

+8
-8
lines changed

certs/certs_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@ func TestGetVendors(t *testing.T) {
1414

1515
func TestGetOEMCertsDb(t *testing.T) {
1616
db, _ := GetOEMCerts("microsoft", "db")
17-
if len(*db) != 2 {
18-
t.Fatalf("GetOEMCerts: not correct size, got %d, expected %d", len(*db), 2)
17+
if len(*db) != 5 {
18+
t.Fatalf("GetOEMCerts: not correct size, got %d, expected %d", len(*db), 5)
1919
}
2020
}
2121

2222
func TestGetOEMCertsKek(t *testing.T) {
2323
kek, _ := GetOEMCerts("microsoft", "KEK")
24-
if len(*kek) != 1 {
25-
t.Fatalf("GetOEMCerts: not correct size, got %d, expected %d", len(*kek), 1)
24+
if len(*kek) != 2 {
25+
t.Fatalf("GetOEMCerts: not correct size, got %d, expected %d", len(*kek), 2)
2626
}
2727
}
2828

2929
func TestDefaultCertsDb(t *testing.T) {
3030
db, _ := GetDefaultCerts("db")
31-
if len(*db) != 2 {
32-
t.Fatalf("GetDefaultCerts: not correct size, got %d, expected %d", len(*db), 2)
31+
if len(*db) != 5 {
32+
t.Fatalf("GetDefaultCerts: not correct size, got %d, expected %d", len(*db), 5)
3333
}
3434
}
3535

3636
func TestDefaultCertsKek(t *testing.T) {
3737
kek, _ := GetDefaultCerts("KEK")
38-
if len(*kek) != 1 {
39-
t.Fatalf("GetDefaultCerts: not correct size, got %d, expected %d", len(*kek), 1)
38+
if len(*kek) != 2 {
39+
t.Fatalf("GetDefaultCerts: not correct size, got %d, expected %d", len(*kek), 2)
4040
}
4141
}
File renamed without changes.
1.43 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
1.42 KB
Binary file not shown.
1.41 KB
Binary file not shown.
1.42 KB
Binary file not shown.

0 commit comments

Comments
 (0)