Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1763

Fix security description providers for the validation in jboss-as-subsystem-test

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • None
    • Security
    • None

    Description

      I am adding some more validation of the model. This will be committed to upstream in the next few days. To make the security tests pass I had to override AdditionalInitialization.getModelValidationConfiguration() as follows:

                 @Override
                 protected ValidationConfiguration getModelValidationConfiguration() {
                     return null;
                 }
      

      Returning null basically turns off validation of the providers. These are the errors that happen (this might change a bit before I commit the final version of the validation stuff):

      VALIDATION ERRORS IN MODEL:
      Invalid key 'add' found in Operation 'add' @[("subsystem" => "security")]
      No value-type for type=OBJECT in Parameter 'security-properties' in operation add' @[("subsystem" => "security")] {
          "description" => "List of properties to be added with Security.setProperty(key, value).",
          "type" => OBJECT,
          "required" => false,
          "value-type" => undefined
      }
      No value-type for type=OBJECT in Parameter 'vault' in operation add' @[("subsystem" => "security")] {
          "description" => "Security Vault for attributes.",
          "type" => OBJECT,
          "required" => false,
          "value-type" => undefined
      }
      Invalid key 'security-properties' found @[("subsystem" => "security")]
      Invalid key 'vault' found @[("subsystem" => "security")]
      

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: