Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1377

Maven plugin and ANT tasks: Allow user and role definitions as XML tags

    Details

      Description

      Currently users and their roles are defined as configuration property.
      This approach has several disadvantages as it restrict possible values - they cannot contain : and | due to parsing - and it also complicates adding new users to configuration which has already some users defined - for example if we have maven profile with additional users.

      Solution could be to create tags for defining users and their roles in maven plugin and add user list to LocalConfiguration which will be filled by current configuration property and new maven tags. This would also need refactoring of all containers which currently retrieve users by configuration property to use this new user list (it can bring small risk of regression for containers which aren't tested in automation). Or possible approach would be to implement this just for some containers, which are covered by tests, rest of containers would still rely just on configuration property.

      Maven configuration should look for example like this:

      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
        <configuration>
          <configuration>
            ...
            <users>
              <user>
                <name/>
                <password/>
                <roles>
                  <role/>
                  <role/>
                </roles>
              </user>
            </users>
          </configuration>
        </configuration>
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                ksuta Karel Suta
                Reporter:
                ksuta Karel Suta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: