-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…licy-management Feature/#832 enable policy management
- Loading branch information
Showing
55 changed files
with
3,115 additions
and
240 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+137 KB
docs/src/images/user-manual/policy-management/delete-policies-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
31 changes: 31 additions & 0 deletions
31
frontend/src/app/mocks/services/policy-mock/policy.model.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { getOperatorTypeSign, OperatorType } from '@page/policies/model/policy.model'; | ||
|
||
describe('getOperatorTypeSign', () => { | ||
it('should return "=" for OperatorType.EQ', () => { | ||
expect(getOperatorTypeSign(OperatorType.EQ)).toBe('='); | ||
}); | ||
|
||
it('should return "!=" for OperatorType.NEQ', () => { | ||
expect(getOperatorTypeSign(OperatorType.NEQ)).toBe('!='); | ||
}); | ||
|
||
it('should return "<" for OperatorType.LT', () => { | ||
expect(getOperatorTypeSign(OperatorType.LT)).toBe('<'); | ||
}); | ||
|
||
it('should return ">" for OperatorType.GT', () => { | ||
expect(getOperatorTypeSign(OperatorType.GT)).toBe('>'); | ||
}); | ||
|
||
it('should return "<=" for OperatorType.LTEQ', () => { | ||
expect(getOperatorTypeSign(OperatorType.LTEQ)).toBe('<='); | ||
}); | ||
|
||
it('should return ">=" for OperatorType.GTEQ', () => { | ||
expect(getOperatorTypeSign(OperatorType.GTEQ)).toBe('>='); | ||
}); | ||
|
||
it('should return the string representation of the type for unknown types', () => { | ||
expect(getOperatorTypeSign('UNKNOWN' as OperatorType)).toBe('UNKNOWN'); | ||
}); | ||
}); |
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
Oops, something went wrong.