Skip to content

Commit

Permalink
add config test case for new param
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcraig committed Oct 24, 2023
1 parent 632b6e6 commit be57a77
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions path_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,23 @@ func TestConfig_Create(t *testing.T) {
),
},
},
"skip initial static rotation set": {
createData: fieldData(map[string]interface{}{
"binddn": "tester",
"bindpass": "pa$$w0rd",
"url": "ldap://138.91.247.105",
"skip_static_role_import_rotation": true,
}),
createExpectErr: false,
expectedReadResp: &logical.Response{
Data: ldapResponseData(
"binddn", "tester",
"url", "ldap://138.91.247.105",
"skip_static_role_import_rotation", true,
"request_timeout", 90,
),
},
},
"both password policy and password length": {
createData: fieldData(map[string]interface{}{
"binddn": "tester",
Expand Down

0 comments on commit be57a77

Please sign in to comment.