Service Virtualization

  • 1.  Deploy Virtual service in multiple ports

    Posted Feb 15, 2019 07:13 AM

    I have a requirement to deploy a VSM in multiple ports i.e, the same virtual model has to be deployed in multiple ports starting from 8800 to 8899. how can this be achieved?



  • 2.  Re: Deploy Virtual service in multiple ports

    Posted Feb 15, 2019 08:32 AM

    This is an unusual requirement since there are no apparent changes to URI basepath to compensate for language or usage of different VSIs.

     

    What is the business requirement that is causing the same VSM to be on such a large port range (8800 - 8899)? Are the consumers calling the same service on this many different ports? 

     

    Supposing you deploy the same service 100 times,

    - Set up a property in the config such as LISTEN_PORT = 8800

    - In the Listen Step, change the listen on port from a hard coded value to {{LISTEN_PORT}}

    - Add additional configs each overriding the port. LISTEN_PORT = 8801, LISTEN_PORT=8802, and so on.

    - Deploy the service using a different config to override the value of the listen port

    The deployment could be done in a test case so you get the effect of looping over the configs.