-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-125772: Add tests for audit component (#9341)
- Loading branch information
Showing
18 changed files
with
383 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,47 @@ | ||
import { marker as T } from '@biesbjerg/ngx-translate-extract-marker'; | ||
|
||
export enum AuditService { | ||
Smb = 'SMB', | ||
Middleware = 'MIDDLEWARE', | ||
} | ||
|
||
export enum AuditEvent { | ||
Connect = 'CONNECT', | ||
Disconnect = 'DISCONNECT', | ||
Create = 'CREATE', | ||
Close = 'CLOSE', | ||
Read = 'READ', | ||
Write = 'WRITE', | ||
OffloadRead = 'OFFLOAD_READ', | ||
OffloadWrite = 'OFFLOAD_WRITE', | ||
SetAcl = 'SET_ACL', | ||
Rename = 'RENAME', | ||
Unlink = 'UNLINK', | ||
SetAttr = 'SET_ATTR', | ||
SetQuota = 'SET_QUOTA', | ||
Authentication = 'AUTHENTICATION', | ||
MethodCall = 'METHOD_CALL', | ||
} | ||
|
||
export const auditServiceLabels = new Map<AuditService, string>([ | ||
[AuditService.Smb, T('SMB')], | ||
[AuditService.Middleware, T('Middleware')], | ||
]); | ||
|
||
export const auditEventLabels = new Map<AuditEvent, string>([ | ||
[AuditEvent.Connect, T('Connect')], | ||
[AuditEvent.Disconnect, T('Disconnect')], | ||
[AuditEvent.Create, T('Create')], | ||
[AuditEvent.Close, T('Close')], | ||
[AuditEvent.Read, T('Read')], | ||
[AuditEvent.Write, T('Write')], | ||
[AuditEvent.OffloadRead, T('Offload Read')], | ||
[AuditEvent.OffloadWrite, T('Offload Write')], | ||
[AuditEvent.SetAcl, T('Set ACL')], | ||
[AuditEvent.Rename, T('Rename')], | ||
[AuditEvent.Unlink, T('Unlink')], | ||
[AuditEvent.SetAttr, T('Set Attribute')], | ||
[AuditEvent.SetQuota, T('Set Quota')], | ||
[AuditEvent.Authentication, T('Authentication')], | ||
[AuditEvent.MethodCall, T('Method Call')], | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/modules/search-input/components/advanced-search/advanced-search.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/modules/search-input/services/query-to-api/query-to-api.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.