File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ func TestAuthority_Sign(t *testing.T) {
310
310
extraOpts : extraOpts ,
311
311
signOpts : _signOpts ,
312
312
err : errors .New ("requested duration of 25h0m0s is more than the authorized maximum certificate duration of 24h1m0s" ),
313
- code : http .StatusBadRequest ,
313
+ code : http .StatusForbidden ,
314
314
}
315
315
},
316
316
"fail validate sans when adding common name not in claims" : func (t * testing.T ) * signTest {
@@ -323,7 +323,7 @@ func TestAuthority_Sign(t *testing.T) {
323
323
extraOpts : extraOpts ,
324
324
signOpts : signOpts ,
325
325
err : errors .New ("certificate request does not contain the valid DNS names - got [test.smallstep.com smallstep test], want [test.smallstep.com]" ),
326
- code : http .StatusBadRequest ,
326
+ code : http .StatusForbidden ,
327
327
}
328
328
},
329
329
"fail rsa key too short" : func (t * testing.T ) * signTest {
Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ ZEp7knvU2psWRw==
200
200
return & signTest {
201
201
ca : ca ,
202
202
body : string (body ),
203
- status : http .StatusBadRequest ,
204
- errMsg : errs .BadRequestPrefix ,
203
+ status : http .StatusForbidden ,
204
+ errMsg : errs .ForbiddenPrefix ,
205
205
}
206
206
},
207
207
"ok" : func (t * testing.T ) * signTest {
You can’t perform that action at this time.
0 commit comments