diff options
Diffstat (limited to 'internal/signer/linux/util/util_test.go')
-rw-r--r-- | internal/signer/linux/util/util_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/signer/linux/util/util_test.go b/internal/signer/linux/util/util_test.go index cc30a34..5907fbd 100644 --- a/internal/signer/linux/util/util_test.go +++ b/internal/signer/linux/util/util_test.go @@ -5,26 +5,26 @@ import ( ) func TestLoadConfig(t *testing.T) { - config, err := LoadConfig("./test_data/enterprise_certificate_config.json") + config, err := LoadConfig("./test_data/certificate_config.json") if err != nil { t.Fatalf("LoadConfig error: %v", err) } want := "0x1739427" - if config.CertInfo.Slot != want { - t.Errorf("Expected slot is %v, got: %v", want, config.CertInfo.Slot) + if config.CertConfigs.PKCS11.Slot != want { + t.Errorf("Expected slot is %v, got: %v", want, config.CertConfigs.PKCS11.Slot) } want = "gecc" - if config.CertInfo.Label != want { - t.Errorf("Expected label is %v, got: %v", want, config.CertInfo.Label) + if config.CertConfigs.PKCS11.Label != want { + t.Errorf("Expected label is %v, got: %v", want, config.CertConfigs.PKCS11.Label) } want = "pkcs11_module.so" - if config.Libs.PKCS11Module != want { - t.Errorf("Expected pkcs11_module is %v, got: %v", want, config.Libs.PKCS11Module) + if config.CertConfigs.PKCS11.PKCS11Module != want { + t.Errorf("Expected pkcs11_module is %v, got: %v", want, config.CertConfigs.PKCS11.PKCS11Module) } } func TestLoadConfigMissing(t *testing.T) { - _, err := LoadConfig("./test_data/enterprise_certificate_config_missing.json") + _, err := LoadConfig("./test_data/certificate_config_missing.json") if err == nil { t.Error("Expected error but got nil") } |