chore: add audit log tests (#4764)

* added test for stopping a workspace build

* formatted sfriendly string; added tests

* logging unmarshal error in auditLogDescription

* prettier

* got rid of extra workspace word

* PR feedback

* fixed mistake; wrote tests in penance

* fix be
This commit is contained in:
Kira Pilot
2022-10-27 15:57:41 -04:00
committed by GitHub
parent 01ec483ecc
commit 8282e46813
10 changed files with 104 additions and 20 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func ResourceTarget[T Auditable](tgt T) string {
return typed.Name
case database.WorkspaceBuild:
// this isn't used
return string(typed.BuildNumber)
return ""
case database.GitSSHKey:
return typed.PublicKey
case database.Group: