summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/src/freeipa/entity.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js
index 60dcd912a..e0e5182b0 100644
--- a/install/ui/src/freeipa/entity.js
+++ b/install/ui/src/freeipa/entity.js
@@ -461,6 +461,11 @@ exp.entity_post_ops = {
init: function(entity, spec, context) {
+ if (typeof spec.enable_test === 'function') {
+ if (!spec.enable_test()) throw {
+ expected: true
+ };
+ }
if (entity.init) {
entity.init(spec, context);
}