fix: add back commented tests
This commit is contained in:
parent
ab5197500c
commit
a9550a746f
1 changed files with 8 additions and 8 deletions
|
@ -248,14 +248,14 @@ func TestVaultCAS_CreateCertificate(t *testing.T) {
|
||||||
Certificate: mustParseCertificate(t, testCertificateSigned),
|
Certificate: mustParseCertificate(t, testCertificateSigned),
|
||||||
CertificateChain: []*x509.Certificate{},
|
CertificateChain: []*x509.Certificate{},
|
||||||
}, false},
|
}, false},
|
||||||
// {"fail CSR", fields{client, options}, args{&apiv1.CreateCertificateRequest{
|
{"fail CSR", fields{client, options}, args{&apiv1.CreateCertificateRequest{
|
||||||
// CSR: nil,
|
CSR: nil,
|
||||||
// Lifetime: time.Hour,
|
Lifetime: time.Hour,
|
||||||
// }}, nil, true},
|
}}, nil, true},
|
||||||
// {"fail lifetime", fields{client, options}, args{&apiv1.CreateCertificateRequest{
|
{"fail lifetime", fields{client, options}, args{&apiv1.CreateCertificateRequest{
|
||||||
// CSR: mustParseCertificateRequest(t, testCertificateCsrEc),
|
CSR: mustParseCertificateRequest(t, testCertificateCsrEc),
|
||||||
// Lifetime: 0,
|
Lifetime: 0,
|
||||||
// }}, nil, true},
|
}}, nil, true},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue