modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredAndRawServer.groovy
| 4 ++--
modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredServer.groovy
| 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6b359822895dc79a6d282e5191ccc4d0ff58a380
Author: John Sanda <john(a)localhost.localdomain>
Date: Wed Mar 3 12:09:18 2010 -0500
Changing default structured validation and update error messages
diff --git
a/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredAndRawServer.groovy
b/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredAndRawServer.groovy
index 39721d0..97f3622 100644
---
a/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredAndRawServer.groovy
+++
b/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredAndRawServer.groovy
@@ -168,14 +168,14 @@ class StructuredAndRawServer extends ConfigurationServer implements
ResourceComp
void validateStructuredConfiguration(Configuration config) {
def failValidation =
resourceContext.pluginConfiguration.getSimple("failStructuredValidation")
if (failValidation != null && failValidation.booleanValue) {
- throw new RuntimeException("Validation failed for $config");
+ throw new RuntimeException("Structured validation failed for Structured and
Raw Server");
}
}
void persistStructuredConfiguration(Configuration config) {
def failValidation =
resourceContext.pluginConfiguration.getSimple("failStructuredUpdate")
if (failValidation != null && failValidation.booleanValue) {
- throw new RuntimeException("Update failed for $configuration");
+ throw new RuntimeException("Structured pdate failed for Structured and Raw
Server");
}
pauseForStructuredUpdateIfDelaySet()
diff --git
a/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredServer.groovy
b/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredServer.groovy
index 2e9b2c5..7579533 100644
---
a/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredServer.groovy
+++
b/modules/plugins/raw-config-test/src/main/groovy/org/rhq/plugins/test/rawconfig/StructuredServer.groovy
@@ -96,7 +96,7 @@ class StructuredServer extends ConfigurationServer implements
ResourceComponent,
void persistStructuredConfiguration(Configuration configuration) {
def failValidation =
resourceContext.pluginConfiguration.getSimple("failStructuredUpdate")
if (failValidation != null && failValidation.booleanValue) {
- throw new RuntimeException("Validation failed for $configuration");
+ throw new RuntimeException("Update failed for Structured Server");
}
pauseForStructuredUpdateIfDelaySet()
@@ -143,7 +143,7 @@ class StructuredServer extends ConfigurationServer implements
ResourceComponent,
void validateStructuredConfiguration(Configuration configuration) {
def failValidation =
resourceContext.pluginConfiguration.getSimple("failStructuredValidation")
if (failValidation != null && failValidation.booleanValue) {
- throw new RuntimeException("Validation failed for $configuration");
+ throw new RuntimeException("Validation failed for Structured Server");
}
}
Show replies by date