address feedback
This commit is contained in:
parent
e5a7e3d6cb
commit
5ce9737eb4
|
@ -35,10 +35,14 @@ func TestBackend_roleCrud(t *testing.T) {
|
|||
Backend: b,
|
||||
Steps: []logicaltest.TestStep{
|
||||
testAccStepConfig(t),
|
||||
testAccStepRole(t),
|
||||
testAccStepRoleWithOptions(t),
|
||||
testAccStepReadRole(t, "test", testRole),
|
||||
testAccStepReadRole(t, "test2", testRole),
|
||||
testAccStepDeleteRole(t, "test"),
|
||||
testAccStepDeleteRole(t, "test2"),
|
||||
testAccStepReadRole(t, "test", ""),
|
||||
testAccStepReadRole(t, "test2", ""),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ template values are '{{username}}' and
|
|||
|
||||
"consistency": &framework.FieldSchema{
|
||||
Type: framework.TypeString,
|
||||
Default: "Quorum",
|
||||
Description: "The consistency level for the operations; defaults to Quorum.",
|
||||
},
|
||||
},
|
||||
|
@ -131,9 +132,6 @@ func (b *backend) pathRoleCreate(
|
|||
}
|
||||
|
||||
consistencyStr := data.Get("consistency").(string)
|
||||
if consistencyStr == "" {
|
||||
consistencyStr = "Quorum"
|
||||
}
|
||||
_, err = gocql.ParseConsistencyWrapper(consistencyStr)
|
||||
if err != nil {
|
||||
return logical.ErrorResponse(fmt.Sprintf(
|
||||
|
|
Loading…
Reference in a new issue