-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation for
tags
of Attributes (#436)
* feat: add valiadation of tags on attribute creation * chore: fix tests with invalid tags * feat: check for tags when accepting attribute requests * chore: remove duplicate test * chore: styling * chore: fix tags in tests * chore: fix tags in tests * chore: PR comments * chore: fix eslint * chore: pr comments * chore: fix tests * chore: pr comments * chore: improve tag validation function * chore: improve tag validation function * chore: make tag seperator a constant on the attributes controller * refactor: massively simplify validateTags method * refactor: use string instead of RegEx for expected error messages * feat: incorporate review comments * refactor: remove variable declaration for values used once * feat: add customTagPrefix to IdentityAttributeQuery and IQLQuery tests * feat: add function for validating tags of AttributeQueries as well * feat: apply tag validation to outgoing RequestItems and queries as well * refactor: more general error message fitting invalid tags of AttributeQueries as well * test: tag validation of outgoing CreateAttributeRequestItem * test: tag validation of outgoing ReadAttributeRequestItem * test: tag validation of outgoing ProposeAttributeRequestItem * refactor: use more descriptive test values for invalid tags * feat: apply tag validation to outgoing ShareAttributeRequestItems * test: tag validation of outgoing ShareAttributeRequestItem * fix: failing tests due to unchanged test values * refactor: use singular in test names when testing a single invalid tag * refactor: be more precise within test names * feat: incorporate review comments --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Julian König <[email protected]> Co-authored-by: Britta Stallknecht <[email protected]> Co-authored-by: Britta Stallknecht <[email protected]>
- Loading branch information
1 parent
154ce79
commit fb4d660
Showing
24 changed files
with
897 additions
and
1,767 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Oops, something went wrong.