title: Running SpringTests / SpringBootTests against standalone / cloud server
body: <p>We currently have a setup, where we have lots of tests running as "SpringBootTests". Now, as we develop a cloud application, we want to test the actual scenario and need to run those tests against a cloud deployment of the spring application. I tried various ways like adding server.url or server.host in the config.yml, removing the SpringBootTest application etc., but nothing worked.</p>
  
  <p>Unfortunately, our spring pro is on vacation for some time, yet, so I searched for quite some time on SO and google and didn't find any answer. That's why I ask here, now.</p>
  
  <p>The annotation is like this:
      <code>@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT, classes = Core.class)</code></p>
  
  <p>config.yml part for the server:</p>
  
  <pre><code>server:
    port: 8080
    contextPath: /
  </code></pre>
  
  <p>Basically all I need is to tell the test to not start spring itself, but the use the cloud one, so I need a way to provide port and url to the test.</p>
  
  <p>Any ideas? </p>
  
  <p>Thanks for your input and regards,
  Kay</p>