aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-05-15 23:34:15 +0700
committerShulhan <ms@kilabit.info>2023-05-15 23:34:15 +0700
commitbee390efcc5ab2c03738ee36e06a0bac108ad392 (patch)
tree68e7034ef4e627ee65e3e414f7849243d7c4119c /config_test.go
parentbb1160d3f13514bebcb81e89c082198c5278b89e (diff)
downloadgotp-bee390efcc5ab2c03738ee36e06a0bac108ad392.tar.xz
all: group the key for testing into testdata/keys
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config_test.go b/config_test.go
index e27172d..b877236 100644
--- a/config_test.go
+++ b/config_test.go
@@ -26,14 +26,14 @@ func TestNewConfig(t *testing.T) {
},
}, {
desc: `With openssh rsa`,
- configFile: `testdata/rsa.conf`,
+ configFile: `testdata/with_private_key.conf`,
expConfig: &config{
- PrivateKey: `testdata/rsa`,
+ PrivateKey: `testdata/keys/rsa-openssl.pem`,
Issuers: map[string]string{
`email-domain`: `XYZ`,
`test`: `ABCD`,
},
- file: `testdata/rsa.conf`,
+ file: `testdata/with_private_key.conf`,
},
}}