add-unix-user-hosting-asset-validation #66

Merged
hsh-michaelhoennig merged 11 commits from add-unix-user-hosting-asset-validation into master 2024-06-27 12:39:45 +02:00
No description provided.
hsh-michaelhoennig added 6 commits 2024-06-26 15:12:50 +02:00
hsh-michaelhoennig added 2 commits 2024-06-26 16:29:19 +02:00
hsh-michaelhoennig added 1 commit 2024-06-26 16:39:35 +02:00
hsh-michaelhoennig reviewed 2024-06-27 10:04:59 +02:00
hsh-marcsandlus reviewed 2024-06-27 10:34:53 +02:00
@ -83,0 +92,4 @@
public Map<String, Object> postProcess(final E entity, final Map<String, Object> config) {
final var copy = new HashMap<>(config);
stream(propertyValidators).forEach(p -> {
if ( p.writeOnly) {

isWriteOnly()

isWriteOnly()
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-06-27 10:44:35 +02:00
@ -0,0 +43,4 @@
return this;
}
public StringProperty hidden() {

doku

doku
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-06-27 10:45:59 +02:00
@ -33,2 +33,4 @@
private Boolean required;
private T defaultValue;
protected Function<PropertiesProvider, T> computedBy;
protected boolean computed; // used in descriptor, because computedBy cannot be rendered to a text string

private

private
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-06-27 10:50:47 +02:00
@ -201,0 +231,4 @@
return this;
}
public boolean isComputed() {

kann weg

kann weg
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-06-27 11:16:46 +02:00
@ -12,0 +82,4 @@
"'UNIX_USER:abc00-temp.config.SSD soft quota' is expected to be at most 100 but is 200",
"'UNIX_USER:abc00-temp.config.HDD hard quota' is expected to be at most 0 but is 100",
"'UNIX_USER:abc00-temp.config.HDD soft quota' is expected to be at most 100 but is 200",
"'UNIX_USER:abc00-temp.config.shell' is expected to be one of [/bin/false, /bin/bash, /bin/csh, /bin/dash, /usr/bin/tcsh, /usr/bin/zsh, /usr/bin/passwd] but is '/is/invalid'",

evtl. nur false, bash, csh, ...

evtl. nur false, bash, csh, ...
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus approved these changes 2024-06-27 11:19:20 +02:00
hsh-michaelhoennig added 2 commits 2024-06-27 12:28:14 +02:00
hsh-michaelhoennig merged commit 6167ef2221 into master 2024-06-27 12:39:45 +02:00
hsh-michaelhoennig deleted branch add-unix-user-hosting-asset-validation 2024-06-27 12:39:45 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hostsharing/hs.hsadmin.ng#66
No description provided.