Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-705

Allow port configuration to be overloaded via system/test property

    Description

    Problem : you cannot run unit tests that bind to a port (e.g. 18001) at the same time an application is deployed to a running AS7 instance using the same port. This is incredibly annoying.

    Solution : support substitution of binding values via environment configuration and/or application configuration.

    The easy and quick solution piggy backs on the existing socket-binding support used for AS7 to allow a test case to be configured to use an alternate port during test runs. There should be a test API hook for this so you can call it in your test code and there should also be a way to inject it through a system property (e.g. mvn -D ).

    A more comprehensive solution looks at application properties as specified in SCA and ties all of this together using that. Like a binding URI could contain a property key and said key could resolve against different values for test execution and runtime execution.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dward David Ward
                Reporter:
                kcbabo Keith Babo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: