*: add password resource to kubernetes storage implementation

This commit is contained in:
Eric Chiang
2016-10-05 16:04:48 -07:00
parent ae3b5ef6e9
commit 7ff3ce85a2
6 changed files with 145 additions and 7 deletions

View File

@@ -75,7 +75,18 @@ func TestURLFor(t *testing.T) {
func TestStorage(t *testing.T) {
client := loadClient(t)
conformance.RunTestSuite(t, func() storage.Storage {
// TODO(erichiang): Tear down namespaces between each iteration.
for _, resource := range []string{
resourceAuthCode,
resourceAuthRequest,
resourceClient,
resourceRefreshToken,
resourceKeys,
resourcePassword,
} {
if err := client.deleteAll(resource); err != nil {
t.Fatalf("delete all %q failed: %v", resource, err)
}
}
return client
})
}