Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6602

Remove the YamlExtensionTestCase maintenance need upon default server configuration changes

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Test Suite

      YamlExtensionTestCase uses hardcoded files (see test.xml and testWithCli.xml under wildfly-core/testsuite/manualmode/src/test/resources/org/jboss/as/test/manualmode/management/persistence) that represent the expected server configurations we should have after applying the configuration via yaml.

      These files need to be maintained if we change the default server configuration in a different Jira. See for example https://github.com/wildfly/wildfly-core/pull/5764 where adding a new log configuration requires the modification of the YamlExtensionTestCase.

      To avoid this maintenance, we could generate these configurations using a different method, for example

      1. Applying standard management operations.
      2. Grabbing a copy of the generate files
      3. Discard them or rollback the changes
      4. Using the grabbed files as a source of trust to compare with the yaml configuration method.

              Unassigned Unassigned
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: