gencrl_test.go 470 B

1234567891011121314151617181920212223242526
  1. package gencrl
  2. import (
  3. "testing"
  4. "github.com/cloudflare/cfssl/cli"
  5. )
  6. func TestGencrl(t *testing.T) {
  7. var err error
  8. err = gencrlMain([]string{"testdata/serialList", "testdata/caTwo.pem", "testdata/ca-keyTwo.pem"}, cli.Config{})
  9. if err != nil {
  10. t.Fatal(err)
  11. }
  12. }
  13. func TestGencrlTime(t *testing.T) {
  14. err := gencrlMain([]string{"testdata/serialList", "testdata/caTwo.pem", "testdata/ca-keyTwo.pem", "123"}, cli.Config{})
  15. if err != nil {
  16. t.Fatal(err)
  17. }
  18. }