Improve tests (#1379)
This commit is contained in:
parent
00d176627a
commit
7c4748b51c
|
@ -2363,24 +2363,24 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
|
|||
'type' => 'int'
|
||||
},
|
||||
'rest2fInitArgs' => {
|
||||
'keyTest' => qr/^\S+$/,
|
||||
'test' => sub {
|
||||
1;
|
||||
},
|
||||
'type' => 'keyTextContainer'
|
||||
'keyMsgFail' => '__badKeyName__',
|
||||
'keyTest' => qr/^\w+$/,
|
||||
'msgFail' => '__badValue__',
|
||||
'test' => qr/^\w+$/,
|
||||
'type' => 'keyTextContainer'
|
||||
},
|
||||
'rest2fInitUrl' => {
|
||||
'type' => 'url'
|
||||
},
|
||||
'rest2fVerifyArgs' => {
|
||||
'keyTest' => qr/^\S+$/,
|
||||
'test' => sub {
|
||||
1;
|
||||
},
|
||||
'type' => 'keyTextContainer'
|
||||
},
|
||||
'rest2fVerifyUrl' => {
|
||||
'type' => 'url'
|
||||
'keyMsgFail' => '__badKeyName__',
|
||||
'keyTest' => qr/^\w+$/,
|
||||
'msgFail' => '__badValue__',
|
||||
'test' => qr/^\w+$/,
|
||||
'type' => 'url'
|
||||
},
|
||||
'restAuthUrl' => {
|
||||
'type' => 'url'
|
||||
|
|
|
@ -1093,23 +1093,27 @@ sub attributes {
|
|||
documentation => 'REST second factor activation',
|
||||
},
|
||||
rest2fInitUrl => {
|
||||
type => 'url',
|
||||
type => 'url',
|
||||
documentation => 'REST 2F init URL',
|
||||
},
|
||||
rest2fInitArgs => {
|
||||
type => 'keyTextContainer',
|
||||
keyTest => qr/^\S+$/,
|
||||
test => sub { 1 },
|
||||
type => 'keyTextContainer',
|
||||
keyTest => qr/^\w+$/,
|
||||
keyMsgFail => '__badKeyName__',
|
||||
test => qr/^\w+$/,
|
||||
msgFail => '__badValue__',
|
||||
documentation => 'Args for REST 2F init',
|
||||
},
|
||||
rest2fVerifyUrl => {
|
||||
type => 'url',
|
||||
type => 'url',
|
||||
keyTest => qr/^\w+$/,
|
||||
keyMsgFail => '__badKeyName__',
|
||||
test => qr/^\w+$/,
|
||||
msgFail => '__badValue__',
|
||||
documentation => 'REST 2F init URL',
|
||||
},
|
||||
rest2fVerifyArgs => {
|
||||
type => 'keyTextContainer',
|
||||
keyTest => qr/^\S+$/,
|
||||
test => sub { 1 },
|
||||
type => 'keyTextContainer',
|
||||
documentation => 'Args for REST 2F init',
|
||||
},
|
||||
rest2fAuthnLevel => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user