address feedback

This commit is contained in:
Laura Bennett 2016-10-10 12:16:55 -04:00
parent e5a7e3d6cb
commit 5ce9737eb4
2 changed files with 5 additions and 3 deletions

View file

@ -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", ""),
},
})
}

View file

@ -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(