-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update validateUILayouts logic (#21)
We used to have a static verification for the UI layouts returned by the broker, but those are subject to change according to what the system can currently handle. This means that it's up to PAM to provide which layouts are supported, which fields of those layouts are required and what values those fields support. This replaces the previous static implementation of validateUILayouts with a dynamic one that takes into consideration what was specified by PAM. UDENG-1166
- Loading branch information
Showing
16 changed files
with
260 additions
and
164 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 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
5 changes: 5 additions & 0 deletions
5
...etAuthenticationModes/golden/does_not_error_out_when_no_authentication_modes_are_returned
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 +1,6 @@ | ||
MODES: | ||
[] | ||
|
||
VALIDATORS: | ||
required-value: | ||
value: { required: true, supportedValues: [value_type other_value_type] } |
6 changes: 6 additions & 0 deletions
6
.../get_authentication_modes_and_generate_validator_ignoring_whitespaces_in_supported_values
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,6 @@ | ||
MODES: | ||
[{"id":"mode1","label":"Mode 1"}] | ||
|
||
VALIDATORS: | ||
layout-with-spaces: | ||
value: { required: true, supportedValues: [value_type other_value_type] } |
8 changes: 8 additions & 0 deletions
8
...stdata/TestGetAuthenticationModes/golden/get_authentication_modes_and_generate_validators
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,8 @@ | ||
MODES: | ||
[{"id":"mode1","label":"Mode 1"}] | ||
|
||
VALIDATORS: | ||
optional-value: | ||
value: { required: false, supportedValues: [value_type other_value_type] } | ||
required-value: | ||
value: { required: true, supportedValues: [value_type other_value_type] } |
Oops, something went wrong.