1234567891011121314151617181920212223242526 |
- package gencrl
- import (
- "testing"
- "github.com/cloudflare/cfssl/cli"
- )
- func TestGencrl(t *testing.T) {
- var err error
- err = gencrlMain([]string{"testdata/serialList", "testdata/caTwo.pem", "testdata/ca-keyTwo.pem"}, cli.Config{})
- if err != nil {
- t.Fatal(err)
- }
- }
- func TestGencrlTime(t *testing.T) {
- err := gencrlMain([]string{"testdata/serialList", "testdata/caTwo.pem", "testdata/ca-keyTwo.pem", "123"}, cli.Config{})
- if err != nil {
- t.Fatal(err)
- }
- }
|