mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
server: Add a is_readonly attribute to the schema
This commit is contained in:
committed by
nitnelave
parent
3ec44a58be
commit
b1384818d2
@@ -196,6 +196,7 @@ mod tests {
|
||||
is_visible: true,
|
||||
is_editable: true,
|
||||
is_hardcoded: true,
|
||||
is_readonly: false,
|
||||
},
|
||||
AttributeSchema {
|
||||
name: "first_name".into(),
|
||||
@@ -204,6 +205,7 @@ mod tests {
|
||||
is_visible: true,
|
||||
is_editable: true,
|
||||
is_hardcoded: true,
|
||||
is_readonly: false,
|
||||
},
|
||||
AttributeSchema {
|
||||
name: "last_name".into(),
|
||||
@@ -212,6 +214,7 @@ mod tests {
|
||||
is_visible: true,
|
||||
is_editable: true,
|
||||
is_hardcoded: true,
|
||||
is_readonly: false,
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -246,6 +249,7 @@ mod tests {
|
||||
is_visible: false,
|
||||
is_editable: false,
|
||||
is_hardcoded: false,
|
||||
is_readonly: false,
|
||||
};
|
||||
assert!(fixture
|
||||
.handler
|
||||
@@ -329,6 +333,7 @@ mod tests {
|
||||
is_visible: true,
|
||||
is_editable: false,
|
||||
is_hardcoded: false,
|
||||
is_readonly: false,
|
||||
};
|
||||
assert!(fixture
|
||||
.handler
|
||||
|
||||
Reference in New Issue
Block a user