Test the persisted data for Create and Update catalog.

This commit is contained in:
Todd Knight committed 2021-11-16 11:05:07 -07:00
1 parent f3819aa37a
commit d8471243e3
2 files changed
+113 -8

No files matched your search

-8
View File
@@ -69,7 +69,6 @@ func (p *AzurePlugin) OnUpdateCatalog(ctx context.Context, req *pb.OnUpdateCatal
// update.
return &pb.OnUpdateCatalogResponse{}, nil
}
sanitizeSecretsFields(secrets)
if err := validateSecrets(secrets); err != nil {
return nil, err
}
@@ -370,13 +369,6 @@ func splitId(in, expectedService, expectedResource string) (string, string, erro
return splitId[3], splitId[7], nil
}
func sanitizeSecretsFields(in *structpb.Struct) {
// Only we are allowed to set this value
if fields := in.GetFields(); fields != nil {
delete(fields, constCredsLastRotatedTime)
}
}
// Returns an invalid argument error with the problematic fields included
// in the error message.
func invalidArgumentError(msg string, f map[string]string) error {